Made with love

logo

by Prismic PM team

Agency Updates: Scripts live, bugfixes and integration field validation

By Alaina for the Agency Squad

Updates from last week:

Make public and share Migration Scripts

https://github.com/prismicio-community/migration-api-example-scripts

On the basis of an example of migrating HTML content of a 2 language website into a new Prismic repo, it demonstrates the following steps:

  • Extracting and uploading of media to the Asset API, either via URL or via files
  • Inserting media ids into your document content
  • POSTing documents
  • Creating localized translations of original language documents
  • Updating content to resolve links between documents

Add validations to integration field ids

We now check and validate whether or not the ids of the integration fields passed to the Migration API in the request exist in the integration field catalog and deliver an error if they do now.

In addition, we fixed two bugs:

  • We now use the same validations on uid field that were recently expanded on the PageBuilder side to allow characters like Chinese, Japanese, Sanskrit etc. in the uid
  • Link to media fields are now working properly on POST or PUT requests if they include links with link_type media.

Goals for the next week: 

Make sure import/export functionality is unavailable for users at end of day on April 30


Import/Export is being deprecated at the end of April, so we need to make it unavailable.