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

Add endpoints for backfilling history (MSC2716) #9247

Merged
merged 96 commits into from
Jun 22, 2021

Commits on Jan 28, 2021

  1. Configuration menu
    Copy the full SHA
    22c038e View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2021

  1. Configuration menu
    Copy the full SHA
    4836954 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2021

  1. Configuration menu
    Copy the full SHA
    c0b0936 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2021

  1. Remove origin_server_ts in favor of spec'ed ts query param

    Also edits for TARDIS visualation: matrix-org/tardis#1
    MadLittleMods committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    bf90053 View commit details
    Browse the repository at this point in the history
  2. Use previous depth if overriding prev_events to insert into history

    TODO: Is the assumption of anytime we pass in prev_event_ids, we use same depth
    good enough? What corner cases are there? I see that we also pass in prev_event_ids this in
    synapse/handlers/room_member.py so need to make sure that still work as expected
    MadLittleMods committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    bcc6943 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2021

  1. Configuration menu
    Copy the full SHA
    7f4c3a6 View commit details
    Browse the repository at this point in the history
  2. Remove debug logs

    MadLittleMods committed Feb 5, 2021
    Configuration menu
    Copy the full SHA
    800f3a3 View commit details
    Browse the repository at this point in the history
  3. Fix some lint

    MadLittleMods committed Feb 5, 2021
    Configuration menu
    Copy the full SHA
    9b5e057 View commit details
    Browse the repository at this point in the history
  4. Add changelog

    MadLittleMods committed Feb 5, 2021
    Configuration menu
    Copy the full SHA
    447eaa8 View commit details
    Browse the repository at this point in the history
  5. Fix tox mypy check

    MadLittleMods committed Feb 5, 2021
    Configuration menu
    Copy the full SHA
    7ec22b5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    afa5e5d View commit details
    Browse the repository at this point in the history
  7. Pass inherit_depth all the way down the line which we define only whe…

    …n prev_event query param is used
    MadLittleMods committed Feb 5, 2021
    Configuration menu
    Copy the full SHA
    f1f3fb0 View commit details
    Browse the repository at this point in the history
  8. Fix some lints

    MadLittleMods committed Feb 5, 2021
    Configuration menu
    Copy the full SHA
    e7d7f92 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2021

  1. Configuration menu
    Copy the full SHA
    b9024f7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d204880 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dbba361 View commit details
    Browse the repository at this point in the history
  4. Fix isort linting

    MadLittleMods committed Feb 9, 2021
    Configuration menu
    Copy the full SHA
    f1c31f1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    19aa93c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c074584 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c02079d View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2021

  1. Update changelog.d/9247.feature

    Co-authored-by: Patrick Cloke <[email protected]>
    MadLittleMods and clokep authored Feb 11, 2021
    Configuration menu
    Copy the full SHA
    412ffc3 View commit details
    Browse the repository at this point in the history
  2. Update synapse/events/builder.py

    Co-authored-by: Patrick Cloke <[email protected]>
    MadLittleMods and clokep authored Feb 11, 2021
    Configuration menu
    Copy the full SHA
    7160f3b View commit details
    Browse the repository at this point in the history
  3. Update synapse/visibility.py

    Co-authored-by: Patrick Cloke <[email protected]>
    MadLittleMods and clokep authored Feb 11, 2021
    Configuration menu
    Copy the full SHA
    5ff398d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    864b98f View commit details
    Browse the repository at this point in the history
  5. Merge branch 'eric/msc2716-backfilling-history' of github.com:matrix-…

    …org/synapse into eric/msc2716-backfilling-history
    MadLittleMods committed Feb 11, 2021
    Configuration menu
    Copy the full SHA
    6f174f1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ba1eb39 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6d4fcb6 View commit details
    Browse the repository at this point in the history
  8. Fix lint

    MadLittleMods committed Feb 11, 2021
    Configuration menu
    Copy the full SHA
    5d5fb8b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ed76d5f View commit details
    Browse the repository at this point in the history
  10. Fix newline lint

    MadLittleMods committed Feb 11, 2021
    Configuration menu
    Copy the full SHA
    1aa3af9 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    e63ef8e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c90af9e View commit details
    Browse the repository at this point in the history
  13. Fix lint

    MadLittleMods committed Feb 11, 2021
    Configuration menu
    Copy the full SHA
    270e5ee View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    4359ab8 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2021

  1. Merge branch 'develop' into eric/msc2716-backfilling-history

    Conflicts:
    	synapse/events/builder.py
    MadLittleMods committed Feb 17, 2021
    Configuration menu
    Copy the full SHA
    641e871 View commit details
    Browse the repository at this point in the history
  2. Run lint.sh

    MadLittleMods committed Feb 17, 2021
    Configuration menu
    Copy the full SHA
    6d8514f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5dacc86 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2021

  1. WIP: Use depth from successor event

    Implementing #9247 (comment)
    MadLittleMods committed Mar 11, 2021
    Configuration menu
    Copy the full SHA
    61dc89f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e12a77d View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2021

  1. Configuration menu
    Copy the full SHA
    8549219 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2021

  1. Merge branch 'develop' into eric/msc2716-backfilling-history

    Conflicts:
    	synapse/config/experimental.py
    	synapse/visibility.py
    MadLittleMods committed Mar 30, 2021
    Configuration menu
    Copy the full SHA
    6c96622 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    23d0379 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2021

  1. Configuration menu
    Copy the full SHA
    ea37564 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7008ee0 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2021

  1. Configuration menu
    Copy the full SHA
    0d4736f View commit details
    Browse the repository at this point in the history
  2. Scratch commit 2

    MadLittleMods committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    49631e5 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2021

  1. Scratch commit 3

    MadLittleMods committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    06dccec View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2021

  1. Merge branch 'develop' into eric/msc2716-backfilling-history

    Conflicts:
    	scripts-dev/complement.sh
    	synapse/config/experimental.py
    	tests/storage/test_redaction.py
    MadLittleMods committed Apr 10, 2021
    Configuration menu
    Copy the full SHA
    8e0684d View commit details
    Browse the repository at this point in the history
  2. Working bulksend endpoint for sending state and historical messages (…

    …authed)
    
    Copy repo state from #9759
    MadLittleMods committed Apr 10, 2021
    Configuration menu
    Copy the full SHA
    cbd16b8 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2021

  1. Fix up some CI lints

    MadLittleMods committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    044a761 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2021

  1. Configuration menu
    Copy the full SHA
    86ec915 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    81b45b5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    02b7335 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    82708cb View commit details
    Browse the repository at this point in the history

