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

List draft sections on publish confirmation page #2127

Merged
merged 3 commits into from
Aug 15, 2023

Conversation

mtaylorgds
Copy link
Contributor

@mtaylorgds mtaylorgds commented Aug 9, 2023

What

Update the manuals publish confirmation page to include a table listing the sections that are currently in a draft state and so whose changes will be included in the manual's publication.

Why

To help avoid sections getting published that are not ready, by making whoever is publishing aware of the changes that will be included (for example, when there are multiple people editing sections).

Visuals

Before

image

After (with sections in draft status)

manuals-publisher dev gov uk_manuals_09c86be3-7100-49fd-bb40-71f806092eab_confirm_publish

After (with no sections in draft status)

manuals-publisher integration publishing service gov uk_manuals_43c4d896-5bd0-44f3-8b73-27b7db1cfdbf_confirm_publish

Technical notes

The logic for the "last updated text" was already present on the manual's "show" view, so this has been extracted to a helper method and reused by the publish confirmation view.

Trello

Trello card

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

The require for the button's javascript was missing (though functionally
 everything seems to be working OK).
@mtaylorgds mtaylorgds force-pushed the consolidation-show-editors-on-publish-confirmation branch 2 times, most recently from 8aac656 to 87fb0c4 Compare August 10, 2023 09:24
Update the manuals publish confirmation page to include a table listing
 the sections that are currently in a draft state and so whose changes
 will be included in the manual's publication. This is to help avoid
 sections getting published that are not ready, by making whoever is
 publishing aware of the changes that will be included (for example,
 when there are multiple people editing sections).

The logic for the "last updated text" was already present on the
 manual's "show" view, so this has been extracted to a helper method and
 reused by the publish confirmation view.
Update the test to check for the table listing the sections to be
 published.
@mtaylorgds mtaylorgds force-pushed the consolidation-show-editors-on-publish-confirmation branch from 291c37b to 7bcbad3 Compare August 11, 2023 07:36
@mtaylorgds mtaylorgds marked this pull request as ready for review August 11, 2023 07:55
Copy link
Contributor

@ryanb-gds ryanb-gds left a comment

Choose a reason for hiding this comment

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

I don't know much (well, anything) about manuals but in the absence of most of the rest of the publishing team today I thought I would try my best to review, and it looks good to my wholly untrained eye.

@mtaylorgds
Copy link
Contributor Author

I don't know much (well, anything) about manuals but in the absence of most of the rest of the publishing team today I thought I would try my best to review, and it looks good to my wholly untrained eye.

Thanks Ryan, I'll ask again next week for someone to merge/have another look.

@ryanb-gds ryanb-gds merged commit 2462778 into main Aug 15, 2023
@ryanb-gds ryanb-gds deleted the consolidation-show-editors-on-publish-confirmation branch August 15, 2023 08:02
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.

2 participants