Skip to content

Set public_until instead of clearing public_on when unpublishing elements#3675

Merged
tvdeyen merged 1 commit intomainfrom
set-public-until-on-public-false
Feb 10, 2026
Merged

Set public_until instead of clearing public_on when unpublishing elements#3675
tvdeyen merged 1 commit intomainfrom
set-public-until-on-public-false

Conversation

@tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Feb 10, 2026

Notable changes

Previously, setting public = false on an element cleared its public_on timestamp, turning it into a draft. Now it sets public_until to the current time, preserving the publication history while marking the element as expired. Setting public = true now also always refreshes public_on and clears any public_until value.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

…ents

Previously, setting `public = false` on an element cleared its `public_on`
timestamp, turning it into a draft. Now it sets `public_until` to the current
time, preserving the publication history while marking the element as expired.
Setting `public = true` now also always refreshes `public_on` and clears any
`public_until` value.
@tvdeyen tvdeyen requested a review from a team as a code owner February 10, 2026 15:09
@tvdeyen tvdeyen added the backport-to-8.1-stable Needs to be backported to 8.1-stable label Feb 10, 2026
@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.48%. Comparing base (70de0e6) to head (73a290c).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3675   +/-   ##
=======================================
  Coverage   97.48%   97.48%           
=======================================
  Files         314      314           
  Lines        8285     8286    +1     
=======================================
+ Hits         8077     8078    +1     
  Misses        208      208           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tvdeyen tvdeyen merged commit e011c19 into main Feb 10, 2026
23 checks passed
@tvdeyen tvdeyen deleted the set-public-until-on-public-false branch February 10, 2026 15:21
@alchemycms-bot
Copy link

💚 All backports created successfully

Status Branch Result
8.1-stable

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

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

Labels

backport-to-8.1-stable Needs to be backported to 8.1-stable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments