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
Change registrations to be disabled by default for new servers #29280
Conversation
EDIT: Changed to switch to open registrations if no setting has been saved to the database. Note that I'm not still 100% sure that's what we want, and also this would open registrations for instances which have disabled registrations by editing EDIT2: added a comment in |
461ae54
to
4ab9e38
Compare
Is it not better that it defaults to closed where there is no obviously explicit preference and there's a note in the changelogs to prompt people to check and re-open if they really want it to still be wide open? I get the desire to avoid "creating work" for a larger group of admins but otoh it feels like defaulting to secure is better than risking even one instance inadvertently opening (spam, financial cost, instances filling disks and breaking, etc), and will ensure people who aren't paying attention or don't understand what the change means end up with a closed instance which is probably better for everyone? |
I'm confused why we would switch people to open after the update that changes the default for new installs to closed, or do I misunderstand what happens. If there was no setting in the database it would have already been open, and we're just preserving that? |
I'd definitely like to see closed by default or approval by default — if this temporarily affects admins during upgrade, if they upgrade, then they can always change to open or approval based registration. We could also do a notice in the admin dashboard if no option is stored in the database maybe? |
That is what this migration does! |
313d012
to
9926b04
Compare
Unless they had previously edited settings.yml to close it rather than setting it in the DB, right? I do not think risking opening registrations for any admin who consciously closed them, vs closing them for admins who never indicated an explicit preference to opt in to open registrations, is better? |
In this case, the admin would face a merge conflict, and the line where this has been changed has a comment explicitly calling out the migration. |
9926b04
to
f6d42e7
Compare
Changed to remove the migration and not preserve the setting if it has never been changed from the default (that is, existing instances that are open by virtue of not having changed the default setting, will have closed registrations on update). |
@ClearlyClaire could we actually change this such that open registration isn't even an option if moderator count is less than say 3 mods? |
I'm not very comfortable with this idea, as open registrations may mean a lot of different things based on e.g. |
Perhaps we should split this off into a separate issue discussion? |
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.
LGTM, admin panel would need overhaul anyway
Existing servers which have never changed from the defaults will have closed registrations on update.
This also adds a short notice instructing admins to set up a moderation team before opening registrations.