fix: remove project.approvals.set_approvals() method#2333
Conversation
nejch
left a comment
There was a problem hiding this comment.
Thanks @JohnVillalovos - was gonna get to this myself but you beat me to it 😅
I think we can now also remove/modify this part and potentially start testing approvals in functional tests:
python-gitlab/tests/functional/api/test_merge_requests.py
Lines 132 to 134 in dd04e8e
However, our project-level approval managers/objects are missing some mixing potentially.
Otherwise I just had some notes on the difference no project/MR-level approvals.
99d27fe to
1a5b47c
Compare
I agree we should get the tests working. But I just wanted to remove the non-working endpoint at this stage. Getting the tests working is a separate issue and MR in my mind. |
Ok, makes sense. the xfail is a good indicator anyway that there's something wrong with the code and we should fix it at some point. Could we maybe do a |
1a5b47c to
431ae7f
Compare
set_approvals() methodproject.approvals.set_approvals() method
The `project.approvals.set_approvals()` method used the `/projects/:id/approvers` end point. That end point was removed from GitLab in the 13.11 release, on 2-Apr-2021 in commit 27dc2f2fe81249bbdc25f7bd8fe799752aac05e6 via merge commit e482597a8cf1bae8e27abd6774b684fb90491835. It was deprecated on 19-Aug-2019. See merge request: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57473
431ae7f to
91f08f0
Compare
Done! 🙂 Good idea! |
The `not-callable` error started showing up. Ignore this error as it is invalid. Also `mypy` tests for these issues. Closes: #2334
The
project.approvals.set_approvals()method used the/projects/:id/approversend point. That end point was removed fromGitLab in the 13.11 release, on 2-Apr-2021 in commit
27dc2f2fe81249bbdc25f7bd8fe799752aac05e6 via merge commit
e482597a8cf1bae8e27abd6774b684fb90491835. It was deprecated on
19-Aug-2019.
See merge request:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57473