webiny-js
webiny-js copied to clipboard
CMS objects in partially published state
Version
5.15.0
Operating System
MacOS
Browser
Firefox
What steps will reproduce the bug?
I wrote a script to call publish* on all drafts for all of my models. When I ran the script, all but a handful of objects were published. The remainder were in a partially published state.
What is the expected behavior?
All of the revisions should be published.
What do you see instead?
Some wound up in a state like this:
{
"data": {
"listRelatedResources": {
"data": [
{
"id": "6164781a5126350009e6b254#0001",
"meta": {
"revisions": [
{
"id": "6164781a5126350009e6b254#0001",
"meta": {
"status": "published"
}
}
],
"status": "draft"
}
}
],
"meta": {
"totalCount": 1
}
}
},
"extensions": {
"console": []
}
}
The workaround is to unpublish and republish the revision.
Additional information
No response
Possible solution
No response
I added the test which creates entry and publishes revisions 1, 3 and 6. Test shows that, in the end, only version 6 is published, 1 and 3 are unpublished, 2 and 4 are in draft status.
@snstanton can you verify that this is still happening?
This issue is stale because it was opened 120 days with no activity. Remove the "stale-issue" label or leave a comment to revive the issue. Otherwise, it will be closed in 7 days.
This issue is stale because it was opened 120 days with no activity. Remove the "stale-issue" label or leave a comment to revive the issue. Otherwise, it will be closed in 7 days.