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
I want to filter out "schedule" actions for some documents. Based on the docs, the intended way is to use action property however it is not available for actions created by plugins (e.g. schedule or document-internationalization). There is also a name property available in development, but it is being minified during the build, so it is inconsistent in the deployed studio.
Expected behavior
Now that schedule is a built-in feature, it should have the action property
Automatically remove publish and schedule actions for live documents
In the types, action property could be made mandatory and changed to string, so all plugins would add it.
Screenshots
Here is the log of actions in the deployed Studio, 2nd one is schedule action:
Describe the bug
I want to filter out "schedule" actions for some documents. Based on the docs, the intended way is to use
action
property however it is not available for actions created by plugins (e.g. schedule or document-internationalization). There is also aname
property available in development, but it is being minified during the build, so it is inconsistent in the deployed studio.Expected behavior
action
propertypublish
andschedule
actions forlive
documentsaction
property could be made mandatory and changed tostring
, so all plugins would add it.Screenshots
Here is the log of actions in the deployed Studio, 2nd one is schedule action:
Which versions of Sanity are you using?
4.39.1
Additional context
There is a related issue about extending document actions which might indicate why plugin actions are missing
action
property.The text was updated successfully, but these errors were encountered: