FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add ban/unban and approve/reject methods to User · Issue #1604 · python-gitlab/python-gitlab · GitHub

Repository navigation

Add ban/unban and approve/reject methods to User #1604

Description

Description of the problem, including code/CLI snippet

API has endpoints to manage the state of a user:

  • activate/deactivate: ✔️ already done
  • block/unblock: ✔️ already done
  • ban/unban: 🚧 TODO
  • approve/reject: 🚧 TODO

Activity

  1. changed the title [-]Add ban/unaban and approve/reject methods to User[/-] [+]Add ban/unban and approve/reject methods to User[/+] on Oct 13, 2021
  2. nejch commented on Jun 10, 2022

    Member

    @antoineauger as discussed if you want a break from k8s and work on this 😁

    There's a PR that implements approve/reject endpoints for this issue in #2061 - you could do the same for ban/unban:
    https://docs.gitlab.com/ee/api/users.html#ban-user
    https://docs.gitlab.com/ee/api/users.html#unban-user

    See my comments in the other PR for a bit of guidance, although ideally we'd also have 1 response per mock and 1 assert per test so we can remove assert_all_requests_are_fired=False.

    In the case of ban/unban I think we could also add a quick functional test like for block/unblock. https://github.com/python-gitlab/python-gitlab/blob/main/tests/functional/api/test_users.py#L30-L37.

    With both PRs in we could then close this issue. Of course if there's any hiccups along the way I'm happy to look at docs PRs as well if you feel like it 😀

  3. locked as resolved and limited conversation to collaborators on Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL