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
Remove the unused public_room_list_stream #10565
Merged
anoadragon453
merged 11 commits into
release-v1.41
from
anoa/begone_public_room_list_stream
Aug 17, 2021
Merged
Changes from 6 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
307007f
Remove the unused public_room_list_stream
anoadragon453 15bf3da
Changelog
anoadragon453 2cf6acb
Remove get_all_new_public_rooms
anoadragon453 185f8fa
Remove superfluous class methods from RoomStore
anoadragon453 aac90b5
pass on the pass
anoadragon453 1b332b7
Switch from 1 op transactions to simple_* methods
anoadragon453 58b53f2
type fixes
anoadragon453 8cf0191
Upsert instead of insert to avoid integrity errors
anoadragon453 51424a2
Remove RoomStore replication class
anoadragon453 bcce12d
Bump the database schema version to 63
anoadragon453 64cfb61
Add some context to the schema version bump
anoadragon453 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 @@ | ||
Remove the unused public rooms replication stream. |
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.
I wonder if we should just directly use
RoomWorkerStore
ingeneric_worker
. We seem to do a mixture though so I wouldn't block on that.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.
We do import the
*WorkerStore
variant inGenericWorkerSlavedStore
in some cases, so doing so here probably isn't too contentious.Where is this mixture you mentioned?
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.
See where we directly use non-worker stores:
synapse/synapse/app/generic_worker.py
Lines 107 to 121 in b7f7ca2
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 see, OK. I've removed the class for now as it's probably best to not keep it around unless needed.
Tests pass, though it probably warrants a double-check to make sure I did the right thing :)