Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Add new API appservice specific public room list #1676
Conversation
erikjohnston
added some commits
Dec 6, 2016
erikjohnston
assigned
NegativeMjark
Dec 6, 2016
| + def edit_published_appservice_room_list(self, appservice_id, network_id, | ||
| + room_id, visibility): | ||
| + """Edit the appservice/network specific public room list. | ||
| + """ |
| + @defer.inlineCallbacks | ||
| + def set_room_is_public_appservice(self, room_id, appservice_id, network_id, | ||
| + is_public): | ||
| + """Edit the appservice/network specific public room list. |
NegativeMjark
Dec 6, 2016
Contributor
Could we have docstring for what the params are and what this does?
| + room_id TEXT NOT NULL | ||
| +); | ||
| + | ||
| +CREATE UNIQUE INDEX appservice_room_list_idx ON appservice_room_list( |
| + appservice and network id to use an appservice specific one. | ||
| + Setting to None returns all public rooms across all lists. | ||
| + """ | ||
| + if search_filter or network_tuple is not (None, None): | ||
| # We explicitly don't bother caching searches. |
NegativeMjark
Dec 6, 2016
Contributor
Does the comment need updating if we aren't caching the appservice lists as well?
|
What is an appservice_id look like ooi? |
e.g. |
erikjohnston
referenced this pull request
in matrix-org/sytest
Dec 7, 2016
Merged
Test AS specific room lists #328
|
Now with added sytests matrix-org/sytest#328! |
|
Is it really |
|
Woops, looks like its |
|
Will probably change it to |
lukebarnard1
added a commit
to matrix-org/matrix-js-sdk
that referenced
this pull request
Dec 12, 2016
This was referenced Dec 12, 2016
erikjohnston
added some commits
Dec 12, 2016
|
@matrixbot retest this please |
erikjohnston commentedDec 6, 2016
•
edited
This adds the following:
instance_idfield to each instance in theGET /thirdparty/protocolsAPIPUT /directory/list/appservice/$network_id/$room_idPOST /publicRooms,third_party_instance_idwhich returns rooms published to AS instance specific lists, andinclude_all_networkswhich if true returns all rooms that have been published to any list. By default it will only return rooms on the main, default list.https://docs.google.com/document/d/12mVuOT7Qoa49L_PQAPjavoK9c2nalYEFOHxJOmH5j-w/edit?usp=sharing