Commits on May 1, 2021

  1. Add historical messages to /backfill response

    They do not auth correctly though
    
    ```
    2021-05-01 02:08:20,888 - synapse.handlers.federation - 2509 - INFO - GET-4 - auth_events refers to events which are not in our calculated auth chain: {'$tLNZXWvubBTZyo8VQwG77xni_lMw67AseQRxQ9hJblM', '$iwYNb_ZF4IHRB-4x1OCjtCT206clBlUjDlTZFtxPbiY', '$79GFmHJKGSpQTYmxL6gpteK7CgaVtAV_KKjTxXKSKtY', '$6U3Dw80m6PwtUqp4hzGdo6LL3Q3CeRyL3CpY2j9NOKo', '$8qUw8T4lslR38TUmeIB2kXwF2eMvOLbAGj-PiIdVAM8', '$bhniSE3Vv71c3Eo1G_YCig3VNflaAbDIyIm51d_6nsU', '$gl7q_qh3siy4Gx_iCwhT8cGJSdnH38_o97kGHR0HJYM'}
    2021-05-01 02:08:20,890 - synapse.state - 452 - INFO - GET-4 - Resolving state for !pIRfotsTwFNpPshIIV:hs1 with 2 groups
    2021-05-01 02:08:20,893 - synapse.handlers.federation - 2548 - INFO - GET-4 - After state res: updating auth_events with new state {('m.room.create', ''): '$6U3Dw80m6PwtUqp4hzGdo6LL3Q3CeRyL3CpY2j9NOKo', ('m.room.member', '@the-bridge-user:hs1'): '$tLNZXWvubBTZyo8VQwG77xni_lMw67AseQRxQ9hJblM', ('m.room.power_levels', ''): '$iwYNb_ZF4IHRB-4x1OCjtCT206clBlUjDlTZFtxPbiY', ('m.room.join_rules', ''): '$bhniSE3Vv71c3Eo1G_YCig3VNflaAbDIyIm51d_6nsU', ('m.room.history_visibility', ''): '$gl7q_qh3siy4Gx_iCwhT8cGJSdnH38_o97kGHR0HJYM', ('m.room.member', '@alice:hs1'): '$8qUw8T4lslR38TUmeIB2kXwF2eMvOLbAGj-PiIdVAM8'}
    2021-05-01 02:08:20,897 - synapse.handlers.federation - 2389 - WARNING - GET-4 - Failed auth resolution for <FrozenEventV3 event_id='$Xow9Ex_IDhUMm8W-nFOkL-NXT4lByajdO-aDcNuScbM', type='m.room.message', state_key=None> because 403: User @maria:hs1 not in room !pIRfotsTwFNpPshIIV:hs1 (None)
    ```
    MadLittleMods committed May 1, 2021
    Configuration menu
    Copy the full SHA
    f0fb732 View commit details
    Browse the repository at this point in the history
  2. Logging to better debug federated event not authing

    See #9247 (comment)
    
    Wrong member event coming down /event_auth
    MadLittleMods committed May 1, 2021
    Configuration menu
    Copy the full SHA
    c525c5d View commit details
    Browse the repository at this point in the history

