fix: filter out unpublished pages in cms_page and news_article queries#4578
fix: filter out unpublished pages in cms_page and news_article queries#4578marcoacierno wants to merge 2 commits intomainfrom
Conversation
Add live=True filter to the initial queryset in both cms_page and news_article GraphQL queries to ensure draft/unpublished pages are never returned. Previously, unpublished pages could still be fetched by slug even though only the translated version was being filtered for live status. Fixes #4577 Co-authored-by: Marco Acierno <marcoacierno@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Adds Testing & Coverage: Existing tests already cover this scenario. Both No issues found. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4578 +/- ##
==========================================
- Coverage 92.52% 92.50% -0.02%
==========================================
Files 357 357
Lines 10690 10690
Branches 812 812
==========================================
- Hits 9891 9889 -2
- Misses 687 688 +1
- Partials 112 113 +1 🚀 New features to boost your workflow:
|
|
@claude update and/or write tests for this behaviour |
|
Claude finished @marcoacierno's task in 2m 35s —— View job Tests Added for Unpublished Page Filtering
Summary: Added 2 new tests to verify the fix for filtering unpublished pages:
These tests specifically cover the bug scenario from issue #4577 where the initial queryset wasn't filtering for |
Fixes #4577
Add
live=Truefilter to the initial queryset in bothcms_pageandnews_articleGraphQL queries to ensure draft/unpublished pages are never returned.Previously, unpublished pages could still be fetched by slug even though only the translated version was being filtered for live status.
Generated with Claude Code