You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add ban/unban and approve/reject methods to User #1604
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.
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 😀
Activity
[-]Add ban/unaban and approve/reject methods to User[/-][+]Add ban/unban and approve/reject methods to User[/+]feat(users): Add approve and reject methods to User
feat(users): Add approve and reject methods to User
feat(users): Add approve and reject methods to User
feat(users): Add approve and reject methods to User
feat(users): Add approve and reject methods to User
nejch commentedon Jun 10, 2022
@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 😀
feat(users): add approve and reject methods to User