Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Expose DataStore._get_events as get_events_as_list #5184

Merged
merged 3 commits into from May 15, 2019

Conversation

erikjohnston
Copy link
Member

This is in preparation for reaction work which requires it.

This is in preparation for reaction work which requires it.
@erikjohnston erikjohnston requested a review from a team May 14, 2019 12:42
@codecov
Copy link

codecov bot commented May 14, 2019

Codecov Report

Merging #5184 into develop will not change coverage.
The diff coverage is 80%.

@@           Coverage Diff            @@
##           develop    #5184   +/-   ##
========================================
  Coverage    62.15%   62.15%           
========================================
  Files          336      336           
  Lines        34659    34659           
  Branches      5694     5694           
========================================
  Hits         21541    21541           
  Misses       11583    11583           
  Partials      1535     1535

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair enough

# go and fetch the relevant row from the db, but it would be nice
# to think about how we can cache this rather than hit the db
# every time we access a redaction event.
# For now (quick hack to fix during 0.99 release cycle), we
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh god, it's another "quick hack" which will be biting us in 5 years time, isn't it

synapse/storage/events_worker.py Outdated Show resolved Hide resolved
Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
@erikjohnston erikjohnston merged commit d945440 into develop May 15, 2019
@erikjohnston erikjohnston deleted the erikj/expose_get_events_as_array branch January 9, 2020 15:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants