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

Fixed set a user as an admin with the new API - #6928

Merged
richvdh merged 20 commits into
matrix-org:developfrom
dklimpel:fix_admin_api
Feb 28, 2020
Merged

richvdh merged 20 commits into
matrix-org:developfrom
dklimpel:fix_admin_api

Conversation

@dklimpel

@dklimpel dklimpel commented Feb 15, 2020 •

Copy link
Copy Markdown
Contributor

Try to fix #6910

I have added tests and clear cache of user who was changed.

Pull Request Checklist

  • Pull request is based on the develop branch
  • Pull request includes a changelog file. The entry should:
    • Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from EventStore to EventWorkerStore.".
    • Use markdown where necessary, mostly for code blocks.
    • End with either a period (.) or an exclamation mark (!).
    • Start with a capital letter.
  • Pull request includes a sign off
  • Code style is correct (run the linters)

Signed-off-by: Dirk Klimpel dirk@klimpel.org

@richvdh richvdh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great. bonus points for new test cases! I have a couple of requests though...

Comment thread synapse/storage/data_stores/main/registration.py Outdated
Comment thread changelog.d/6910.bugfix Outdated
Comment thread tests/rest/admin/test_user.py Outdated
Comment thread tests/rest/admin/test_user.py
@anoadragon453
anoadragon453 removed their request for review February 26, 2020 12:58
Comment thread tests/rest/admin/test_user.py Outdated
Comment thread tests/rest/admin/test_user.py Outdated
Comment thread tests/rest/admin/test_user.py Outdated
Comment thread tests/rest/admin/test_user.py Outdated
Comment thread tests/rest/admin/test_user.py Outdated
Comment thread tests/rest/admin/test_user.py Outdated
Comment thread tests/rest/admin/test_user.py Outdated

@richvdh richvdh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, thank you! I've tweaked the wording for the testcase descriptions slightly.

@richvdh
richvdh merged commit 9b06d8f into matrix-org:develop Feb 28, 2020
@dklimpel
dklimpel deleted the fix_admin_api branch February 28, 2020 10:03
richvdh pushed a commit that referenced this pull request Mar 2, 2020
phil-flex pushed a commit to phil-flex/synapse that referenced this pull request Apr 15, 2020
phil-flex pushed a commit to phil-flex/synapse that referenced this pull request May 15, 2020
phil-flex pushed a commit to phil-flex/synapse that referenced this pull request Jun 16, 2020
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit '9b06d8f8a':
  Fixed set a user as an admin with the new API (#6928)
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit 'bbeee33d6':
  Fixed set a user as an admin with the new API (#6928)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants