Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analysis page and series #20

Merged
merged 60 commits into from
Nov 14, 2024
Merged

Analysis page and series #20

merged 60 commits into from
Nov 14, 2024

Conversation

zerolab
Copy link
Contributor

@zerolab zerolab commented Nov 5, 2024

What is the context of this PR?

https://jira.ons.gov.uk/browse/CMS-70

This PR builds on #17 and:

  • adds skeleton page models for the theme and topic page (to provide the logical structure for the analysis series/pages)
  • adds the analysis series and page models
  • wires in the templates.

How to review

See screencasts:

Check it out locally, run migrations. Create a theme page, then a topic page under it, then an Analysis series and finally one or more Analysis pages.

Follow-up Actions

  • if previewing
    • include drafts on the previous releases pages
    • update the is_latest logic to account for it

@zerolab zerolab requested a review from a team as a code owner November 5, 2024 15:56
@zerolab zerolab marked this pull request as draft November 5, 2024 15:56
* Bump Wagtail to 6.3
* Generate migrations for custom images/docs
Base automatically changed from chore/wagtail-6.3 to feature/release-calendar-pages November 5, 2024 16:03
@zerolab zerolab requested a review from MebinAbraham November 12, 2024 17:39
@sanjeevz3009 sanjeevz3009 self-requested a review November 13, 2024 19:26
@zerolab zerolab merged commit 1abcd7b into main Nov 14, 2024
7 checks passed
@zerolab zerolab deleted the feature/cms-70-analysis-pages branch November 14, 2024 14:41
@zerolab zerolab mentioned this pull request Nov 14, 2024
sanjeevz3009 pushed a commit that referenced this pull request Nov 15, 2024
* Add skeleton models for Theme / Topic pages
* Add base analysis series and page models
* Use a custom icon for the contact detail snippet
* Update the StreamField block template to pass the block ID to its children
* Set parent/subpage types for the new page models
* Wire in the analysis page template
* Add series functionality (latest/previous releases)
* Add tests and fail if coverage under 90%
* Tidy up based on code review
  * Make the accredited / census blocks separate includes
  * Include changes to release dates when status is confirmed
  * Allow setting the release date when switching to confirmed
  * Only allow release date or text, not both
  * Prevent release calendar page deletion through the UI
  * Move the changes to the release date below contact details
    e.g. https://www.ons.gov.uk/releases/disabilitypaygapsintheuk2014to2023
  * Switch to using a StreamField for the release page related links
  * Disable the "too-few-public-methods" pylint check globally
  * Make the equation/ONS embed check reusable
sanjeevz3009 pushed a commit that referenced this pull request Nov 15, 2024
* Add skeleton models for Theme / Topic pages
* Add base analysis series and page models
* Use a custom icon for the contact detail snippet
* Update the StreamField block template to pass the block ID to its children
* Set parent/subpage types for the new page models
* Wire in the analysis page template
* Add series functionality (latest/previous releases)
* Add tests and fail if coverage under 90%
* Tidy up based on code review
  * Make the accredited / census blocks separate includes
  * Include changes to release dates when status is confirmed
  * Allow setting the release date when switching to confirmed
  * Only allow release date or text, not both
  * Prevent release calendar page deletion through the UI
  * Move the changes to the release date below contact details
    e.g. https://www.ons.gov.uk/releases/disabilitypaygapsintheuk2014to2023
  * Switch to using a StreamField for the release page related links
  * Disable the "too-few-public-methods" pylint check globally
  * Make the equation/ONS embed check reusable
sanjeevz3009 pushed a commit that referenced this pull request Nov 15, 2024
* Add skeleton models for Theme / Topic pages
* Add base analysis series and page models
* Use a custom icon for the contact detail snippet
* Update the StreamField block template to pass the block ID to its children
* Set parent/subpage types for the new page models
* Wire in the analysis page template
* Add series functionality (latest/previous releases)
* Add tests and fail if coverage under 90%
* Tidy up based on code review
  * Make the accredited / census blocks separate includes
  * Include changes to release dates when status is confirmed
  * Allow setting the release date when switching to confirmed
  * Only allow release date or text, not both
  * Prevent release calendar page deletion through the UI
  * Move the changes to the release date below contact details
    e.g. https://www.ons.gov.uk/releases/disabilitypaygapsintheuk2014to2023
  * Switch to using a StreamField for the release page related links
  * Disable the "too-few-public-methods" pylint check globally
  * Make the equation/ONS embed check reusable
nehakerung pushed a commit that referenced this pull request Nov 18, 2024
* Add skeleton models for Theme / Topic pages
* Add base analysis series and page models
* Use a custom icon for the contact detail snippet
* Update the StreamField block template to pass the block ID to its children
* Set parent/subpage types for the new page models
* Wire in the analysis page template
* Add series functionality (latest/previous releases)
* Add tests and fail if coverage under 90%
* Tidy up based on code review
  * Make the accredited / census blocks separate includes
  * Include changes to release dates when status is confirmed
  * Allow setting the release date when switching to confirmed
  * Only allow release date or text, not both
  * Prevent release calendar page deletion through the UI
  * Move the changes to the release date below contact details
    e.g. https://www.ons.gov.uk/releases/disabilitypaygapsintheuk2014to2023
  * Switch to using a StreamField for the release page related links
  * Disable the "too-few-public-methods" pylint check globally
  * Make the equation/ONS embed check reusable
nehakerung pushed a commit that referenced this pull request Nov 18, 2024
* Add skeleton models for Theme / Topic pages
* Add base analysis series and page models
* Use a custom icon for the contact detail snippet
* Update the StreamField block template to pass the block ID to its children
* Set parent/subpage types for the new page models
* Wire in the analysis page template
* Add series functionality (latest/previous releases)
* Add tests and fail if coverage under 90%
* Tidy up based on code review
  * Make the accredited / census blocks separate includes
  * Include changes to release dates when status is confirmed
  * Allow setting the release date when switching to confirmed
  * Only allow release date or text, not both
  * Prevent release calendar page deletion through the UI
  * Move the changes to the release date below contact details
    e.g. https://www.ons.gov.uk/releases/disabilitypaygapsintheuk2014to2023
  * Switch to using a StreamField for the release page related links
  * Disable the "too-few-public-methods" pylint check globally
  * Make the equation/ONS embed check reusable
nehakerung pushed a commit that referenced this pull request Nov 18, 2024
* Add skeleton models for Theme / Topic pages
* Add base analysis series and page models
* Use a custom icon for the contact detail snippet
* Update the StreamField block template to pass the block ID to its children
* Set parent/subpage types for the new page models
* Wire in the analysis page template
* Add series functionality (latest/previous releases)
* Add tests and fail if coverage under 90%
* Tidy up based on code review
  * Make the accredited / census blocks separate includes
  * Include changes to release dates when status is confirmed
  * Allow setting the release date when switching to confirmed
  * Only allow release date or text, not both
  * Prevent release calendar page deletion through the UI
  * Move the changes to the release date below contact details
    e.g. https://www.ons.gov.uk/releases/disabilitypaygapsintheuk2014to2023
  * Switch to using a StreamField for the release page related links
  * Disable the "too-few-public-methods" pylint check globally
  * Make the equation/ONS embed check reusable
nehakerung pushed a commit that referenced this pull request Nov 18, 2024
* Add skeleton models for Theme / Topic pages
* Add base analysis series and page models
* Use a custom icon for the contact detail snippet
* Update the StreamField block template to pass the block ID to its children
* Set parent/subpage types for the new page models
* Wire in the analysis page template
* Add series functionality (latest/previous releases)
* Add tests and fail if coverage under 90%
* Tidy up based on code review
  * Make the accredited / census blocks separate includes
  * Include changes to release dates when status is confirmed
  * Allow setting the release date when switching to confirmed
  * Only allow release date or text, not both
  * Prevent release calendar page deletion through the UI
  * Move the changes to the release date below contact details
    e.g. https://www.ons.gov.uk/releases/disabilitypaygapsintheuk2014to2023
  * Switch to using a StreamField for the release page related links
  * Disable the "too-few-public-methods" pylint check globally
  * Make the equation/ONS embed check reusable

Addition of equation partials

Deleted media files and made lint, format test pass

Repeated code remove, /media added to .gitignore, media file removed

Check tests pass

Custom sign commit
nehakerung added a commit that referenced this pull request Nov 19, 2024
* Standard_pages app creation

* Django models for information page updated and the template for the information page tweaked

* Replace `pytest` with Django's built-in runner (#18)

* Release calendar pages (#16)

* Replace Docker Desktop setup with Colima (#24)

* Add Cookie banner and Google Tag Manager snippet (#19)

* Analysis page and series (#20)

* Addition of equation partials

* Repeated code remove, /media added to .gitignore, media file removed

* Related pages InlinePanel added. Add Info Template updated.

---------


Co-authored-by: Neha <[email protected]>
Co-authored-by: Sanjeev <[email protected]>
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.

5 participants