Skip to content

Real-time collaboration: Do not overwrite a "floating" date#73984

Merged
chriszarate merged 1 commit intotrunkfrom
fix/sync-floating-date
Dec 15, 2025
Merged

Real-time collaboration: Do not overwrite a "floating" date#73984
chriszarate merged 1 commit intotrunkfrom
fix/sync-floating-date

Conversation

@chriszarate
Copy link
Contributor

What?

When applying changes from remote CRDT documents, do not overwrite a "floating date" for draft or pending post statuses.

Why?

A "floating date" encodes the current time (or is null) as a signal that a post will be published immediately. We don't want to adopt a post date from a remote peer unless it is accompanied by a meaningful post status change (e.g, to scheduled).

How?

Remove the value check to make sure floating dates are never overwritten for draft or pending post statuses.

@chriszarate chriszarate requested a review from nerrad as a code owner December 12, 2025 23:24
@chriszarate chriszarate added [Type] Bug An existing feature does not function as intended [Feature] Real-time Collaboration Phase 3 of the Gutenberg roadmap around real-time collaboration labels Dec 12, 2025
@github-actions
Copy link

Flaky tests detected in c39189b.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/20182723379
📝 Reported issues:

@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: chriszarate <[email protected]>
Co-authored-by: youknowriad <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@chriszarate chriszarate merged commit df138ea into trunk Dec 15, 2025
45 of 46 checks passed
@chriszarate chriszarate deleted the fix/sync-floating-date branch December 15, 2025 16:10
@github-actions github-actions bot added this to the Gutenberg 22.4 milestone Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Real-time Collaboration Phase 3 of the Gutenberg roadmap around real-time collaboration [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants