-
Notifications
You must be signed in to change notification settings - Fork 21.9k
Don't expose deprecation controls for new apps #51831
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
Merged
Merged
+0
−12
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… dont expose those controls for new apps by default
byroot
approved these changes
May 14, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
rafaelfranca
approved these changes
May 15, 2024
Carlos just fixed those tests, merging master again should fix them in this branch. |
4 tasks
xjunior
pushed a commit
to xjunior/rails
that referenced
this pull request
Jun 9, 2024
… dont expose those controls for new apps by default (rails#51831)
Set2005
pushed a commit
to Set2005/fix-association-initialize-order
that referenced
this pull request
Jul 8, 2024
… dont expose those controls for new apps by default (rails#51831)
DanielaVelasquez
pushed a commit
to DanielaVelasquez/rails
that referenced
this pull request
Oct 3, 2024
… dont expose those controls for new apps by default (rails#51831)
Earlopain
added a commit
to Earlopain/rails
that referenced
this pull request
Nov 8, 2024
* rails#51831 * rails#51342 * rails#52887 Probably more, these are the ones I noticed.
Earlopain
added a commit
to Earlopain/rails
that referenced
this pull request
Nov 15, 2024
* rails#51831 * rails#51342 Probably more, these are the ones I noticed.
yndajas
added a commit
to alphagov/govspeak-preview
that referenced
this pull request
Jan 10, 2025
TODO: - in this commit: config/environment/production.rb - in a subsequent commit: remove the defaults file and update the defaults loaded in config/application.rb I retained the deprecation warnings in dev and test, since it seems sensible to be warned about deprecated code. Upstream PR that removed this: rails/rails#51831 https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#the-update-task
yndajas
added a commit
to alphagov/govspeak-preview
that referenced
this pull request
Jan 13, 2025
I retained the deprecation warnings in dev and test, since it seems sensible to be warned about deprecated code. Upstream PR that removed this: rails/rails#51831 `config.silence_healthcheck_path = "/up"` -> I don't think we use `/up` for healthchecks, and I'm not sure that we'd want to silence them, so I've commented out this new setting A few settings that we never changed from their defaults were changed in 7.1.0, but not in our app. Our git history doesn't explain why they were ignored, so I'm updating them now: - logging settings - public file server settings - `config.force_ssl = true` https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#the-update-task
yndajas
added a commit
to alphagov/govspeak-preview
that referenced
this pull request
Jan 13, 2025
I retained the deprecation warnings in dev and test, since it seems sensible to be warned about deprecated code. Upstream PR that removed this: rails/rails#51831 In production, I commented out the new setting `config.silence_healthcheck_path = "/up"`. I don't think we use `/up` for healthchecks, and I'm not sure that we'd want to silence them Also in production, a few settings that we never changed from their defaults were changed in 7.1.0, but not in our app. Our git history doesn't explain why they were ignored, so I'm updating them now: - logging settings - public file server settings - `config.force_ssl = true` https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#the-update-task
yndajas
added a commit
to alphagov/publishing-api
that referenced
this pull request
Jan 16, 2025
I ignored most changes to config/application.rb and config/puma.rb, except ignoring assets and tasks subdirectories when autoloading the lib directory. This was ignored in [the 7.1 upgrade](0b02a4f), but it looks like all other alphagov apps with this config include these default ignored subdirectories I retained the deprecation warnings in dev and test, since it seems sensible to be warned about deprecated code. Upstream PR that removed this: rails/rails#51831 In production, I decided to retain the evented file watcher. I added this to this app in 60715d0, after the 7.2.0 upgrade, but I'm not clear why. It was removed from the default Rails config in rails/rails@e34300a, released in 7.0.0. However, a comment on that PR noted that the evented file watched does sometimes perform better than the implicit default: rails/rails#42985 (comment). I've run the the benchmarks reported in that comment (loading the app's models) on my M2 Air and found a smaller difference but still consistently in favour of the evented file watcher. In three tests, the non-evented file watcher took 1.88, 4.20, and 2.42 milliseconds, whereas the evented one took 0.16, 0.02, and 0.02 milliseconds Also in production, I commented out the new setting `config.silence_healthcheck_path = "/up"`. We use '/healthcheck' rather than `/up`, and I'm not sure that we'd want to silence logs from this I skipped the attributes_for_inspect change, per the [Signon upgrade]() A few settings that we never changed from their defaults were changed in 7.1.0, but not in our app. Our git history doesn't explain why they were ignored, so I'm updating them now: - logging settings - public file server settings - `config.force_ssl = true`
yndajas
added a commit
to alphagov/publishing-api
that referenced
this pull request
Jan 16, 2025
I ignored most changes to config/application.rb and config/puma.rb, except ignoring assets and tasks subdirectories when autoloading the lib directory. This was ignored in [the 7.1 upgrade](0b02a4f), but it looks like all other alphagov apps with this config include these default ignored subdirectories I retained the deprecation warnings in dev and test, since it seems sensible to be warned about deprecated code. Upstream PR that removed this: rails/rails#51831 In production, I decided to retain the evented file watcher. I added this to this app in 60715d0, after the 7.2.0 upgrade, but I'm not clear why. It was removed from the default Rails config in rails/rails@e34300a, released in 7.0.0. However, a comment on that PR noted that the evented file watched does sometimes perform better than the implicit default: rails/rails#42985 (comment). I've run the the benchmarks reported in that comment (loading the app's models) on my M2 Air and found a smaller difference but still consistently in favour of the evented file watcher. In three tests, the non-evented file watcher took 1.88, 4.20, and 2.42 milliseconds, whereas the evented one took 0.16, 0.02, and 0.02 milliseconds Also in production, I commented out the new setting `config.silence_healthcheck_path = "/up"`. We use '/healthcheck' rather than `/up`, and I'm not sure that we'd want to silence logs from this I skipped the attributes_for_inspect change, per the [Signon upgrade](alphagov/signon@fb0b346) A few settings that we never changed from their defaults were changed in 7.1.0, but not in our app. Our git history doesn't explain why they were ignored, so I'm updating them now: - logging settings - public file server settings - `config.force_ssl = true`
yndajas
added a commit
to alphagov/publishing-api
that referenced
this pull request
Jan 20, 2025
I ignored most changes to config/application.rb and config/puma.rb, except ignoring assets and tasks subdirectories when autoloading the lib directory. This was ignored in [the 7.1 upgrade](0b02a4f), but it looks like all other alphagov apps with this config include these default ignored subdirectories I retained the deprecation warnings in dev and test, since it seems sensible to be warned about deprecated code. Upstream PR that removed this: rails/rails#51831 In production, I decided to retain the evented file watcher. I added this to this app in 60715d0, after the 7.2.0 upgrade, but I'm not clear why. It was removed from the default Rails config in rails/rails@e34300a, released in 7.0.0. However, a comment on that PR noted that the evented file watched does sometimes perform better than the implicit default: rails/rails#42985 (comment). I've run the the benchmarks reported in that comment (loading the app's models) on my M2 Air and found a smaller difference but still consistently in favour of the evented file watcher. In three tests, the non-evented file watcher took 1.88, 4.20, and 2.42 milliseconds, whereas the evented one took 0.16, 0.02, and 0.02 milliseconds Also in production, I commented out the new setting `config.silence_healthcheck_path = "/up"`. We use '/healthcheck' rather than `/up`, and I'm not sure that we'd want to silence logs from this I skipped the attributes_for_inspect change, per the [Signon upgrade](alphagov/signon@fb0b346) A few settings that we never changed from their defaults were changed in 7.1.0, but not in our app. Our git history doesn't explain why they were ignored, so I'm updating them now: - logging settings - public file server settings - `config.force_ssl = true`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We have too many controls in the default environment files. Only levers that are likely to be moved early or are integral to the specific environment should be there. Deprecation controls do not meet either of those standards.