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
Consistently exclude from user_directory, round 2 #10960
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b9638c9
Introduce `should_include_local_users_in_dir`
3f969d1
Introduce register_appservice_user to HomeserverTestCase
76751aa
Check appservice profile changes are ignored
010314d
test population excludes users it should
a8a12a5
Extra assertion in test_initial
8b614d7
Changelog
8c41d2e
Improve docstring of `register_appservice_user`
667ec6e
Use access_token parameter
c8bb561
Assert 200 response!
aeeb697
Add tests which interrogate room sharing tables
c090ab6
Correctly exclude from users_who_share_private_room
3dc823f
`setup` is not a verb
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
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.
There's a hard-to-spot oversight right below here on -269.
We don't check to see if
other_user_id
ought to be excluded from the directory. We'll gleefully add them tousers_who_share_private_rooms
. This isn't a user-visible problem---if all of the logic elsewhere is correct, thenother_user_id
won't be in theuser_directory
table and so won't show up in searches. But it's a frustrating inconsistency.Instead I'm going to filter out the excluded users early on, right before we assign a value to
users_with_profile
.