Skip to content

Cleanup the whitelisting references after #33145 - #35086

Merged
gmcgibbon merged 1 commit into
rails:masterfrom
gsamokovarov:cleanup-whitelisting-refs
Feb 4, 2019
Merged

gmcgibbon merged 1 commit into
rails:masterfrom
gsamokovarov:cleanup-whitelisting-refs

Conversation

@gsamokovarov

Copy link
Copy Markdown
Contributor

During the development of #33145, I have named a few concepts in the
code as whitelisted. We decided to stay away from the term and I
adjusted most of the code afterward, but here are the cases I forgot to
change.

I also found a case in the API guide that we could have cleaned up as
well.

@gmcgibbon gmcgibbon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There are also some usages of whitelist you could clean up. Most notably in actionpack/test/dispatch/host_authorization_test.rb and railties/test/application/configuration_test.rb

Comment thread guides/source/api_app.md Resolved
@gsamokovarov
gsamokovarov force-pushed the cleanup-whitelisting-refs branch from b9f6a81 to 988fb2c Compare January 30, 2019 15:49
@gsamokovarov

Copy link
Copy Markdown
Contributor Author

I have fixed the other references I found. Searching for whitelist finds other references, but they seem like class names and settings, which would be harder to change at this point.

For one, I cat at least play my part and remove the whitelist bits and settings I have in web-console. I won't change the settings themselves for now (so I don't break the existing installs), but at least alias them more proper wording and documented it in the README.

@gsamokovarov
gsamokovarov force-pushed the cleanup-whitelisting-refs branch from 988fb2c to 575b2bf Compare February 2, 2019 14:29
@rails-bot rails-bot Bot added the railties label Feb 2, 2019

@gmcgibbon gmcgibbon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One last round of copy suggestions, and then I'll get this merged. Thanks for your patience! 🙏

During the development of rails#33145, I have named a few concepts in the
code as `whitelisted`. We decided to stay away from the term and I
adjusted most of the code afterwards, but here are the cases I forgot to
change.

I also found a case in the API guide that we could have cleaned up as
well.

[ci skip]
@gsamokovarov
gsamokovarov force-pushed the cleanup-whitelisting-refs branch from 575b2bf to ca62dfe Compare February 3, 2019 08:59
@gsamokovarov

Copy link
Copy Markdown
Contributor Author

No worries, fixed those tests names as well. 👍

@gmcgibbon gmcgibbon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@gmcgibbon
gmcgibbon merged commit 5da63c1 into rails:master Feb 4, 2019
@gsamokovarov
gsamokovarov deleted the cleanup-whitelisting-refs branch February 4, 2019 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants