Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: scheduled publish / unpublish #10203

Merged
merged 6 commits into from
Dec 27, 2024
Merged

feat: scheduled publish / unpublish #10203

merged 6 commits into from
Dec 27, 2024

Conversation

jmikrut
Copy link
Member

@jmikrut jmikrut commented Dec 27, 2024

Adds a feature to allow editors to schedule publish / unpublish events in the future. Must be enabled by setting versions.drafts.schedulePublish: true in your Collection / Global configs.

Screen.Recording.2024-12-27.at.2.54.12.PM.mov

Todo:

  • Translate new i18n keys
  • Wire up locale-specific scheduled publish / unpublish actions

@jmikrut jmikrut enabled auto-merge (squash) December 27, 2024 21:34
@jmikrut jmikrut disabled auto-merge December 27, 2024 21:52
@jmikrut jmikrut merged commit 37d1f2d into main Dec 27, 2024
4 checks passed
@jmikrut jmikrut deleted the feat/schedule-publish branch December 27, 2024 21:52
Copy link
Contributor

🚀 This is included in version v3.12.0

@cbratschi
Copy link

@jmikrut Thanks a lot for adding this feature. But how can I remove an upcoming event? The dialog doesn't offer a delete option yet.

@PP-Tom
Copy link

PP-Tom commented Dec 28, 2024

Thanks for adding this feature!

  • It seems there isn't a way to schedule an unpublish of a specific locale.
  • I still think the publish button should publish that specific locale by default, in our experience so far, clients are accidentally publishing unfinished localization.
  • Once published, the button becomes disabled so you can't then schedule an unpublish.

@RafalFilipek
Copy link

How does this exactly work? Does publishing in the future save a snapshot of the record, which will then be published? If I view the record afterward, I understand that I see the state that will be visible after the last set publish action. So, there's no possibility to change something "earlier."

If I understand this correctly, shouldn't there be an option to delete publish and unpublish events to "remove from the stack" the changes and allow something to be changed?

The mechanism of future publishing is a very complex functionality, so I would like to understand it very well. :)

@SalahAdDin
Copy link

Any documentation about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants