Commit Graph

2434 Commits (4706f3964d2ba8d6104986b28cedc1f5bb160d29)

Author SHA1 Message Date
David Baker 92e1c8983d Disallow whitespace in aliases here too 10 years ago
David Baker 0c894e1ebd Throw error when creating room if alias contains whitespace #SYN-335 10 years ago
Mark Haines 084c365c3a Use the current token when timing out a notifier, make sure the user_id is a string in on_new_user_event 10 years ago
David Baker c37a6e151f Make shared secret registration work again 10 years ago
David Baker 7c549dd557 Add ID generator for push_rules_enable to #resolve SYN-378 10 years ago
Mark Haines 3edd2d5c93 Fix v2 sync, update the last_notified_ms only if there was an active listener 10 years ago
Erik Johnston 4f1d984e56 Add index on events 10 years ago
Mark Haines 5e0c533672 Fix metric counter 10 years ago
Erik Johnston 968b01a91a Actually use async method 10 years ago
Erik Johnston 4071f29653 Fetch events from events_id in their own transactions 10 years ago
Mark Haines f1b83d88a3 Discard unused NotifierUserStreams 10 years ago
Erik Johnston a988361aea Typo 10 years ago
Erik Johnston 8888982db3 Don't insert None 10 years ago
Mark Haines 9af432257d Don't set a timer if there's already a result to return 10 years ago
Erik Johnston cf706cc6ef Don't return None 10 years ago
Erik Johnston 5971d240d4 Limit batch size 10 years ago
Erik Johnston ca4f458787 Fetch events in bulk 10 years ago
Mark Haines df6db5c802 Don't bother checking for new events from a source if the stream token hasn't advanced for that source 10 years ago
Erik Johnston 6edff11a88 Don't fetch redaction and rejection stuff for each event, so we can use index only scan 10 years ago
Mark Haines 63878c0379 Don't bother checking for updates if the stream token hasn't advanced for a user 10 years ago
Erik Johnston 02590c3e1d Temp turn off checking for rejections and redactions 10 years ago
Erik Johnston 619a21812b defer.gatherResults loop 10 years ago
Erik Johnston fec4485e28 Batch fetching of events for state groups 10 years ago
Erik Johnston 409bcc76bd Load events for state group seperately 10 years ago
Erik Johnston 80fd2b574c Don't talk to yourself when backfilling 10 years ago
Erik Johnston e122685978 You need to call contextmanager 10 years ago
Mark Haines d7b3ac46f8 Revert "Improvement to performance of presence event stream handling" 10 years ago
Erik Johnston 8b28209c60 Err, delete the right stuff 10 years ago
Erik Johnston 30c72d377e Newlines 10 years ago
Erik Johnston e4eddf9b36 We do actually want to delete rows out of event_backward_extremities 10 years ago
Erik Johnston c1779a79bc Fix up _handle_prev_events to not try to insert duplicate rows 10 years ago
Erik Johnston 74850d7f75 Do state groups persistence /after/ checking if we have already persisted the event 10 years ago
Erik Johnston 07a1223156 s/backfil/backfill/ 10 years ago
Erik Johnston 0d31ad5101 Typos everywhere 10 years ago
Erik Johnston a0dfffb33c And another typo. 10 years ago
Erik Johnston 6e5ac4a28f Err, gatherResults doesn't take a dict... 10 years ago
Erik Johnston 8022b27fc2 Make distributer.fire work as it did 10 years ago
Erik Johnston 95dedb866f Unwrap defer.gatherResults failures 10 years ago
Mark Haines 2551b6645d Update the end_token correctly, otherwise the token doesn't advance and the client gets duplicate events 10 years ago
Mark Haines 5002056b16 SYN-377: Make sure that the StreamIdGenerator.get_next.__exit__ is called from the main thread after the transaction completes, not from database thread before the transaction completes. 10 years ago
Mark Haines 5c75adff95 Add a NotifierUserStream to hold all the notification listeners for a user 10 years ago
Erik Johnston 367382b575 Handle the case where the other side is unreachable when backfilling 10 years ago
Erik Johnston 4df11b5039 Make get_current_token accept a direction parameter, which tells whether the source whether we want a token for going 'forwards' or 'backwards' 10 years ago
Erik Johnston 84e6b4001f Initial hack at wiring together pagination and backfill 10 years ago
Erik Johnston 17653a5dfe Move storage.stream._StreamToken to types.RoomStreamToken 10 years ago
Mark Haines e269c511f6 Don't bother passing the events to the notifier since it isn't using them 10 years ago
Mark Haines 5e3b254dc8 Use wait_for_events to implement 'get_events' 10 years ago
Erik Johnston 4ef556f650 Bump version 10 years ago
Erik Johnston b036596b75 Prefer to use _simple_*. 10 years ago
Erik Johnston cd525c0f5a push_rules table expects an 'id' field 10 years ago