-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
DEV: group_list site settings should store IDs instead of group names #7860
Conversation
You've signed the CLA, romanrizzi. Thank you! This pull request is ready for review. |
f21c5f3
to
32085cb
Compare
My first question is often: is there a context for this change? It always helps to tie it back to a post on one of our forums in case someone in the future wants to know why we did this. Secondly, as you noticed in your plugin follow ups this is a breaking change. Did you consider adding a new site setting type, for example, In that case we can use group ids for new settings without breaking old ones in plugins. |
I'm guessing the reason for this is because group names are visible in client code. |
I updated the plugin description with some context. Only |
32085cb
to
3f351e2
Compare
3700b0d
to
08b3eeb
Compare
08b3eeb
to
005b466
Compare
bd97f17
to
c5857d3
Compare
c5857d3
to
d0e0c88
Compare
Why do we need this?
Identifying groups by name is not reliable enough when you want to use defaults since they could have been renamed. IDs are a better alternative because they are unique.
After some discussion here, we decided that we should change core to simplify the plugin logic and use defaults safely.