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

Delete frontend parts of case studies #3332

Merged
merged 2 commits into from
Jul 7, 2017
Merged

Conversation

fofr
Copy link
Contributor

@fofr fofr commented Jul 7, 2017

  • Case studies are rendered by government-frontend
  • The template and controller aren’t used
  • The route is still used to generate the case study base_path

* Case studies are rendered by government-frontend
* The template and controller aren’t used
* The route is still used to generate the case study base_path
@fofr fofr requested a review from gpeng July 7, 2017 12:44
@fofr fofr force-pushed the delete-migrated-formats-frontend branch from c51f786 to 5759472 Compare July 7, 2017 12:57
* This logic doesn’t need to be handled by Whitehall
* Note: government-frontend doesn’t do this redirect:
https://www.gov.uk/government/case-studies/bis-criminal-prosecutions?loc
ale=en
@fofr fofr force-pushed the delete-migrated-formats-frontend branch from 5759472 to d3ee9a3 Compare July 7, 2017 13:07
@fofr fofr merged commit a3feb7d into master Jul 7, 2017
@fofr fofr deleted the delete-migrated-formats-frontend branch July 7, 2017 14:16
floehopper added a commit that referenced this pull request May 11, 2023
One of these log messages is generated for every asset file when running
the "default" rake task:

    I, [2023-05-04T21:13:38.159080 #13071]  INFO -- : Writing
    /govuk/whitehall/public/assets/whitehall/manifest-2ea7d4701d69c26ab63627d91d5d337927c55fa4a46c819103de10e179b01b02.js

I don't think these log messages are particularly useful and in fact
they obscure what might be a significant warning:

    W, [2023-05-05T10:44:04.253251 #3332]  WARN -- : Removed sourceMappingURL comment for missing asset 'govuk_publishing_components/vendor/lux/lux.js.map' from /root/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/govuk_publishing_components-35.3.3/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js

I'm not planning to address the latter in this commit, but with the
INFO-level messages now hidden, this should be more prominent!

I've redefined the rake tasks defined by sprockets-rails as recommended
in the documentation [1] in order to change the log_level from INFO to
WARN.

[1]: https://github.com/rails/sprockets-rails/blob/v3.4.2/README.md#customize
floehopper added a commit that referenced this pull request May 11, 2023
One of these log messages is generated for every asset file when running
the "default" rake task:

    I, [2023-05-04T21:13:38.159080 #13071]  INFO -- : Writing
    /govuk/whitehall/public/assets/whitehall/manifest-2ea7d4701d69c26ab63627d91d5d337927c55fa4a46c819103de10e179b01b02.js

I don't think these log messages are particularly useful and in fact
they obscure what might be a significant warning:

    W, [2023-05-05T10:44:04.253251 #3332]  WARN -- : Removed sourceMappingURL comment for missing asset 'govuk_publishing_components/vendor/lux/lux.js.map' from /root/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/govuk_publishing_components-35.3.3/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js

I'm not planning to address the latter in this commit, but with the
INFO-level messages now hidden, this should be more prominent!

I've redefined the rake tasks defined by sprockets-rails as recommended
in the documentation [1] in order to change the log_level from INFO to
WARN.

[1]: https://github.com/rails/sprockets-rails/blob/v3.4.2/README.md#customize
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.

None yet

2 participants