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

Add admin API to remove a local user from a space #11358

Closed
wants to merge 17 commits into from

Commits on Nov 16, 2021

  1. Annotate string constants in synapse.api.constants with Final

    This change makes mypy complain if the constants are ever reassigned,
    and, more usefully, makes mypy type them as `Literal`s instead of `str`s,
    allowing code of the following form to pass mypy:
    ```py
    def do_something(membership: Literal["join", "leave"], ...): ...
    
    do_something(Membership.JOIN, ...)
    ```
    Sean Quah committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    17bc616 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    98873d7 View commit details
    Browse the repository at this point in the history
  3. Add tests for RoomHierarchyHandler

    Sean Quah committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    f004687 View commit details
    Browse the repository at this point in the history
  4. Add admin API to remove a local user from a space

    Sean Quah committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    75be1be View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3371ec0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b8c228a View commit details
    Browse the repository at this point in the history
  7. Add newsfile

    Sean Quah committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    ab89c60 View commit details
    Browse the repository at this point in the history
  8. Convert strings in synapse.api.constants to enums or Final

    This change makes mypy type the constants as `Literal`s instead of
    `str`s, allowing code of the following form to pass mypy:
    ```py
    def do_something(
        membership: Literal[Membership.JOIN, Membership.LEAVE], ...
    ):
        ...
    
    do_something(Membership.JOIN, ...)
    ```
    Sean Quah committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    b43d085 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2021

  1. Refer to "spaces" instead of "rooms"

    Sean Quah committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    8627a45 View commit details
    Browse the repository at this point in the history
  2. Add missing type hints to new tests

    Sean Quah committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    f77da61 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b105bea View commit details
    Browse the repository at this point in the history
  4. Revert "Convert strings in synapse.api.constants to enums or Final"

    This reverts commit b43d085.
    Sean Quah committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    e5751a6 View commit details
    Browse the repository at this point in the history
  5. Leave rooms in a deterministic order

    Sean Quah committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    856656a View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2021

  1. Configuration menu
    Copy the full SHA
    94586c5 View commit details
    Browse the repository at this point in the history
  2. Add tests for remote spaces

    Sean Quah committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    64c5617 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2021

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

Commits on Dec 8, 2021

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