Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Easy refactors of the user directory (#10789) | David Robertson | 2021-09-10 | 1 | -18/+28 |
| | | | No functional changes here. This came out as I was working to tackle #5677 | ||||
* | Use inline type hints in `handlers/` and `rest/`. (#10382) | Jonathan de Jong | 2021-07-16 | 1 | -1/+1 |
| | |||||
* | User directory: use calculated room membership state instead (#9821) | Andrew Morgan | 2021-04-16 | 1 | -7/+8 |
| | | | | | Fixes: #9797. Should help reduce CPU usage on the user directory, especially when memberships change in rooms with lots of state history. | ||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -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 Cloke | 2021-03-23 | 1 | -1/+1 |
| | |||||
* | Add back the guard against the user directory stream position not existing. ↵ | Patrick Cloke | 2021-02-18 | 1 | -0/+4 |
| | | | | | | (#9428) As the comment says, this guard was there for when the initial user directory update has yet to happen. | ||||
* | Update black, and run auto formatting over the codebase (#9381) | Eric Eastwood | 2021-02-16 | 1 | -6/+3 |
| | | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version | ||||
* | Add type hints to various handlers. (#9223) | Patrick Cloke | 2021-01-26 | 1 | -4/+5 |
| | | | | With this change all handlers except the e2e_* ones have type hints enabled. | ||||
* | Add type hints to the receipts and user directory handlers. (#8976) | Patrick Cloke | 2021-01-04 | 1 | -21/+42 |
| | |||||
* | Fix a bug that deactivated users appear in the directory (#8933) | Dirk Klimpel | 2020-12-17 | 1 | -2/+6 |
| | | | | | | | | | | Fixes a bug that deactivated users appear in the directory when their profile information was updated. To change profile information of deactivated users is neccesary for example you will remove displayname or avatar. But they should not appear in directory. They are deactivated. Co-authored-by: Erik Johnston <erikj@jki.re> | ||||
* | Do not assume that the contents dictionary includes history_visibility. (#8945) | Patrick Cloke | 2020-12-16 | 1 | -2/+2 |
| | |||||
* | Allow spam-checker modules to be provide async methods. (#8890) | David Teller | 2020-12-11 | 1 | -5/+5 |
| | | | | Spam checker modules can now provide async methods. This is implemented in a backwards-compatible manner. | ||||
* | Fix typos and spelling errors. (#8639) | Patrick Cloke | 2020-10-23 | 1 | -1/+1 |
| | |||||
* | Simplify super() calls to Python 3 syntax. (#8344) | Patrick Cloke | 2020-09-18 | 1 | -1/+1 |
| | | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py | ||||
* | Fix errors when updating the user directory with invalid data (#8223) | Patrick Cloke | 2020-09-01 | 1 | -1/+7 |
| | |||||
* | Replace iteritems/itervalues/iterkeys with native versions. (#7692) | Patrick Cloke | 2020-06-15 | 1 | -4/+2 |
| | |||||
* | Convert user directory handler and related classes to async/await. (#7640) | Patrick Cloke | 2020-06-05 | 1 | -72/+46 |
| | |||||
* | Filter the results of user directory searching via the spam checker (#6888) | Patrick Cloke | 2020-02-14 | 1 | -2/+12 |
| | | | Add a method to the spam checker to filter the user directory results. | ||||
* | Reduce amount of logging at INFO level. (#6862) | Erik Johnston | 2020-02-06 | 1 | -2/+2 |
| | | | | | | | | A lot of the things we log at INFO are now a bit superfluous, so lets make them DEBUG logs to reduce the amount we log by default. Co-Authored-By: Brendan Abolivier <babolivier@matrix.org> Co-authored-by: Brendan Abolivier <github@brendanabolivier.com> | ||||
* | Fix races in room stats (and other) updates. (#6187) | Richard van der Hoff | 2019-10-10 | 1 | -5/+12 |
| | | | | | | | Hopefully this will fix the occasional failures we were seeing in the room directory. The problem was that events are not necessarily persisted (and `current_state_delta_stream` updated) in the same order as their stream_id. So for instance current_state_delta 9 might be persisted *before* current_state_delta 8. Then, when the room stats saw stream_id 9, it assumed it had done everything up to 9, and never came back to do stream_id 8. We can solve this easily by only processing up to the stream_id where we know all events have been persisted. | ||||
* | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -1/+1 |
| | |||||
* | Fix grammar and document get_current_users_in_room (#4998) | Andrew Morgan | 2019-04-03 | 1 | -2/+2 |
| | |||||
* | Refactor out state delta handling into its own class (#4917) | Amber Brown | 2019-03-25 | 1 | -46/+5 |
| | |||||
* | Migrate the user directory initial population to a background task (#4864) | Amber Brown | 2019-03-19 | 1 | -160/+13 |
| | |||||
* | fixup | Amber Brown | 2019-03-13 | 1 | -1/+1 |
| | |||||
* | fixup | Amber Brown | 2019-03-12 | 1 | -47/+70 |
| | |||||
* | fixes | Amber Brown | 2019-03-12 | 1 | -39/+6 |
| | |||||
* | initial | Amber Brown | 2019-03-11 | 1 | -1/+40 |
| | |||||
* | Rewrite userdir to be faster (#4537) | Amber Brown | 2019-03-07 | 1 | -185/+37 |
| | |||||
* | Run `black` on user directory code (#4635) | Amber Brown | 2019-02-13 | 1 | -44/+50 |
| | |||||
* | Add metric for user dir current event stream position | Andrew Morgan | 2019-01-23 | 1 | -0/+6 |
| | |||||
* | create support user (#4141) | Neil Johnson | 2018-12-14 | 1 | -20/+25 |
| | | | | | | Allow for the creation of a support user. A support user can access the server, join rooms, interact with other users, but does not appear in the user directory nor does it contribute to monthly active user limits. | ||||
* | Give some more things logcontexts (#4077) | Richard van der Hoff | 2018-10-23 | 1 | -5/+9 |
| | |||||
* | Add some fixmes | Erik Johnston | 2018-08-17 | 1 | -0/+4 |
| | |||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -3/+4 |
| | |||||
* | Pass around the reactor explicitly (#3385) | Amber Brown | 2018-06-22 | 1 | -5/+4 |
| | |||||
* | Merge pull request #3244 from NotAFile/py3-six-4 | Amber Brown | 2018-05-24 | 1 | -1/+2 |
|\ | | | | | replace some iteritems with six | ||||
| * | replace some iteritems with six | Adrian Tschira | 2018-05-19 | 1 | -1/+2 |
| | | | | | | | | Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | | Remove users from user directory on deactivate | David Baker | 2018-05-24 | 1 | -0/+7 |
|/ | |||||
* | speed up the rate of initial spam for users | Matthew Hodgson | 2017-12-04 | 1 | -11/+12 |
| | |||||
* | fix pep8 and tests | Matthew Hodgson | 2017-12-04 | 1 | -3/+2 |
| | |||||
* | switch to a simpler 'search_all_users' button as per review feedback | Matthew Hodgson | 2017-12-04 | 1 | -3/+3 |
| | |||||
* | fix thinkos galore | Matthew Hodgson | 2017-11-30 | 1 | -4/+6 |
| | |||||
* | untested WIP but might actually work | Matthew Hodgson | 2017-11-29 | 1 | -4/+42 |
| | |||||
* | Add user_directory_include_pattern config param to expand search results to ↵ | Matthew Hodgson | 2017-11-29 | 1 | -2/+2 |
| | | | | | | | | | | additional users Initial commit; this doesn't work yet - the LIKE filtering seems too aggressive. It also needs _do_initial_spam to be aware of prepopulating the whole user_directory_search table with all users... ...and it needs a handle_user_signup() or something to be added so that new signups get incrementally added to the table too. Committing it here as a WIP | ||||
* | s/intial/initial/ | Matthew Hodgson | 2017-11-04 | 1 | -2/+2 |
| | |||||
* | Make some more params configurable | Erik Johnston | 2017-06-22 | 1 | -5/+8 |
| | |||||
* | Typo. ARGH. | Erik Johnston | 2017-06-22 | 1 | -1/+1 |
| | |||||
* | Fix thinko in unhandled user spam | Erik Johnston | 2017-06-22 | 1 | -2/+2 |
| | |||||
* | Don't work out users who share room with appservice users | Erik Johnston | 2017-06-21 | 1 | -2/+11 |
| | |||||
* | Initial worker impl | Erik Johnston | 2017-06-16 | 1 | -6/+13 |
| | |||||
* | Include users who share room with requester in user directory | Erik Johnston | 2017-06-15 | 1 | -2/+2 |
| | |||||
* | Implement updating users who share rooms on the fly | Erik Johnston | 2017-06-15 | 1 | -23/+125 |
| | |||||
* | Implement initial population of users who share rooms table | Erik Johnston | 2017-06-15 | 1 | -2/+76 |
| | |||||
* | Fix user directory insertion due to missing room_id | Erik Johnston | 2017-06-13 | 1 | -3/+7 |
| | |||||
* | Don't assume existance of events when updating user directory | Erik Johnston | 2017-06-13 | 1 | -3/+6 |
| | |||||
* | Change is_host_joined to use current_state table | Erik Johnston | 2017-06-09 | 1 | -3/+3 |
| | | | | | | This bypasses a bug where using the state groups to figure out if a host is in a room sometimes errors if the servers isn't in the room. (For example when the server rejected an invite to a remote room) | ||||
* | Don't start user_directory handling on workers | Erik Johnston | 2017-06-07 | 1 | -0/+3 |
| | |||||
* | Add some logging to user directory | Erik Johnston | 2017-06-07 | 1 | -0/+7 |
| | |||||
* | Handle profile updates in user directory | Erik Johnston | 2017-06-01 | 1 | -0/+25 |
| | |||||
* | Split the table in two | Erik Johnston | 2017-06-01 | 1 | -27/+50 |
| | |||||
* | Comments | Erik Johnston | 2017-06-01 | 1 | -3/+3 |
| | |||||
* | Check if host is still in room | Erik Johnston | 2017-06-01 | 1 | -0/+11 |
| | |||||
* | Fix removing users | Erik Johnston | 2017-06-01 | 1 | -0/+5 |
| | |||||
* | Bug fixes and logging | Erik Johnston | 2017-06-01 | 1 | -1/+21 |
| | | | | | - Check if room is public when a user joins before adding to user dir - Fix typo of field name "content.join_rules" -> "content.join_rule" | ||||
* | Comment briefly on how we keep user_directory up to date | Erik Johnston | 2017-05-31 | 1 | -0/+10 |
| | |||||
* | Lifts things into separate function | Erik Johnston | 2017-05-31 | 1 | -56/+54 |
| | |||||
* | Typos | Erik Johnston | 2017-05-31 | 1 | -8/+8 |
| | |||||
* | Fix tests | Erik Johnston | 2017-05-31 | 1 | -2/+2 |
| | |||||
* | Pull max id from correct table | Erik Johnston | 2017-05-31 | 1 | -4/+2 |
| | |||||
* | Handle the server leaving a public room | Erik Johnston | 2017-05-31 | 1 | -3/+20 |
| | |||||
* | Add comments | Erik Johnston | 2017-05-31 | 1 | -41/+120 |
| | |||||
* | Add search | Erik Johnston | 2017-05-31 | 1 | -0/+3 |
| | |||||
* | Update room column when room becomes unpublic | Erik Johnston | 2017-05-31 | 1 | -2/+21 |
| | |||||
* | Add call later | Erik Johnston | 2017-05-31 | 1 | -0/+2 |
| | |||||
* | Start later | Erik Johnston | 2017-05-31 | 1 | -1/+4 |
| | |||||
* | Don't go round in circles | Erik Johnston | 2017-05-31 | 1 | -4/+2 |
| | |||||
* | Add user_directory to database | Erik Johnston | 2017-05-31 | 1 | -0/+218 |