Skip to content

Fix scheduling future CMS page publication (ENG-1681)#6691

Merged
lkostrowski merged 2 commits into
3.22from
lkostrowski/page-publish-scheduling
Jun 30, 2026
Merged

Fix scheduling future CMS page publication (ENG-1681)#6691
lkostrowski merged 2 commits into
3.22from
lkostrowski/page-publish-scheduling

Conversation

@lkostrowski

Copy link
Copy Markdown
Member

Setting an availability date on a page sent isPublished=false + publishedAt, which Saleor Core treats as hidden forever since PublishedQuerySet.published() requires both is_published=True and published_at <= now(). Now a publication date forces isPublished=true, and the visibility card presents future-dated pages as Hidden with the scheduled date so the state survives a reload.

https://linear.app/saleor/issue/ENG-1681

Setting an availability date on a page sent isPublished=false +
publishedAt, which Saleor Core treats as hidden forever since
PublishedQuerySet.published() requires both is_published=True and
published_at <= now(). Now a publication date forces isPublished=true,
and the visibility card presents future-dated pages as Hidden with the
scheduled date so the state survives a reload.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 33457d4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
saleor-dashboard Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 58.33333% with 5 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (3.22@bb57867). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/components/VisibilityCard/VisibilityCard.tsx 54.54% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             3.22    #6691   +/-   ##
=======================================
  Coverage        ?   43.70%           
=======================================
  Files           ?     2593           
  Lines           ?    45124           
  Branches        ?    10604           
=======================================
  Hits            ?    19723           
  Misses          ?    24065           
  Partials        ?     1336           

☔ View full report in Codecov by Harness.
📢 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.

@lkostrowski lkostrowski added the test deployment Deploy Pull Request to *.saleor.rocks environment label Jun 30, 2026
@lkostrowski lkostrowski marked this pull request as ready for review June 30, 2026 09:39
@lkostrowski lkostrowski requested review from a team, magul, szczecha and wcislo-saleor June 30, 2026 09:39
@lkostrowski lkostrowski enabled auto-merge (squash) June 30, 2026 14:29
@lkostrowski lkostrowski merged commit 50215ae into 3.22 Jun 30, 2026
15 of 18 checks passed
@lkostrowski lkostrowski deleted the lkostrowski/page-publish-scheduling branch June 30, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test deployment Deploy Pull Request to *.saleor.rocks environment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants