Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rooms.required_state to Sliding Sync /sync #17342

Merged
merged 123 commits into from
Jul 4, 2024

Commits on Jun 17, 2024

  1. Configuration menu
    Copy the full SHA
    079194c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3e0f759 View commit details
    Browse the repository at this point in the history
  3. Add changelog

    MadLittleMods committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    5e2fd4e View commit details
    Browse the repository at this point in the history
  4. Fix sort being lost

    MadLittleMods committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    8ce06f1 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Start on required_state

    MadLittleMods committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    aa5f54a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5c175d5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9089bfe View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9427991 View commit details
    Browse the repository at this point in the history
  5. Calculate num_live

    MadLittleMods committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    19b2297 View commit details
    Browse the repository at this point in the history
  6. Add tests for limited

    MadLittleMods committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    81d36f3 View commit details
    Browse the repository at this point in the history
  7. Add more tests

    MadLittleMods committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    9791209 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2024

  1. Fix lint

    MadLittleMods committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    70ecd4d View commit details
    Browse the repository at this point in the history
  2. Make room name optional

    MadLittleMods committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    71eabe5 View commit details
    Browse the repository at this point in the history
  3. Update comments

    MadLittleMods committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    39b4f10 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9883b0f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1c06153 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    57ba033 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c81f300 View commit details
    Browse the repository at this point in the history
  8. Fix lints

    MadLittleMods committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    d801db0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6942b64 View commit details
    Browse the repository at this point in the history
  10. Update some wording

    MadLittleMods committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    884b448 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. Configuration menu
    Copy the full SHA
    ef3f606 View commit details
    Browse the repository at this point in the history
  2. Different better

    MadLittleMods committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    bbc3eb5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0eb0294 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5b17d70 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b6edd6b View commit details
    Browse the repository at this point in the history
  6. Fetch required state

    MadLittleMods committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    cddcf1f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ddbcd78 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    55ad559 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. Configuration menu
    Copy the full SHA
    41988a7 View commit details
    Browse the repository at this point in the history
  2. Add a test

    MadLittleMods committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    8dc4009 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5fdbeff View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. Configuration menu
    Copy the full SHA
    b1b4231 View commit details
    Browse the repository at this point in the history
  2. Fix lints

    See #17320 (comment)
    
    ```
    synapse/federation/federation_server.py:677: error: Cannot determine type of "_join_rate_per_room_limiter"  [has-type]
    synapse/federation/federation_server.py:720: error: Cannot determine type of "_join_rate_per_room_limiter"  [has-type]
    ```
    MadLittleMods committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    87fac19 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0e71a2f View commit details
    Browse the repository at this point in the history
  4. newly_joined vs limited already being tracked in a discussion

    See #17320 (comment)
    if anything comes out of it.
    MadLittleMods committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    21ca02c View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. Fix spelling typo

    MadLittleMods committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    3568311 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7aea406 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e3e431f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    303d834 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4c22131 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    83d6f76 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. Add get_current_state_delta_membership_changes_for_user(...) (using…

    … `current_state_delta_stream`)
    
    (still need to add newly_left rooms back)
    MadLittleMods committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    fbd92e1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6c791a8 View commit details
    Browse the repository at this point in the history
  3. Iterate

    MadLittleMods committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    27d74b0 View commit details
    Browse the repository at this point in the history
  4. Just fetch full events for `get_current_state_delta_membership_change…

    …s_for_user(...)`
    
    Makes downstream logic simpler and although we may look-up some events
    we don't use, the lookup is all done in one go instead of fetching events
    from event_ids in a couple different places.
    MadLittleMods committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    fb8fbd4 View commit details
    Browse the repository at this point in the history
  5. Remove extras

    MadLittleMods committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    d91aa00 View commit details
    Browse the repository at this point in the history
  6. Add docstring

    MadLittleMods committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    daa7e36 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cccbd15 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    62c6a4e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    39259f6 View commit details
    Browse the repository at this point in the history
  10. Merge branch 'develop' into madlittlemods/sliding-sync-room-data

    Conflicts:
    	tests/rest/client/test_sync.py
    MadLittleMods committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    5c21315 View commit details
    Browse the repository at this point in the history
  11. Fix clause change

    MadLittleMods committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    c60aca7 View commit details
    Browse the repository at this point in the history
  12. Remove debug log

    MadLittleMods committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    11db1be View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7395e10 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    2bf3923 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    ec2d8dc View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. Configuration menu
    Copy the full SHA
    0b9a903 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    48d0acf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2a944ff View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8df39d1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b7914e7 View commit details
    Browse the repository at this point in the history
  6. Fix lints

    MadLittleMods committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    7eb1806 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    935b98c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f163fcf View commit details
    Browse the repository at this point in the history
  9. (currently failing) Add test to make sure membership changes don't re…

    …-appear if the server leaves the room later
    MadLittleMods committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    956f20e View commit details
    Browse the repository at this point in the history
  10. Grab prev_membership to see whether the server left the room (fixes…

    … tests)
    
    See #17320 (comment)
    
    `prev_membership` helps determine whether we should include the `event_id=null` row because
    we can check whether we have already left.
    
     - When we leave the room causing the server to leave the room, the `prev_event_id` will be our join event
     - When the server leaves the room after us, the `prev_event_id` will be leave event
     - In the state reset case, `prev_event_id` will be our join event
    MadLittleMods committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    830e09d View commit details
    Browse the repository at this point in the history
  11. Slight clean-up

    MadLittleMods committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    15fcead View commit details
    Browse the repository at this point in the history
  12. Detect state resets

    MadLittleMods committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    81c06be View commit details
    Browse the repository at this point in the history
  13. Don't worry about state_reset for now

    See:
    
     - Why no `COALESCE` #17320 (comment)
     - Don't worry about `state_reset` for now, #17320 (comment)
    MadLittleMods committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    eb159c1 View commit details
    Browse the repository at this point in the history
  14. Passing current tests

    MadLittleMods committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    ba56350 View commit details
    Browse the repository at this point in the history
  15. Add better comments

    MadLittleMods committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    f774032 View commit details
    Browse the repository at this point in the history
  16. Inclusive ranges

    MadLittleMods committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    325856e View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    63c7b50 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    1158058 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    32b8b68 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. Configuration menu
    Copy the full SHA
    6045e11 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9e53336 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a4263bf View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. Configuration menu
    Copy the full SHA
    10d78d6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0061561 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'madlittlemods/sliding-sync-room-data' into madlittlemod…

    …s/sliding-sync-required-state
    
    Conflicts:
    	synapse/handlers/sliding_sync.py
    MadLittleMods committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    73f2903 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e419587 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2bd6cba View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b8687e7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7c9513c View commit details
    Browse the repository at this point in the history
  8. Merge branch 'madlittlemods/sliding-sync-room-data' into madlittlemod…

    …s/sliding-sync-required-state
    MadLittleMods committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    dfb4324 View commit details
    Browse the repository at this point in the history
  9. Get state at leave/ban

    MadLittleMods committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    78df54a View commit details
    Browse the repository at this point in the history
  10. Trigger CI again

    MadLittleMods committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    8b73185 View commit details
    Browse the repository at this point in the history
  11. Merge branch 'madlittlemods/sliding-sync-room-data' into madlittlemod…

    …s/sliding-sync-required-state
    MadLittleMods committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    8aa2297 View commit details
    Browse the repository at this point in the history
  12. room_state can be None

    MadLittleMods committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    939b9ce View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    126ce1e View commit details
    Browse the repository at this point in the history
  14. Merge branch 'madlittlemods/sliding-sync-room-data' into madlittlemod…

    …s/sliding-sync-required-state
    MadLittleMods committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    cae489b View commit details
    Browse the repository at this point in the history
  15. Merge branch 'develop' into madlittlemods/sliding-sync-required-state

    Conflicts:
    	synapse/handlers/sliding_sync.py
    	tests/rest/client/test_sync.py
    MadLittleMods committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    2175edf View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    01a4b43 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    77b8d9c View commit details
    Browse the repository at this point in the history
  18. Some clean-up

    MadLittleMods committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    a3ac718 View commit details
    Browse the repository at this point in the history
  19. Merge branch 'develop' into madlittlemods/sliding-sync-required-state

    Conflicts:
    	synapse/handlers/sliding_sync.py
    MadLittleMods committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    c935d03 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    c71cf86 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    dcad14b View commit details
    Browse the repository at this point in the history
  22. Parameterize tests

    MadLittleMods committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    ce503fc View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    4eb82e3 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    646b328 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    f2e0c5e View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    859f9b0 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. Configuration menu
    Copy the full SHA
    2c4eea7 View commit details
    Browse the repository at this point in the history
  2. Add exact option

    MadLittleMods committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    c1222c6 View commit details
    Browse the repository at this point in the history
  3. Add more tests

    MadLittleMods committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    75446e7 View commit details
    Browse the repository at this point in the history
  4. Fix lints

    MadLittleMods committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    aa59ead View commit details
    Browse the repository at this point in the history
  5. Add changelog

    MadLittleMods committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    cc30a85 View commit details
    Browse the repository at this point in the history
  6. Either or

    MadLittleMods committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    5c8dd69 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ea78da5 View commit details
    Browse the repository at this point in the history
  8. Bette as a fixme

    MadLittleMods committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    5023943 View commit details
    Browse the repository at this point in the history
  9. Fix \n backslash usage forbidden in f-string

    ```
    builtins.SyntaxError: f-string expression part cannot include a backslash (test_sync.py, line 1323)
    ```
    MadLittleMods committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    fbad6b0 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b3ca35e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    dc8bef0 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    f2174c1 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    e22a291 View commit details
    Browse the repository at this point in the history
  14. Refactor usage

    MadLittleMods committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    fe4f2ea View commit details
    Browse the repository at this point in the history
  15. Better loop pattern

    MadLittleMods committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    52444d9 View commit details
    Browse the repository at this point in the history
  16. Fix lint

    MadLittleMods committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    7c133a8 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. Add line break between if-cases

    Co-authored-by: Erik Johnston <[email protected]>
    MadLittleMods and erikjohnston authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    3cf9a77 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ef822c View commit details
    Browse the repository at this point in the history