Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Change the way we do public room list fetching #552

Merged
merged 6 commits into from
Feb 3, 2016

Conversation

erikjohnston
Copy link
Member

No description provided.

@erikjohnston
Copy link
Member Author

matrixbot: test this please.


# FIXME (erikj): START is no longer a valid value
defer.returnValue({"start": "START", "end": "END", "chunk": chunk})
defer.returnValue({"start": "START", "end": "END", "chunk": result})

@defer.inlineCallbacks
def get_room_avatar_url(self, room_id):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like get_room_avatar isn't called anywhere now.

@@ -876,39 +876,71 @@ class RoomListHandler(BaseHandler):

@defer.inlineCallbacks
def get_public_room_list(self):
chunk = yield self.store.get_rooms(is_public=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get_rooms is only called in one place now, and that is to get the number of rooms in synapse.app.homeserver:phone_stats_home. It might be nice to kill it for good.

@NegativeMjark
Copy link
Contributor

The changes themselves LGTM. It would be great to finish the cleanup and remove the mostly unused get_rooms method. At the very least commenting the method and the call-site to make it clear that we wnat to get rid of it.

@erikjohnston
Copy link
Member Author

matrixbot: test this please

@NegativeMjark
Copy link
Contributor

LGTM

erikjohnston added a commit that referenced this pull request Feb 3, 2016
Change the way we do public room list fetching
@erikjohnston erikjohnston merged commit 430e496 into develop Feb 3, 2016
@erikjohnston erikjohnston deleted the erikj/public_room_fix branch February 23, 2016 16:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants