chanzuckerberg / single-cell

A collection of documents that reflect various design decisions that have been made for the cellxgene project.
MIT License
4 stars 2 forks source link

Do NOT auto-publish during schema migration batch job if running a major schema update #570

Closed nayib-jose-gloria closed 1 year ago

nayib-jose-gloria commented 1 year ago

Currently, minor schema updates trigger a schema migration batch job that includes a publish step. This publish step auto-publishes all revisions created by the schema migration (i.e. if a collection was public with no revisions pre-migration, it will be migrated in a revision + published).

For major schema updates, we do NOT want to auto-publish. However, the rest of the process will be exactly the same as a minor schema version update. Therefore, we should accept a flag in the schema migration batch job input that allows us to skip the publish step in the case of a major schema update.