Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Implement event format V2 #4483

Merged
merged 2 commits into from Jan 29, 2019
Merged

Implement event format V2 #4483

merged 2 commits into from Jan 29, 2019

Conversation

erikjohnston
Copy link
Member

@erikjohnston erikjohnston commented Jan 25, 2019

Once this merge it will just be a case of merging all the relevant PRs and enabling room version V3 support

Based on #4514

@codecov-io
Copy link

codecov-io commented Jan 25, 2019

Codecov Report

Merging #4483 into develop will decrease coverage by 0.05%.
The diff coverage is 38.77%.

@@             Coverage Diff             @@
##           develop    #4483      +/-   ##
===========================================
- Coverage    74.75%   74.69%   -0.06%     
===========================================
  Files          336      336              
  Lines        34219    34256      +37     
  Branches      5570     5578       +8     
===========================================
+ Hits         25580    25589       +9     
- Misses        7060     7086      +26     
- Partials      1579     1581       +2

@erikjohnston erikjohnston force-pushed the erikj/event_v2 branch 4 times, most recently from 7166bcb to 3425d2c Compare January 29, 2019 17:29
@erikjohnston erikjohnston changed the title [WIP] Implement MSC 1659 Implement event format V2 Jan 29, 2019
@erikjohnston erikjohnston requested a review from a team January 29, 2019 17:38
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 plausible

@erikjohnston erikjohnston merged commit 6f9cdc2 into develop Jan 29, 2019
turt2live added a commit to matrix-org/matrix-spec-proposals that referenced this pull request Jan 31, 2019
Original proposal: #1659
Implementation proofs (some traversing of the PR tree may be required to get all of them):
* matrix-org/synapse#4483
* matrix-org/synapse#4499

This doesn't intentionally change anything from the proposal.

**Implementation details**:

The simple part of this is the introduction of a rooms/v3.html document. The somewhat unclear part is the stuff done to the s2s definitions. This pulls `unsigned_pdu` out to `unsigned_pdu_base` (all fields except `event_id`) where it can be reused in `pdu` and `pdu_v3` (for rooms v3). These definitions are further moved into the room version specifications where they can highlight the exact schemas in detail.

Version 1 has been updated to include the pre-existing event format, however the core principles of the room have not been changed. The same applies to room version 2. Room versions have immutable core principles once in the spec, otherwise these format changes would land in a pre-existing version.

The client-server API event formats will need updating, however that is being punted to a different commit to try and keep these changes reviewable.
@erikjohnston erikjohnston deleted the erikj/event_v2 branch March 5, 2019 13:52
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

3 participants