This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Introduce update_user_directory_on
#11450
Closed
ShadowJonathan
wants to merge
26
commits into
matrix-org:develop
from
ShadowJonathan:fix-update-user-dir
Closed
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
9a3d3b6
shift to worker_to_update_user_directory
ShadowJonathan 5f6bce7
linter
ShadowJonathan f24f151
news
ShadowJonathan 0f05a6d
update nonsensical name in default_config() to be more inspired
ShadowJonathan 300b51e
add updated sample config
ShadowJonathan 28e255c
update sample config the sequel
ShadowJonathan 47134d1
fix mypy issue
ShadowJonathan 4d518bd
fix sytest
ShadowJonathan b67fe88
debug sytest failures
ShadowJonathan 7ede21e
debug sytest failures mk 2
ShadowJonathan 434d108
add backwards compatibility
ShadowJonathan f2490b3
update config with false behaviour
ShadowJonathan 4593e15
whoops
ShadowJonathan db6625e
add special case for user directory workers
ShadowJonathan 6f6b83b
the lint, it sees all, knows all
ShadowJonathan 7808e86
apply review feedback
ShadowJonathan 2d2c904
update name, move to workers.py
ShadowJonathan 171020d
Merge branch 'develop' into fix-update-user-dir
ShadowJonathan ec9f035
i sort, you sort, we sort
ShadowJonathan 99b6f60
apply review feedback
ShadowJonathan db78c2d
change when deprecation message shows up
ShadowJonathan f54146d
fix backwards compatibility case
ShadowJonathan cec3310
mighty linter
ShadowJonathan 1e9b096
Apply review feedback
ShadowJonathan 4eb9416
fix regression
ShadowJonathan dca6e22
apply review feedback
ShadowJonathan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Introduce `update_user_directory_on` config variable. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
right, I see the confusion here now. "not allowed to" sounds like I've tried to enable something invalid. Maybe
s/not allowed to/not configured to/
.But I don't really understand why this is a thing we need to warn about. Why is it a problem if the updates are done on the main process?
Note that the current wording sounds very much like an error, indicating something that definitely won't work.
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.
👍
That's not the problem, the problem is is that the configuration does not appoint the local worker to do the updates.
The config can now appoint any worker to do this job by its name, so the job of the user directory worker isn't that unique anymore, but it's uniqueness is still supported by synapse.
That's because it is, the local worker has a "type" of being a designated user update worker, while the configuration does not allow it to do just that. This is more or less a warning that "your config, as-is, is contradictory"
The previous version exited the process with
1
when hitting this point, should that be re-introduced?