I have an issue with getting the current status of the Content item.
I’m submitting a…
[X] Bug report
Current behavior
When I send a get request with an ID parameter to get a particular item from Squidex > Content section, I get a few fields that are related to the status:
{
status: "Published",
editingStatus: "Published"
newStatus: ""
}
Test cases
The Content item was Published and then was created a new Draft from this published version.
- GET request sent with X-Unpublished equal to false.
Result:
{
status: "Published",
editingStatus: "Published",
newStatus: ""
}
- GET request sent with X-Unpublished equal to true.
Result:
{
status: "Published",
editingStatus: "Draft",
newStatus: "Draft"
}
Expected behavior
I expect that when I send a request to get the latest Published version with X-Unpublished equal to false of the Content item that is now in Draft, it will respond with the correct current Status. For example:
{
status: "Published",
editingStatus: "Draft",
newStatus: "Draft"
}
Because now I have to send several requests:
- to get the current status (X-Unpublished equal to true)
- to get the latest Published version (X-Unpublished equal to false)
Environment
- [ ] Self hosted with docker
Version: 13.0.0
Browser:
- [ ] Chrome (desktop)