summary refs log tree commit diff
path: root/synapse/handlers/room_list.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Import HomeServer from the proper module. (#9665)Patrick Cloke2021-03-231-1/+1
|
* Add ResponseCache tests. (#9458)Jonathan de Jong2021-03-081-2/+2
|
* Add type hints to admin and room list handlers. (#8973)Patrick Cloke2020-12-291-43/+51
|
* Do not assume that the contents dictionary includes history_visibility. (#8945)Patrick Cloke2020-12-161-3/+4
|
* Simplify super() calls to Python 3 syntax. (#8344)Patrick Cloke2020-09-181-1/+1
| | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py
* Convert room list handler to async/await. (#7912)Patrick Cloke2020-07-211-33/+29
|
* Replace iteritems/itervalues/iterkeys with native versions. (#7692)Patrick Cloke2020-06-151-3/+1
|
* Fix 'FederationGroupsRoomsServlet' API when group has room server is not in. ↵Erik Johnston2020-05-291-8/+12
| | | | (#7599)
* Apply federation check for /publicRooms with filter list (#7367)Andrew Morgan2020-04-301-1/+5
|
* Improve error responses when a remote server doesn't allow you to access its ↵Andrew Morgan2020-04-061-11/+12
| | | | public rooms list (#6899)
* Stop returning aliases as part of the room list. (#6970)Patrick Cloke2020-02-211-9/+0
|
* Remove unused public room list timeout param (#6179)Andrew Morgan2019-10-081-12/+1
| | | | | | * Remove unused public room list timeout param * Add changelog
* Fix public room list pagination.Erik Johnston2019-10-021-10/+23
| | | | | | We incorrectly used `room_id` as to bound the result set, even though we order by `joined_members, room_id`, leading to incorrect results after pagination.
* Land improved room list based on room stats (#6019)Erik Johnston2019-10-021-234/+89
| | | | Use room_stats and room_state for room directory search
* Support MSC2197 outbound with unstable prefixOlivier Wilkinson (reivilibre)2019-08-151-1/+28
| | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* Replace returnValue with return (#5736)Amber Brown2019-07-231-5/+5
|
* Run Black. (#5482)Amber Brown2019-06-201-102/+152
|
* Fix grammar and document get_current_users_in_room (#4998)Andrew Morgan2019-04-031-1/+1
|
* Pull out config optionErik Johnston2019-03-201-3/+3
|
* Return before we logErik Johnston2019-03-201-4/+5
|
* Add option to disable search room listsErik Johnston2019-03-191-0/+13
| | | | This disables both local and remote room list searching.
* Merge branch 'develop' of github.com:matrix-org/synapse into ↵Andrew Morgan2019-02-261-2/+26
|\ | | | | | | anoa/public_rooms_federate_develop
| * Revert "Prevent showing non-fed rooms in fed /publicRooms"Andrew Morgan2019-02-261-65/+11
| |
| * Cleaner chunk logicAndrew Morgan2019-02-261-5/+4
| |
| * Correct indentAndrew Morgan2019-02-261-3/+3
| |
| * Correct docstring types and chunk logicAndrew Morgan2019-02-261-10/+11
| |
| * Clean up room chunk logicAndrew Morgan2019-02-261-6/+8
| |
| * Make not showing non-federated rooms the defaultAndrew Morgan2019-02-261-1/+1
| |
| * Result may be NoneAndrew Morgan2019-02-261-1/+1
| |
| * Address rich commentsAndrew Morgan2019-02-261-6/+30
| |
| * elif not else ifAndrew Morgan2019-02-251-1/+1
| |
| * syntax derpAndrew Morgan2019-02-251-1/+1
| |
| * Simplify call to generate_room_entryAndrew Morgan2019-02-251-17/+13
| |
| * Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-02-251-2/+11
| |\ | | | | | | | | | anoa/public_rooms_federate
| | * Change default timeout value from 0 to NoneAndrew Morgan2019-01-241-1/+1
| | |
| | * Use self.clock instead of datetimeAndrew Morgan2019-01-241-4/+3
| | |
| | * isortAndrew Morgan2019-01-241-1/+1
| | |
| | * lintAndrew Morgan2019-01-241-1/+2
| | |
| | * Time out filtered room dir queries after 60sAndrew Morgan2019-01-241-2/+12
| | |
| * | Docs and arg name clarificationAndrew Morgan2019-02-251-2/+15
| | |
| * | Don't restrict non-fed rooms over client APIsAndrew Morgan2019-02-251-11/+18
| | |
| * | Config option to prevent showing non-fed rooms in fed /publicRoomsAndrew Morgan2019-02-251-2/+15
| |/
* | Put function def back to the way it wasAndrew Morgan2019-02-261-3/+3
| |
* | Prevent showing non-fed rooms in fed /publicRoomsAndrew Morgan2019-02-261-12/+50
|/
* Fix roomlist since tokens on Python 3 (#4046)Will Hunt2018-10-171-2/+9
| | | Thanks @Half-Shot !!!
* Port handlers/ to Python 3 (#3803)Amber Brown2018-09-071-1/+1
|
* Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678)Amber Brown2018-08-101-1/+1
|
* typoMatthew Hodgson2018-07-131-3/+3
|
* run isortAmber Brown2018-07-091-11/+9
|
* Consistently use six's iteritems and wrap lazy keys/values in list() if ↵Amber Brown2018-05-311-1/+2
| | | | they're not meant to be lazy (#3307)
* Move more xrange to sixAdrian Tschira2018-04-281-1/+3
| | | | | | plus a bonus next() Signed-off-by: Adrian Tschira <nota@notafile.com>
* Refactor ResponseCache usageRichard van der Hoff2018-04-121-25/+13
| | | | | | | | | | | | | | | Adds a `.wrap` method to ResponseCache which wraps up the boilerplate of a (get, set) pair, and then use it throughout the codebase. This will be largely non-functional, but does include the following functional changes: * federation_server.on_context_state_request: drops use of _server_linearizer which looked redundant and could cause incorrect cache misses by yielding between the get and the set. * RoomListHandler.get_remote_public_room_list(): fixes logcontext leaks * the wrap function includes some logging. I'm hoping this won't be too noisy on production.
* Add metrics for ResponseCacheRichard van der Hoff2018-04-101-2/+3
|
* s/replication_client/federation_client/Erik Johnston2018-03-131-1/+1
|
* Split replication layer into twoErik Johnston2018-03-131-1/+1
|
* add white space lineNeil Johnson2018-01-261-0/+1
|
* rather than try reconstruct the results object, better to guard against the ↵Neil Johnson2018-01-261-6/+2
| | | | xrange step argument being 0
* fix return type, should be a dictNeil Johnson2018-01-251-1/+1
|
* fix PEP8 violationNeil Johnson2018-01-251-1/+1
|
* remove white spaceNeil Johnson2018-01-251-1/+0
|
* synapse 500s on a call to publicRooms in the case where the number of public ↵Neil Johnson2018-01-251-0/+5
| | | | rooms is zero, the specific cause is due to xrange trying to use a step value of zero, but if the total room number really is zero then it makes sense to just bail and save the extra processing
* Reshuffle room list request codeRichard van der Hoff2017-11-141-27/+24
| | | | | | I'm not entirely sure if this will actually help anything, but it simplifies the code and might give further clues about why room list search requests are blowing out the get_current_state_ids caches.
* Add a load of logging to the room_list handlerRichard van der Hoff2017-11-141-0/+13
| | | | So we can see what it gets up to.
* Update room_list.pyErik Johnston2017-10-261-1/+1
|
* Do logcontexts outside ResponseCacheErik Johnston2017-10-251-2/+5
|
* Add logging and fix log contexts for publicRoomsErik Johnston2017-10-251-0/+2
|
* Initial group server implementationErik Johnston2017-07-101-8/+10
|
* CommentsErik Johnston2017-03-131-0/+12
|
* Assume rooms likely haven't changedErik Johnston2017-03-131-8/+11
|
* Get current state by using current_state_events tableErik Johnston2017-03-101-18/+29
|
* Cache network room list queries.Erik Johnston2016-12-161-3/+4
|
* Fix caching on public room listErik Johnston2016-12-131-2/+4
|
* CommentsErik Johnston2016-12-071-1/+2
|
* Add new API appservice specific public room listErik Johnston2016-12-061-11/+46
|
* Add total_room_count_estimate to /publicRoomsErik Johnston2016-09-211-0/+3
|
* Merge pull request #1130 from matrix-org/erikj/fix_pubroom_pagErik Johnston2016-09-191-12/+25
|\ | | | | Handle fact that _generate_room_entry may not return a room entry
| * PEP8Erik Johnston2016-09-171-1/+1
| |
| * Handle fact that _generate_room_entry may not return a room entryErik Johnston2016-09-171-12/+25
| |
* | Merge pull request #1129 from matrix-org/erikj/fix_pubroom_pagErik Johnston2016-09-171-110/+123
|\| | | | | Fix and clean up publicRooms pagination
| * SpellingErik Johnston2016-09-171-1/+1
| |
| * Fix and clean up publicRooms paginationErik Johnston2016-09-171-110/+123
| |
* | Make public room search case insensitiveDavid Baker2016-09-161-4/+4
|/
* CommentErik Johnston2016-09-161-0/+2
|
* Add remote reoom cacheErik Johnston2016-09-161-2/+23
|
* Support filtering remote room listsErik Johnston2016-09-161-3/+9
|
* Filter remote rooms lists locallyErik Johnston2016-09-161-10/+24
|
* Don't cache searched in /publicRoomsErik Johnston2016-09-161-1/+5
|
* Add very basic filter API to /publicRoomsErik Johnston2016-09-151-5/+18
|
* Change the way we calculate new_limit in /publicRooms and add POST APIErik Johnston2016-09-151-15/+33
|
* Base public room list off of public_rooms streamErik Johnston2016-09-151-7/+27
|
* Pass since/from parameters over federationErik Johnston2016-09-151-29/+26
|
* Allow paginating both forwards and backwardsErik Johnston2016-09-151-21/+50
|
* Remove support for aggregate room listsErik Johnston2016-09-151-55/+0
|
* Accept optional token to public room listErik Johnston2016-09-151-7/+75
|
* Calculate the public room list from a stream_orderingErik Johnston2016-09-141-3/+40
|
* Refactor public rooms to not pull out the full state for each roomErik Johnston2016-09-141-14/+30
|
* Move RoomListHandler into a separate fileErik Johnston2016-09-141-0/+184