-
Notifications
You must be signed in to change notification settings - Fork 336
Allow a few admin APIs used by MAS to run on workers #18313
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
Conversation
4a6639b
to
03d716e
Compare
synapse/handlers/set_password.py
Outdated
# If the device_handler is None, then password changing is disabled. | ||
if self._device_handler is None: |
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.
no problem for a rollout, but for merging to mainline I worry if clarity suffers a bit with this indirection? but should think about it later
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.
Ah - I see why this was done.
We could go back to the previous check on can_change_password
but then we still need to deal with checking if _device_handler
is None.
Maybe it's better to combine the two?
ie.
if not self._auth_handler.can_change_password() or self._device_handler is None:
That would keep the clarity here and negate the need for the comment.
Thoughts?
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.
I did something like that in fcccca4
c5cd804
to
ccd3b30
Compare
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.
Some minor, non-blocking points. Otherwise LGTM.
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.
Oh, and can you update the worker documentation with the newly-allowed endpoints, please?
…e RegistrationWokerStore.
…ord changing is disabled
Co-authored-by: Devon Hudson <[email protected]>
Co-authored-by: Andrew Morgan <[email protected]>
c46853a
to
842b8cf
Compare
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.
Note we typically don't force-push post review, as otherwise it's difficult to see what's changed.
This should be reviewed commit by commit. It adds a few admin servlets that are used by MAS when in delegation mode to workers --------- Co-authored-by: Olivier 'reivilibre <[email protected]> Co-authored-by: Devon Hudson <[email protected]> Co-authored-by: Andrew Morgan <[email protected]>
This should be reviewed commit by commit.
It adds a few admin servlets that are used by MAS when in delegation mode to workers
This is lacking documentation, but we need this for the m.org migration