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 10 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 `worker_to_update_user_directory` 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.
please have a look at https://github.com/matrix-org/synapse/blob/develop/docs/code_style.md#configuration-file-format and ensure this matches.
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.
It should probably be in the
workers
section?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.
and maybe it should be called
update_user_directory_on
for consistency withrun_background_tasks_on
?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.
(should it default to the same value as
run_background_tasks_on
?)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.
Possibly, but i wasnt entirely sure if some magic made it so that a main process couldnt see
worker
-defined config values, i'll take a look again.Probably, but then i'd have to make a bunch more changes, i'll block the sytest change for this then.
That's a little bit more complicated, we agreed in #10339 to let it become
None
, and to effectively not assign the master process a name, though this is also cc @anoadragon453We can let this ship through at the moment, or rectify the config value weirdness later, just tell me.
Note: it is already an "effective default" though, as
run_background_tasks_on
simply aliases the main process as "master", this config aliases it asNone
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've addressed all three first issues, but the last issue is still unresolved, i'm leaving this thread open for discussion on that.