anonymousland-synapse/synapse/storage
Richard van der Hoff 65c5592b8e
Refactor get_events_as_list (#5699)
A couple of changes here:

* get rid of a redundant `allow_rejected` condition - we should already have filtered out any rejected
  events before we get to that point in the code, and the redundancy is confusing. Instead, let's stick in
  an assertion just to make double-sure we aren't leaking rejected events by mistake.

* factor out a `_get_events_from_cache_or_db` method, which is going to be important for a 
  forthcoming fix to redactions.
2019-07-17 16:49:19 +01:00
..
engines Run Black. (#5482) 2019-06-20 19:32:02 +10:00
schema Implement access token expiry (#5660) 2019-07-12 17:26:02 +01:00
util Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
__init__.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
_base.py Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
account_data.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
appservice.py Expose DataStore._get_events as get_events_as_list 2019-05-14 13:37:44 +01:00
background_updates.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
client_ips.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
deviceinbox.py Fix bug sending federation transactions with lots of EDUs 2019-06-10 16:22:45 +01:00
devices.py Review comments 2019-06-27 16:06:23 +01:00
directory.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
e2e_room_keys.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
end_to_end_keys.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
event_federation.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
event_push_actions.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
events_bg_updates.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
events_worker.py Refactor get_events_as_list (#5699) 2019-07-17 16:49:19 +01:00
events.py Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
filtering.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
group_server.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
keys.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
media_repository.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
monthly_active_users.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
openid.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
prepare_database.py Fix "Unexpected entry in 'full_schemas'" log warning (#5509) 2019-06-21 15:11:57 +01:00
presence.py Remove presence lists (#4989) 2019-04-03 11:11:15 +01:00
profile.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
push_rule.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
pusher.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
receipts.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
registration.py Implement access token expiry (#5660) 2019-07-12 17:26:02 +01:00
rejections.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
relations.py Include the original event in /relations (#5626) 2019-07-09 13:43:08 +01:00
room.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
roommember.py Add basic function to get all data for a user out of synapse 2019-07-02 12:09:04 +01:00
search.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
signatures.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
state_deltas.py Room Statistics (#4338) 2019-05-21 11:36:50 -05:00
state.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
stats.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
stream.py Fixup docstrings 2019-07-12 16:59:59 +01:00
tags.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
transactions.py remove dead transaction persist code (#5622) 2019-07-05 12:59:42 +01:00
user_directory.py Fix grammar and document get_current_users_in_room (#4998) 2019-04-03 14:32:20 +01:00
user_erasure_store.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00