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

Implement tracking event format versions#4403

Closed
erikjohnston wants to merge 9 commits into
developfrom
erikj/event_format_version
Closed

Implement tracking event format versions#4403
erikjohnston wants to merge 9 commits into
developfrom
erikj/event_format_version

Conversation

@erikjohnston
Copy link
Copy Markdown
Member

@erikjohnston erikjohnston commented Jan 16, 2019

This PR is in two parts:

  1. Ensure that we always know the room version whenever we process events.
  2. Track the event format version of each event in the database.

Based on #4390 and #4402

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jan 16, 2019

Codecov Report

Merging #4403 into develop will increase coverage by <.01%.
The diff coverage is 82.05%.

@@             Coverage Diff             @@
##           develop    #4403      +/-   ##
===========================================
+ Coverage    73.64%   73.65%   +<.01%     
===========================================
  Files          300      300              
  Lines        29801    29837      +36     
  Branches      4896     4901       +5     
===========================================
+ Hits         21947    21975      +28     
- Misses        6417     6418       +1     
- Partials      1437     1444       +7

@erikjohnston erikjohnston requested a review from a team January 16, 2019 17:41
Copy link
Copy Markdown
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.

looks generally plausible I guess, though I'm generally having trouble keeping all the state for a +199 -83 patch in my head at once :/

Comment thread synapse/events/builder.py Outdated
Comment thread synapse/events/builder.py
if room_version in {
RoomVersions.V1,
RoomVersions.V2,
RoomVersions.VDH_TEST,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we should consider dropping these test versions imho

Comment thread synapse/federation/federation_client.py Outdated
Comment thread synapse/federation/federation_base.py
Comment thread synapse/events/__init__.py
Comment thread synapse/handlers/events.py Outdated
Comment thread synapse/handlers/message.py Outdated
Comment thread synapse/storage/events.py
Comment thread synapse/storage/events.py
Comment thread synapse/storage/schema/delta/54/event_format_version.sql
@erikjohnston erikjohnston force-pushed the erikj/event_format_version branch from 0d00293 to 3a396c7 Compare January 21, 2019 17:48
@erikjohnston erikjohnston force-pushed the erikj/event_format_version branch from 5e86c36 to be2f648 Compare January 21, 2019 18:11
@erikjohnston erikjohnston assigned hawkowl and unassigned erikjohnston Jan 23, 2019
@erikjohnston
Copy link
Copy Markdown
Member Author

This has been superseded by #4451 and co.

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.

5 participants