Skip to content

fix(print): clear stuck unpublished status after status transitions#2643

Open
gularsson wants to merge 1 commit into
mainfrom
feature/elelog-403-planningoverview-statuses-are-not-showing-correctly-after
Open

fix(print): clear stuck unpublished status after status transitions#2643
gularsson wants to merge 1 commit into
mainfrom
feature/elelog-403-planningoverview-statuses-are-not-showing-correctly-after

Conversation

@gularsson
Copy link
Copy Markdown
Contributor

The print articles workflow status column read workflow_checkpoint with workflow_state as a fallback in its cell renderer, while the accessor read workflow_state only. The subscription polling in useDocuments applies optimistic field updates by spreading the payload over the existing fields object, so a workflow_checkpoint='unpublished' set during an unpublish step is preserved across subsequent transitions (usable -> unpublish -> done) unless the index update happens to echo the field back. The result was a row pinned to "unpublished" even though its underlying workflow_state had advanced.

Align the cell with the accessor: both now read workflow_state. The "unpublished" visual still renders because workflow_state itself is 'unpublished' when a document is unpublished (already covered by getStatusFromMeta).

Refs ELELOG-403.

The print articles workflow status column read workflow_checkpoint with
workflow_state as a fallback in its cell renderer, while the accessor
read workflow_state only. The subscription polling in useDocuments
applies optimistic field updates by spreading the payload over the
existing fields object, so a workflow_checkpoint='unpublished' set
during an unpublish step is preserved across subsequent transitions
(usable -> unpublish -> done) unless the index update happens to echo
the field back. The result was a row pinned to "unpublished" even
though its underlying workflow_state had advanced.

Align the cell with the accessor: both now read workflow_state. The
"unpublished" visual still renders because workflow_state itself is
'unpublished' when a document is unpublished (already covered by
getStatusFromMeta).

Refs ELELOG-403.
@gularsson gularsson self-assigned this May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant