Skip to content

[8.1-stable] Set public_until instead of clearing public_on when unpublishing elements#3676

Merged
tvdeyen merged 1 commit into8.1-stablefrom
backport/8.1-stable/pr-3675
Feb 10, 2026
Merged

[8.1-stable] Set public_until instead of clearing public_on when unpublishing elements#3676
tvdeyen merged 1 commit into8.1-stablefrom
backport/8.1-stable/pr-3675

Conversation

@alchemycms-bot
Copy link

Backport

This will backport the following commits from main to 8.1-stable:

Questions ?

Please refer to the Backport tool documentation

…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.

(cherry picked from commit 73a290c)
@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 (00b978e) to head (d58ea11).
⚠️ Report is 3 commits behind head on 8.1-stable.

Additional details and impacted files
@@             Coverage Diff             @@
##           8.1-stable    #3676   +/-   ##
===========================================
  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 51d9e60 into 8.1-stable Feb 10, 2026
20 checks passed
@tvdeyen tvdeyen deleted the backport/8.1-stable/pr-3675 branch February 10, 2026 15:29
@alchemycms-bot alchemycms-bot bot mentioned this pull request Feb 10, 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