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

Add knock-related data to the admin export-data command #11119

Closed
anoadragon453 opened this issue Oct 19, 2021 · 1 comment · Fixed by #11171
Closed

Add knock-related data to the admin export-data command #11119

anoadragon453 opened this issue Oct 19, 2021 · 1 comment · Fixed by #11171
Labels
good first issue Good for newcomers P4 (OBSOLETE: use S- labels.) Okay backlog: will not schedule, will accept patches T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@anoadragon453
Copy link
Member

Synapse supports exporting data about a user for administration purposes. Part of that exported data are the memberships of a user in various rooms.

Currently, this only covers join, leave, ban and invite memberships. knock (MSC2403) membership data is not currently supported:

# Get all rooms the user is in or has been in
rooms = await self.store.get_rooms_for_local_user_where_membership_is(
user_id,
membership_list=(
Membership.JOIN,
Membership.LEAVE,
Membership.BAN,
Membership.INVITE,
),
)

Note that this was one of the TODO's on the original knock implementation PR.

@anoadragon453 anoadragon453 added the T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. label Oct 19, 2021
@clokep clokep added the good first issue Good for newcomers label Oct 19, 2021
@callahad callahad added this to the Revisit: Next Month milestone Oct 19, 2021
@callahad callahad added the P4 (OBSOLETE: use S- labels.) Okay backlog: will not schedule, will accept patches label Oct 19, 2021
@callahad
Copy link
Contributor

Leaving this open as a good issue for a first time contributor to Synapse.

Setting to P4 to suggest that paid contributors should not work on it, but patches will be accepted.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers P4 (OBSOLETE: use S- labels.) Okay backlog: will not schedule, will accept patches T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants