Skip to content

CDD-3067 public / non public toggle#2944

Merged
kathryn-dale merged 26 commits intomainfrom
task/CDD-3067-public-non-public-toggle
Feb 12, 2026
Merged

CDD-3067 public / non public toggle#2944
kathryn-dale merged 26 commits intomainfrom
task/CDD-3067-public-non-public-toggle

Conversation

@kathryn-dale
Copy link
Copy Markdown
Contributor

@kathryn-dale kathryn-dale commented Jan 22, 2026

Description

This PR includes the following:

  • add toggle to topic pages and metrics documentation child pages to enable them to be viewed by the public. It defaults to true for everything pre-existing at the time of the migration, and false for new data.

Fixes #CDD-3067


Type of change

Please select the options that are relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Tech debt item (this is focused solely on addressing any relevant technical debt)

Checklist:

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests at the right levels to prove my change is effective
  • I have added screenshots or screen grabs where appropriate
  • I have added docstrings in the correct style (google)

@kathryn-dale kathryn-dale requested a review from a team as a code owner January 22, 2026 11:47
@kathryn-dale
Copy link
Copy Markdown
Contributor Author

image Toggle showing on the page image Defaults to true after DB migration for pre-existing data

Have tested that it is false by default for new data by default and the checkbox works

Comment thread cms/topic/migrations/0022_topicpage_is_public_alter_topicpage_body.py Outdated
Copy link
Copy Markdown
Contributor

@mattjreynolds mattjreynolds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good now

@sonarqubecloud
Copy link
Copy Markdown

@kathryn-dale kathryn-dale merged commit 3750f00 into main Feb 12, 2026
15 checks passed
@kathryn-dale kathryn-dale deleted the task/CDD-3067-public-non-public-toggle branch February 12, 2026 16:06
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.

4 participants