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

Upgrade govuk_publishing_components (with build fix) #1151

Merged
merged 2 commits into from
Jan 12, 2021

Conversation

ChrisBAshton
Copy link
Contributor

Second attempt at merging #1148, this time with a fix for the build issue,
which I've verified works locally.

We have to require "active_support/time" to define the helper methods
we use to set the Cache-Control header in the test environment.

I don't know why bumping the govuk_publishing_components gem from
v23.10.1 to v23.12.1 has caused this issue in both Static
and Feedback (nor why the tests passed on the PR and only
subsequently failed after merge).

I wrote up an investigation in alphagov/static#2384,
but have nothing conclusive. It won't be a good use of time to
investigate too much further, so I'm happy that this is a harmless
change which unblocks us from deploying an important fix.

Trello: https://trello.com/c/YhIIykse/2291-3-fix-cross-site-scripting-vulnerabilities

We have to `require "active_support/time"` to define the helper methods
we use to set the Cache-Control header in the [test environment][usage].

I don't know why bumping the govuk_publishing_components gem from
v23.10.1 to v23.12.1 has caused this issue in both [Static][]
and [Feedback][] (nor why the tests passed on the PR and only
subsequently failed after merge).

I write up an investigation in alphagov/static#2384,
but have nothing conclusive. It won't be a good use of time to
investigate too much further, so I'm happy that this is a harmless
change which unblocks us from deploying an important fix.

Trello: https://trello.com/c/YhIIykse/2291-3-fix-cross-site-scripting-vulnerabilities

[Static]: alphagov/static#2379
[Feedback]: #1149
[usage]: https://github.com/alphagov/feedback/blob/1cfe51bc39ec48f2cba0c502b15720fdc4dbbcd2/config/environments/test.rb#L14
@bevanloon bevanloon temporarily deployed to feedback-pip-cautiously-ky4s3t January 12, 2021 09:03 Inactive
@ChrisBAshton
Copy link
Contributor Author

ChrisBAshton commented Jan 12, 2021

Pleased to confirm the same fix worked for Static (see green tick):

Screenshot 2021-01-12 at 09 04 23

@ChrisBAshton ChrisBAshton merged commit cd71e65 into master Jan 12, 2021
@ChrisBAshton ChrisBAshton deleted the cautiously-upgrading branch January 12, 2021 09:17
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.

3 participants