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
Merge Request Update POST returns 200 with no change #2613
Description of the problem, including code/CLI snippet
I'm using the code snippet here to update reviewers on a merge request, but the "Reviewers" field isn't updating despite gitlab returning "200 OK" after the POST request is sent.
Expected Behavior
A valid POST request with the reviewer_ids field set to an integer array updates the reviewers on the merge request. E.g.
Bah I was adding users who didn't have permissions in the repo I was modifying with my script. Adding them fixed my issue. Sorry for the hassle and thanks for the help!
Activity
JohnVillalovos commentedon Jul 14, 2023
Have you tried doing a fresh
get()to download the data from the server?cmilhaupt commentedon Jul 14, 2023
Adding the following code snippet after
mr.save():Results in only the first id being assigned as a reviewer:
That change is also reflected in the web interface, where no reviewers could be seen using the code in the original description.
Am I using the
reviewer_idsfield correctly? The type in the docs is listed as an integer array.JohnVillalovos commentedon Jul 14, 2023
Might be related to: #1735
JohnVillalovos commentedon Jul 14, 2023
@cmilhaupt
Not sure if you want to try this change out:
cmilhaupt commentedon Jul 14, 2023
Bah I was adding users who didn't have permissions in the repo I was modifying with my script. Adding them fixed my issue. Sorry for the hassle and thanks for the help!
JohnVillalovos commentedon Jul 14, 2023
Glad you figured it out!