webiny-js icon indicating copy to clipboard operation
webiny-js copied to clipboard

CMS objects in partially published state

Open snstanton opened this issue 4 years ago • 4 comments

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

snstanton avatar Oct 14 '21 19:10 snstanton

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.

brunozoric avatar Nov 23 '21 13:11 brunozoric

@snstanton can you verify that this is still happening?

brunozoric avatar Dec 16 '21 09:12 brunozoric

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.

webiny-bot avatar Apr 16 '22 07:04 webiny-bot

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.

webiny-bot avatar Aug 15 '22 07:08 webiny-bot