This repository was archived by the owner on Apr 26, 2024. It is now read-only.
  
  
  - 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2.1k
Remove experimental MSC2716 implementation to incrementally import history into existing rooms #15748
          
     Merged
      
      
    
  
     Merged
                    Remove experimental MSC2716 implementation to incrementally import history into existing rooms #15748
Changes from all commits
      Commits
    
    
            Show all changes
          
          
            13 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      be3c21e
              
                Remove MSC2716 /batch_send endpoint
              
              
                MadLittleMods f0528e7
              
                WIP: Remove surrounding things
              
              
                MadLittleMods f3243b0
              
                Merge branch 'develop' into madlittlemods/remove-msc2716
              
              
                MadLittleMods 2778724
              
                Remove more references
              
              
                MadLittleMods 4845799
              
                Remove stray batch_send reference
              
              
                MadLittleMods 4652004
              
                Remove MSC2716 being enabled in Complement tests
              
              
                MadLittleMods 3779b04
              
                Remove historical distinction on events
              
              
                MadLittleMods 35198b1
              
                Remove leftover _handle_marker_event usage
              
              
                MadLittleMods 046e6d2
              
                Only one type of backfill point now
              
              
                MadLittleMods 52864ce
              
                Remove leftover MSC2716 storage related things
              
              
                MadLittleMods d8a30e3
              
                Add changelog
              
              
                MadLittleMods d497859
              
                Merge branch 'develop' into madlittlemods/remove-msc2716
              
              
                MadLittleMods dbc0632
              
                Merge branch 'develop' into madlittlemods/remove-msc2716
              
              
                MadLittleMods File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Remove experimental [MSC2716](https://github.com/matrix-org/matrix-spec-proposals/pull/2716) implementation to incrementally import history into existing rooms. | ||
|         
                  MadLittleMods marked this conversation as resolved.
              Show resolved
            Hide resolved | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -91,11 +91,6 @@ class RoomVersion: | |
| # MSC2403: Allows join_rules to be set to 'knock', changes auth rules to allow sending | ||
| # m.room.membership event with membership 'knock'. | ||
| msc2403_knocking: bool | ||
| # MSC2716: Adds m.room.power_levels -> content.historical field to control | ||
| # whether "insertion", "chunk", "marker" events can be sent | ||
| msc2716_historical: bool | ||
| # MSC2716: Adds support for redacting "insertion", "chunk", and "marker" events | ||
| msc2716_redactions: bool | ||
| # MSC3389: Protect relation information from redaction. | ||
| msc3389_relation_redactions: bool | ||
| # MSC3787: Adds support for a `knock_restricted` join rule, mixing concepts of | ||
|  | @@ -130,8 +125,6 @@ class RoomVersions: | |
| msc3083_join_rules=False, | ||
| msc3375_redaction_rules=False, | ||
| msc2403_knocking=False, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=False, | ||
| msc3667_int_only_power_levels=False, | ||
|  | @@ -153,8 +146,6 @@ class RoomVersions: | |
| msc3083_join_rules=False, | ||
| msc3375_redaction_rules=False, | ||
| msc2403_knocking=False, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=False, | ||
| msc3667_int_only_power_levels=False, | ||
|  | @@ -176,8 +167,6 @@ class RoomVersions: | |
| msc3083_join_rules=False, | ||
| msc3375_redaction_rules=False, | ||
| msc2403_knocking=False, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=False, | ||
| msc3667_int_only_power_levels=False, | ||
|  | @@ -199,8 +188,6 @@ class RoomVersions: | |
| msc3083_join_rules=False, | ||
| msc3375_redaction_rules=False, | ||
| msc2403_knocking=False, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=False, | ||
| msc3667_int_only_power_levels=False, | ||
|  | @@ -222,8 +209,6 @@ class RoomVersions: | |
| msc3083_join_rules=False, | ||
| msc3375_redaction_rules=False, | ||
| msc2403_knocking=False, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=False, | ||
| msc3667_int_only_power_levels=False, | ||
|  | @@ -245,8 +230,6 @@ class RoomVersions: | |
| msc3083_join_rules=False, | ||
| msc3375_redaction_rules=False, | ||
| msc2403_knocking=False, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=False, | ||
| msc3667_int_only_power_levels=False, | ||
|  | @@ -268,8 +251,6 @@ class RoomVersions: | |
| msc3083_join_rules=False, | ||
| msc3375_redaction_rules=False, | ||
| msc2403_knocking=False, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=False, | ||
| msc3667_int_only_power_levels=False, | ||
|  | @@ -291,8 +272,6 @@ class RoomVersions: | |
| msc3083_join_rules=False, | ||
| msc3375_redaction_rules=False, | ||
| msc2403_knocking=True, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=False, | ||
| msc3667_int_only_power_levels=False, | ||
|  | @@ -314,8 +293,6 @@ class RoomVersions: | |
| msc3083_join_rules=True, | ||
| msc3375_redaction_rules=False, | ||
| msc2403_knocking=True, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=False, | ||
| msc3667_int_only_power_levels=False, | ||
|  | @@ -337,8 +314,6 @@ class RoomVersions: | |
| msc3083_join_rules=True, | ||
| msc3375_redaction_rules=True, | ||
| msc2403_knocking=True, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=False, | ||
| msc3667_int_only_power_levels=False, | ||
|  | @@ -360,8 +335,6 @@ class RoomVersions: | |
| msc3083_join_rules=True, | ||
| msc3375_redaction_rules=True, | ||
| msc2403_knocking=True, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=True, | ||
| msc3667_int_only_power_levels=False, | ||
|  | @@ -383,8 +356,6 @@ class RoomVersions: | |
| msc3083_join_rules=True, | ||
| msc3375_redaction_rules=True, | ||
| msc2403_knocking=True, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=False, | ||
| msc3667_int_only_power_levels=False, | ||
|  | @@ -406,38 +377,13 @@ class RoomVersions: | |
| msc3083_join_rules=True, | ||
| msc3375_redaction_rules=True, | ||
| msc2403_knocking=True, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=True, | ||
| msc3667_int_only_power_levels=True, | ||
| msc3821_redaction_rules=False, | ||
| msc3931_push_features=(), | ||
| msc3989_redaction_rules=False, | ||
| ) | ||
| MSC2716v4 = RoomVersion( | ||
| "org.matrix.msc2716v4", | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing this room version will mean that users won't be able to leave / interact with such rooms. Not sure if that's a problem for this feature or not There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ehh, people are going to get left behind regardless of the time period we give and I don't think this was very widely used. I've created #15785 to track a solution to this problem in general. | ||
| RoomDisposition.UNSTABLE, | ||
| EventFormatVersions.ROOM_V4_PLUS, | ||
| StateResolutionVersions.V2, | ||
| enforce_key_validity=True, | ||
| special_case_aliases_auth=False, | ||
| strict_canonicaljson=True, | ||
| limit_notifications_power_levels=True, | ||
| msc2175_implicit_room_creator=False, | ||
| msc2176_redaction_rules=False, | ||
| msc3083_join_rules=False, | ||
| msc3375_redaction_rules=False, | ||
| msc2403_knocking=True, | ||
| msc2716_historical=True, | ||
| msc2716_redactions=True, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=False, | ||
| msc3667_int_only_power_levels=False, | ||
| msc3821_redaction_rules=False, | ||
| msc3931_push_features=(), | ||
| msc3989_redaction_rules=False, | ||
| ) | ||
| MSC1767v10 = RoomVersion( | ||
| # MSC1767 (Extensible Events) based on room version "10" | ||
| "org.matrix.msc1767.10", | ||
|  | @@ -453,8 +399,6 @@ class RoomVersions: | |
| msc3083_join_rules=True, | ||
| msc3375_redaction_rules=True, | ||
| msc2403_knocking=True, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=True, | ||
| msc3667_int_only_power_levels=True, | ||
|  | @@ -476,8 +420,6 @@ class RoomVersions: | |
| msc3083_join_rules=True, | ||
| msc3375_redaction_rules=True, | ||
| msc2403_knocking=True, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=True, | ||
| msc3667_int_only_power_levels=True, | ||
|  | @@ -500,8 +442,6 @@ class RoomVersions: | |
| msc3083_join_rules=True, | ||
| msc3375_redaction_rules=True, | ||
| msc2403_knocking=True, | ||
| msc2716_historical=False, | ||
| msc2716_redactions=False, | ||
| msc3389_relation_redactions=False, | ||
| msc3787_knock_restricted_join_rule=True, | ||
| msc3667_int_only_power_levels=True, | ||
|  | @@ -526,7 +466,6 @@ class RoomVersions: | |
| RoomVersions.V9, | ||
| RoomVersions.MSC3787, | ||
| RoomVersions.V10, | ||
| RoomVersions.MSC2716v4, | ||
| RoomVersions.MSC3989, | ||
| RoomVersions.MSC3820opt2, | ||
| ) | ||
|  | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to worry about gracefully dropping database tables for an experimental feature like this?
Relevant tables to drop:
Can we just stop writing to the tables in the Synapse version that this PR ships in, then in the next Synapse version, bump the
SCHEMA_COMPAT_VERSIONand drop the tables?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say we may as well? We still want to be careful that we don't accidentally break upgrades/downgrades for people that have turned on experimental features.
Easiest way of tracking the task of dropping those tables is to create an issue with the future maintenance label and add it to one of the milestones.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created #15786 to track this ⏩