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

Refactor Get Involved #2712

Merged
merged 1 commit into from
Mar 14, 2023
Merged

Refactor Get Involved #2712

merged 1 commit into from
Mar 14, 2023

Conversation

brucebolt
Copy link
Member

@brucebolt brucebolt commented Mar 9, 2023

This page was created differently to all the other content types.

Refactoring so it is the same as everything else.

The test coverage isn't as good as it should be, but retains the same level of testing as before the refactor.

Tests depend on alphagov/publishing-api#2312.

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

Follow these steps if you are doing a Rails upgrade.

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2712 March 9, 2023 16:46 Inactive
@brucebolt brucebolt force-pushed the refactor-get-involved branch from bc29e8a to 1bf6d03 Compare March 9, 2023 18:23
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2712 March 9, 2023 18:23 Inactive
This page was created differently to all the other content types.

Refactoring so it is the same as everything else.

Co-authored-by: Jon Hallam <[email protected]>
@brucebolt brucebolt force-pushed the refactor-get-involved branch from 1bf6d03 to f21a0ba Compare March 13, 2023 08:31
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2712 March 13, 2023 08:31 Inactive
@brucebolt brucebolt marked this pull request as ready for review March 13, 2023 11:06
Copy link
Contributor

@BeckaL BeckaL left a comment

Choose a reason for hiding this comment

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

Looks good to me, nice improvement ⭐

Copy link
Contributor

@hannako hannako left a comment

Choose a reason for hiding this comment

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

Thanks for doing this Bruce, looks great.

It's a shame the review app doesn't work - is that something to do with search? - but I checked it out locally using the start up script (retro!) and it all looked great.

@brucebolt
Copy link
Member Author

It's a shame the review app doesn't work - is that something to do with search? - but I checked it out locally using the start up script (retro!) and it all looked great.

Yes, I think it's because this app's Heroku setup doesn't include the env var to provide the URL for live search. This is the only document type in Government Frontend that uses search, so maybe it's not the right app for the document to be rendered by 🤔.

@brucebolt brucebolt merged commit f43f05f into main Mar 14, 2023
@brucebolt brucebolt deleted the refactor-get-involved branch March 14, 2023 12:53
link: {
text: item["title"],
path: item["link"],
description: "#{close_status} #{item['end_date'].to_date.strftime('%d %B %z')}",
Copy link
Contributor

@AgaDufrat AgaDufrat Mar 14, 2023

Choose a reason for hiding this comment

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

I think we may need to change the date formatting here

Suggested change
description: "#{close_status} #{item['end_date'].to_date.strftime('%d %B %z')}",
description: "#{close_status} #{item['end_date'].to_date.strftime('%d %B %Y')}",

so the year is displayed instead of the timezone.
Screenshot 2023-03-14 at 12 45 53

Copy link
Contributor

Choose a reason for hiding this comment

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

Oops, too late!

Copy link
Member Author

Choose a reason for hiding this comment

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

Good spot! I don't know how that changed, since I just copy and pasted the stuff over 🤷‍♂️.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll raise a PR to fix this.

Copy link
Member Author

Choose a reason for hiding this comment

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

brucebolt added a commit that referenced this pull request Mar 14, 2023
This was incorrectly added in
#2712, so fixing to
display the year instead of the timezone.
@hannako
Copy link
Contributor

hannako commented Mar 14, 2023

It's a shame the review app doesn't work - is that something to do with search? - but I checked it out locally using the start up script (retro!) and it all looked great.

Yes, I think it's because this app's Heroku setup doesn't include the env var to provide the URL for live search. This is the only document type in Government Frontend that uses search, so maybe it's not the right app for the document to be rendered by 🤔.

This fixes the review apps #2715

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