diff options
author | Ashley Nelson <fant@shley.email> | 2022-10-03 05:57:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 11:57:21 +0100 |
commit | c1e16fd41e24eb1c139b4e4acbef1a309d7d573b (patch) | |
tree | e0b3ad587d2bd002db101a5b9ef6be51ca5e3296 /syncapi/storage/postgres/ignores_table.go | |
parent | b7f4bab358ea6de0932037242f71152bfc27c289 (diff) |
Fix fragility of selectEventsWithEventIDsSQL queries (#2757)
This fixes a temporary workaround with the `selectEventsWithEventIDsSQL`
queries where fields need to be artificially added to the queries so the
row results match the format of the `syncapi_output_room_events` table.
I made similar functions that accept row results from the
`syncapi_current_room_state` table and convert them into StreamEvents
without the fields that are specific to output room events.
There is also a unit test in the first commit to ensure the resulting
behavior doesn't change from the modified queries and functions.
Fixes #601.
### Pull Request Checklist
<!-- Please read docs/CONTRIBUTING.md before submitting your pull
request -->
* [x] I have added tests for PR _or_ I have justified why this PR
doesn't need tests.
* [x] Pull request includes a [sign
off](https://github.com/matrix-org/dendrite/blob/main/docs/CONTRIBUTING.md#sign-off)
Signed-off-by: `Ashley Nelson <fant@shley.email>`
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Diffstat (limited to 'syncapi/storage/postgres/ignores_table.go')
0 files changed, 0 insertions, 0 deletions