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
Add endpoints for backfilling history (MSC2716) #9247
          
     Merged
      
      
    
  
     Merged
                    Changes from 3 commits
      Commits
    
    
            Show all changes
          
          
            96 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      22c038e
              
                Add endpoints for backfilling history (MSC2716)
              
              
                MadLittleMods 4836954
              
                Add querystring prev_event to pass into message send API
              
              
                MadLittleMods c0b0936
              
                Allow override origin_server_ts
              
              
                MadLittleMods bf90053
              
                Remove origin_server_ts in favor of spec'ed ts query param
              
              
                MadLittleMods bcc6943
              
                Use previous depth if overriding prev_events to insert into history
              
              
                MadLittleMods 7f4c3a6
              
                Remove m.historical messages from /sync
              
              
                MadLittleMods 800f3a3
              
                Remove debug logs
              
              
                MadLittleMods 9b5e057
              
                Fix some lint
              
              
                MadLittleMods 447eaa8
              
                Add changelog
              
              
                MadLittleMods 7ec22b5
              
                Fix tox mypy check
              
              
                MadLittleMods afa5e5d
              
                Remove debugging fields for TARDIS visualization
              
              
                MadLittleMods f1f3fb0
              
                Pass inherit_depth all the way down the line  which we define only wh…
              
              
                MadLittleMods e7d7f92
              
                Fix some lints
              
              
                MadLittleMods b9024f7
              
                Type hinting and docstrings
              
              
                MadLittleMods d204880
              
                Merge branch 'develop' into eric/msc2716-backfilling-history
              
              
                MadLittleMods dbba361
              
                Add experimental feature flag for MSC2716
              
              
                MadLittleMods f1c31f1
              
                Fix isort linting
              
              
                MadLittleMods 19aa93c
              
                Fix experimental msc2716 feature flag
              
              
                MadLittleMods c074584
              
                Try fix type hints and tox errors
              
              
                MadLittleMods c02079d
              
                Fix extra new line lint
              
              
                MadLittleMods 412ffc3
              
                Update changelog.d/9247.feature
              
              
                MadLittleMods 7160f3b
              
                Update synapse/events/builder.py
              
              
                MadLittleMods 5ff398d
              
                Update synapse/visibility.py
              
              
                MadLittleMods 864b98f
              
                Clean up docstrings and address review
              
              
                MadLittleMods 6f174f1
              
                Merge branch 'eric/msc2716-backfilling-history' of github.com:matrix-…
              
              
                MadLittleMods ba1eb39
              
                Simplify prev_event fetching off the event dictionary
              
              
                MadLittleMods 6d4fcb6
              
                Filter recent events in both places that we fetch them
              
              
                MadLittleMods 5d5fb8b
              
                Fix lint
              
              
                MadLittleMods ed76d5f
              
                Merge branch 'develop' into eric/msc2716-backfilling-history
              
              
                MadLittleMods 1aa3af9
              
                Fix newline lint
              
              
                MadLittleMods e63ef8e
              
                Remove return strict type to avoid downstream lint problems
              
              
                MadLittleMods c90af9e
              
                Fix test failure with mocked build function
              
              
                MadLittleMods 270e5ee
              
                Fix lint
              
              
                MadLittleMods 4359ab8
              
                Fix lint again wanting to reverse what black wants...
              
              
                MadLittleMods 641e871
              
                Merge branch 'develop' into eric/msc2716-backfilling-history
              
              
                MadLittleMods 6d8514f
              
                Run lint.sh
              
              
                MadLittleMods 5dacc86
              
                Remove default for inherit_depth
              
              
                MadLittleMods 61dc89f
              
                WIP: Use depth from successor event
              
              
                MadLittleMods e12a77d
              
                Fix depth on historical forward extremeties
              
              
                MadLittleMods 8549219
              
                403 when non appservice trying to use prev_event
              
              
                MadLittleMods 6c96622
              
                Merge branch 'develop' into eric/msc2716-backfilling-history
              
              
                MadLittleMods 23d0379
              
                Bulk send endpoint for backfilling history (MSC2716)
              
              
                MadLittleMods ea37564
              
                Add bulk send endpoint
              
              
                MadLittleMods 7008ee0
              
                Skip everything and just persist the event
              
              
                MadLittleMods 0d4736f
              
                Scratch commit trying to use existing functions
              
              
                MadLittleMods 49631e5
              
                Scratch commit 2
              
              
                MadLittleMods 06dccec
              
                Scratch commit 3
              
              
                MadLittleMods 8e0684d
              
                Merge branch 'develop' into eric/msc2716-backfilling-history
              
              
                MadLittleMods cbd16b8
              
                Working bulksend endpoint for sending state and historical messages (…
              
              
                MadLittleMods 044a761
              
                Fix up some CI lints
              
              
                MadLittleMods 86ec915
              
                Fix some more CI lint and tests
              
              
                MadLittleMods 81b45b5
              
                Copy over origin_server_ts when bulksend'ing
              
              
                MadLittleMods 02b7335
              
                Wrap bulksend endpoint around experimental feature flag and only apps…
              
              
                MadLittleMods 82708cb
              
                Add comment docs for new parameters
              
              
                MadLittleMods f0fb732
              
                Add historical messages to /backfill response
              
              
                MadLittleMods c525c5d
              
                Logging to better debug federated event not authing
              
              
                MadLittleMods 5deee7c
              
                Add local copy of signedjson to debug sign/verify steps
              
              
                MadLittleMods 960ec21
              
                More log debugging
              
              
                MadLittleMods 779ef25
              
                Revert debugging commits
              
              
                MadLittleMods 7dcc0fa
              
                Fix signature check failing for historical state events
              
              
                MadLittleMods 52b1e7b
              
                Clean up remaining debug logs
              
              
                MadLittleMods 1d6cf78
              
                Add insertion events to the end of chunks
              
              
                MadLittleMods 13b18a8
              
                Add insertion initially, end of chunk, and add live markers
              
              
                MadLittleMods 3d513bf
              
                Remove partial federation code in favor of future insertion/marker logic
              
              
                MadLittleMods e92a9e9
              
                Start of new approach for chronolgoical events in chunk
              
              
                MadLittleMods e9ae5e1
              
                Chronological events but persist in reverse-chronological
              
              
                MadLittleMods a978f38
              
                Skip push notification actions for historical messages
              
              
                MadLittleMods 2c22929
              
                Use more explicit comparison
              
              
                MadLittleMods 0501a11
              
                Fix lint
              
              
                MadLittleMods e231a99
              
                Merge branch 'develop' into eric/msc2716-backfilling-history
              
              
                MadLittleMods 176a854
              
                Uncomment dropped fields to see if tests pass
              
              
                MadLittleMods a6a05f8
              
                Merge branch 'develop' into eric/msc2716-backfilling-history
              
              
                MadLittleMods 25aef56
              
                Return early instead of big if nesting
              
              
                MadLittleMods 0580d09
              
                Pass in prev_events as function parameter so clients can't set it in …
              
              
                MadLittleMods ef68832
              
                Switch to passing depth directly instead of inherit_depth
              
              
                MadLittleMods d8316d6
              
                Calculate and pass in depth directly
              
              
                MadLittleMods 513d7a2
              
                Only get_max_depth_of where we use it
              
              
                MadLittleMods f36bdde
              
                Remove random logs used while developing
              
              
                MadLittleMods c2e1924
              
                Use nice negative list index to grab last item
              
              
                MadLittleMods 88327fb
              
                Remove unneeded body from insertion events
              
              
                MadLittleMods 34f130c
              
                Switch wording from bulk to batch
              
              
                MadLittleMods 2f35954
              
                Always use auth_event_ids from the event itself
              
              
                MadLittleMods 6ce47d3
              
                Protect from clients from using the historical logic (only /batchsend…
              
              
                MadLittleMods b032370
              
                Merge branch 'develop' into eric/msc2716-backfilling-history
              
              
                MadLittleMods 22881e2
              
                Fix incorrect logic when refactoring to is_historical (failed tests a…
              
              
                MadLittleMods ae85719
              
                Fix tests using False as a depth value (should be None)
              
              
                MadLittleMods d59d6be
              
                Merge branch 'develop' into eric/msc2716-backfilling-history
              
              
                MadLittleMods c236a3c
              
                Fix greedy find/replace
              
              
                MadLittleMods 429e130
              
                Add docstring to explain batchsend endpoint
              
              
                MadLittleMods 29c3708
              
                Only use necessary auth_events
              
              
                MadLittleMods 89e08c5
              
                Merge branch 'develop' into eric/msc2716-backfilling-history
              
              
                MadLittleMods bfe458c
              
                Use unstable endpoint for MSC2716 batch send
              
              
                MadLittleMods 2c1750f
              
                Merge branch 'develop' into eric/msc2716-backfilling-history
              
              
                MadLittleMods e851dac
              
                Remove complement test jig changes
              
              
                MadLittleMods 7dcbba9
              
                Merge branch 'develop' into eric/msc2716-backfilling-history
              
              
                MadLittleMods f7158ff
              
                Correct comment to make more sense to what the code was doing
              
              
                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
    
  
  
    
              
  
    
      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
    
  
  
    
              
  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.