Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
stylenone

Overview

This tool allows markets and operators to migrate content from Staging (test) environment to Production (live) environment independently. Content consists of (but is not limited to) menu, offers, rewards and loyalty information that show up in the guest app.

As our platforms continue to scale internationally, demand for Sanity content migrations has increased and has put more pressure on the engineering side as this was previously a technical task. This functionality allows markets and operators to migrate content from Staging (test) environment to Production (live) environment independently.

This tool grants the following benefits:

...

Info

You need a write token in order to use this tool. Contact a Sanity admin to generate one for you and DO NOT SHARE THIS TOKEN.

Using the Document Action

Content creators are already accustomed to using document actions such as Publish or Delete. The document action works in a similar fashion to these actions:

...

When the migration is complete you will see a success message, if it errors, please reach out to Posk, Mitchell (Deactivated) in the #sanity-data-migration-owners slack channel.

...

Using the Tool

The Migration tool allows you to migrate multiple documents using a GROQ query, as opposed to only moving the currently viewed document (both tools also move children references). In terms of functionality, the actual migration tool works the same as the document action.

...