Commits on May 5, 2021

  1. Configuration menu
    Copy the full SHA
    5deee7c View commit details
    Browse the repository at this point in the history

Commits on May 6, 2021

  1. More log debugging

    MadLittleMods committed May 6, 2021
    Configuration menu
    Copy the full SHA
    960ec21 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    779ef25 View commit details
    Browse the repository at this point in the history
  3. Fix signature check failing for historical state events

    Make sure to use a copy of this list as we add to it and loop here.
    Otherwise it will be the same reference and update when we append here later.
    
    For context, see #9247 (comment)
    MadLittleMods committed May 6, 2021
    Configuration menu
    Copy the full SHA
    7dcc0fa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    52b1e7b View commit details
    Browse the repository at this point in the history

Commits on May 14, 2021

  1. Configuration menu
    Copy the full SHA
    1d6cf78 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    13b18a8 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2021

  1. Configuration menu
    Copy the full SHA
    3d513bf View commit details
    Browse the repository at this point in the history

Commits on May 21, 2021

  1. Start of new approach for chronolgoical events in chunk

    See #9247 (comment)
    
    Start of refactor to order events in each chunk in chronological order
    but persist events in reverse-chronological order to get the correct
    (topological_ordering, stream_ordering).
    
    No marker events
    MadLittleMods committed May 21, 2021
    Configuration menu
    Copy the full SHA
    e92a9e9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e9ae5e1 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2021

  1. Configuration menu
    Copy the full SHA
    a978f38 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2c22929 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2021

  1. Fix lint

    MadLittleMods committed May 27, 2021
    Configuration menu
    Copy the full SHA
    0501a11 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'develop' into eric/msc2716-backfilling-history

    Conflicts:
    	scripts-dev/complement.sh
    	synapse/api/auth.py
    	synapse/handlers/message.py
    MadLittleMods committed May 27, 2021
    Configuration menu
    Copy the full SHA
    e231a99 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    176a854 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2021

  1. Merge branch 'develop' into eric/msc2716-backfilling-history

    Conflicts:
    	synapse/http/servlet.py
    MadLittleMods committed May 29, 2021
    Configuration menu
    Copy the full SHA
    a6a05f8 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2021

  1. Configuration menu
    Copy the full SHA
    25aef56 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0580d09 View commit details
    Browse the repository at this point in the history
  3. Switch to passing depth directly instead of inherit_depth

    See https://github.com/matrix-org/synapse/pull/9247/files#r636778295
    
    Conflicts:
    	changelog.d/10049.misc
    	synapse/handlers/message.py
    MadLittleMods committed Jun 5, 2021
    Configuration menu
    Copy the full SHA
    ef68832 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2021

  1. Configuration menu
    Copy the full SHA
    d8316d6 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2021

  1. Configuration menu
    Copy the full SHA
    513d7a2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f36bdde View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c2e1924 View commit details
    Browse the repository at this point in the history
  4. Remove unneeded body from insertion events

    It was a problem with how my Complement tests were only iterating
    over events with body fields.
    MadLittleMods committed Jun 7, 2021
    Configuration menu
    Copy the full SHA
    88327fb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    34f130c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2f35954 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6ce47d3 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2021

  1. Configuration menu
    Copy the full SHA
    b032370 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    22881e2 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2021

  1. Configuration menu
    Copy the full SHA
    ae85719 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2021

  1. Merge branch 'develop' into eric/msc2716-backfilling-history

    Conflicts:
    	synapse/config/experimental.py
    	synapse/handlers/room_member.py
    MadLittleMods committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    d59d6be View commit details
    Browse the repository at this point in the history
  2. Fix greedy find/replace

    MadLittleMods committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    c236a3c View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2021

  1. Configuration menu
    Copy the full SHA
    429e130 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    29c3708 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'develop' into eric/msc2716-backfilling-history

    Conflicts:
    	synapse/config/experimental.py
    MadLittleMods committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    89e08c5 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2021

  1. Configuration menu
    Copy the full SHA
    bfe458c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2c1750f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e851dac View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2021

  1. Configuration menu
    Copy the full SHA
    7dcbba9 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2021

  1. Configuration menu
    Copy the full SHA
    f7158ff View commit details
    Browse the repository at this point in the history