-
Notifications
You must be signed in to change notification settings - Fork 41
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
Remove all instances of master/slave terminology from core #4451
Comments
I can't figure out how to change the labels on this issue; was going for the "milestone candidate - bug" and "type - task" labels that Jen used on #4441! |
@jenlampton Any thoughts on how to move this ticket forward similarly to #4441? |
@jackaponte I was able to add the labels (though, I had to try three times, they didn't stick at first?) I'll also double check that you are a member of the "Documentation and Organization" team, so that you can add milestones and labels to all issues in this repo. This is supposed to happen automatically any time anyone leaves a comment, but the bot has been broken for years :( |
I think all we need is for someone to file a PR, so... backdrop/backdrop#3177 There are a TON of instances of I expect some tests will fail where they are comparing a view in the test to a view that was created by one of the two methods above. |
Thanks @jenlampton 🙏 ...the PR LGTM 👍 I cannot speak for any instances not picked up by the PR though - I'm assuming that this was the result of a search/replace initially, so also assuming that we caught them all. |
Thanks for moving this forward @jenlampton and @klonos! |
There are still some instances of "master" referring to views displays, and specific branches of various GitHub repositories (ckeditor, etc) but all instances of "slave" have been removed, with the exception of the backwards-compatible database handling, and a check for the old session variable |
Cool, let's get this in then. We can always iterate in the future if more instances need to be removed. |
I found some issues in the current implementation where "replica" was accidentally used in Views config values instead of "default"; that would cause a setting to not be respected. I think some of @klonos's suggestions are also worthwhile and not too difficult. Feedback left in the PR: backdrop/backdrop#3177 |
It looks like this is pretty close although the PR is expired. It looks like the changes are essentially to replace master/slave with primary/replica or where appropriate default/replica and the one additional place is the settings.php file where it is just in a comment. |
I went ahead and closed backdrop/backdrop#3177 since it's the older PR and improvements have been made in the second PR by @herbdool. I resolved the conflicts in backdrop/backdrop#3892 so this should be back to ready for review. |
Ready for review again. I added a couple words to cspell that it caught - since this PR affects little bits of lots of files, it's not surprising. |
This looks good to me. We need to update the I would expect this to be a 1.27.0 change, but it is entirely backwards-compatible, so we could do the next bugfix release. What do folks think? |
The former milestones were also bugfix releases, and I think that's okay. But there will be many translation updates, so a minor release seems more appropriate. Also, in a minor release the change will get more visibility. |
I read through the PR and there are actually only 3 changed translations, all of which are administrative-only: This change in Contact module: And these two strings in Views: - This will make the query attempt to connect to a slave server if available. If no slave server is defined or available, it will fall back to the default server.
+ This will make the query attempt to connect to a replica server if available. If no replica server is defined or available, it will fall back to the default server. - t('Use slave server')
+ t('Use replica server') There are quite a few changes from |
I agree! (And thanks for looking into it.) |
I have merged this into 1.x and 1.26.x! Yay, this is great. Thanks to everyone in helping remove this language. The final solution is also backwards-compatible until 2.x, when the old settings keys will be removed. |
Follow-up issue and PR here: #6262 |
I found a variable name typo that might cause undefined variable notices: #6338. Simple problem for which I filed a PR. |
As mentioned in the comments on #4441, in another effort to remove language that is evocative of or drawn from systemic racism, I propose that we remove all instances of "master" and "slave" terminology from Backdrop core. I would suggest using "primary" and "replica" instead, as Drupal did.
State of current PR:
Search for slave
search for master
The text was updated successfully, but these errors were encountered: