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

Implement tracking event format versions #4403

Closed
wants to merge 9 commits into from

Conversation

erikjohnston
Copy link
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

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
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 :/

synapse/events/builder.py Outdated Show resolved Hide resolved
if room_version in {
RoomVersions.V1,
RoomVersions.V2,
RoomVersions.VDH_TEST,
Copy link
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

synapse/federation/federation_client.py Outdated Show resolved Hide resolved
synapse/federation/federation_base.py Show resolved Hide resolved
synapse/events/__init__.py Show resolved Hide resolved
synapse/handlers/events.py Outdated Show resolved Hide resolved
synapse/handlers/message.py Outdated Show resolved Hide resolved
synapse/storage/events.py Outdated Show resolved Hide resolved
synapse/storage/events.py Outdated Show resolved Hide resolved
@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
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.

4 participants