You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
If you have an unpublished document it can reference another unpublished document. But if you have two unpublished documents where one references the other, then it's impossible to unpublish both of them, because the reference expects the referenced document to be published.
Describe the solution you'd like
When unpublishing a document all the references in it should be altered to be weak with strengthenOnPublish. For example given the following document:
This way when the document is published again it will return the reference to the way it was before the document was unpublished.
Describe alternatives you've considered
The alternative in Sanity Studio is to temporarily remove the reference in order to unpublish the target, then recreate the reference again. This is a manuall process that is prone to errors. Outside of studio it can be done with the mutation api, but it still needs to be done with a script every time a document is going to be unpublished.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
If you have an unpublished document it can reference another unpublished document. But if you have two unpublished documents where one references the other, then it's impossible to unpublish both of them, because the reference expects the referenced document to be published.
Describe the solution you'd like
When unpublishing a document all the references in it should be altered to be weak with strengthenOnPublish. For example given the following document:
When unpublishing it should convert this to
This way when the document is published again it will return the reference to the way it was before the document was unpublished.
Describe alternatives you've considered
The alternative in Sanity Studio is to temporarily remove the reference in order to unpublish the target, then recreate the reference again. This is a manuall process that is prone to errors. Outside of studio it can be done with the mutation api, but it still needs to be done with a script every time a document is going to be unpublished.
The text was updated successfully, but these errors were encountered: