
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@kdichev/migration
Advanced tools
First time setup only
yarn migrate:auto --id=<typename>
Downloads the json from type <typename> and creates corresponding migration scripts. This will work for the case when you
ops/migration/migrations
, and a new or modified file in ops/migration/contentTypes
yarn migrate:manual --id=<type>
If the automatic migration is not possible, we use this script to create a dummy migration file which you have to fill in manually, the syntax for migrations is described here. https://github.com/contentful/migration-cli#reference-documentation
yarn migrate:interfaces --id<type>
Copies editor interfaces from the 'dev' environment to target environment for a specific type. Not needed the first time a type is auto-migrated.
Here is the developer workflow for making changes to Contentful Types:
myType.editField(‘header’).changeFieldId(‘header’, ‘title’).name(‘Title’);
At the end, what should be checked into source control is the change to the data model in contentTypes and the corresponding migration(s) in the folder ops/migration/migrations
In order to apply migrations from the migrations folder to a contentful space, the following script is used. This is currently part of the release process, but might be useful for testing purposes: The yarn migrate:apply --space-id=<spaceId> --management-token=<token>
Code and folder structure:
folder | what it does |
---|---|
contentTypes | contains the authoritative version of the content types for this project |
incomingTypes | contains the JSON for the content types that have been changed since last time, and will be used for auto-generating migration scripts when possible |
migrations | contains migration scripts |
services | contains utility functions that are used from tests / production code |
utiltypes | contains utility types used from both tests / services and production code |
test | contains unit and integration tests |
tools | contains test scripts and hacks (not versioned) |
tba coming soon...
FAQs
migration scripts
The npm package @kdichev/migration receives a total of 0 weekly downloads. As such, @kdichev/migration popularity was classified as not popular.
We found that @kdichev/migration demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.