-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Rename configuration option blacklistHosts #7622
Rename configuration option blacklistHosts #7622
Conversation
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
d966bdb
to
c22541d
Compare
@laiscoolblue Thanks for the contribution! Could you please sign our CLA? This would be a breaking change, so wouldn't be able to go in as quickly as we may like. We would have to update all docs and some of the on shortcut links also to get this in. |
Hmmm... Can we support both for the near-term so that people can adapt their codebases to use blocklist immediately and then we will deprecate blacklist in the next major version? |
The CLA is signed. There's a PR open for the documentation as well: cypress-io/cypress-documentation#2861 |
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.
We need to rename some files as well.
Also, we can't just mass rename the value - the old value needs to be supported but a deprecation notice must be displayed. We've done this before on previous renamed values. A warning gets displayed to the user to update their code.
We also need to keep it around in the JSON schema definition for cypress.json
.
52e68d5
Need to add deprecation warnings but want to wait until the error.js file is cleaned up from #7629 |
I'll take another look at this Monday now that #7629 is in. |
Related but for a separate PR: I'd like to see consideration for renaming the "whitelist" Cypress options for cookies to something more appropriate as well, such as "allow list" or "persist list". |
I updated this to issue a deprecation warning, but it seems like we will be releasing a breaking version very soon, so I'll have to update the work again back to breaking changes. :P @zenblender Yes, definitely another issue/PR that we'd be happy to address. |
@zenblender Opened a PR for whitelist changes #7782 |
dismiss brian's earlier review as deprecation warnings have been implemented
I feel like the equivalent to 'blacklist' is 'block' and not 'blocklist', so it should be 'blockHosts'. I also worry folks will think 'blocklist' is a typo or misread it in the docs as 'blacklist' and make the typo themselves, so differentiating it a bit more will help with that. |
Think I'm going to rename this to |
@chrisbreiding This is funny, I didn't even see your comment above. I had just been thinking about it for days 😆 Glad there's consensus! |
…out access to env vars
# Conflicts: # packages/server/test/support/fixtures/projects/e2e/cypress/integration/r equest_spec.coffee
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
This comment has been minimized.
This comment has been minimized.
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
User facing changelog
Rename configuration option from
blacklistHosts
toblockHosts
Additional details
blacklistHosts
toblockHosts
.blacklist
throughout the codebase.How has the user experience changed?
Now when using
blacklistHosts
, there is an error thrown and the process exits.Making it more inclusive by replacing terms that can be perceived as offensive to more self-explanatory names (blacklist/whitelist can reinforce the association of black as bad and white as good).
Examples of projects that already made the change:
Rails
Golang
Graphite Web
HTML
PR Tasks
cypress-documentation
? Rename configuration option blacklistHosts to blocklistHosts cypress-documentation#2861cypress.schema.json
?