-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix(gitlab): remove double call for MR assignees #14212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like the implementation. We need to use the current implementation if we don't know if we can use the premium api.
If we can detect the premium api, we should do that. Otherwise this needs to be configurable via a platform/ experimental option.
Thanks for the quick response! I think the best way to archive this would be a new method in Please tell me what you think of this approach :) |
That will probably be not enough, as the gitlab version doesn't know which license seat the current renovate user has. The assignees feature is a licensing thing. |
Okay thanks, i will look what i can do on my end and inform you tomorrow. |
What about on gitlab.com - isn't it mixed and based in plan? |
Gitlab SaaS and self-hosted are more or less the same except for a handful of features. Coming back to the Paid plans problem, which indeed only applies to the user, not the instance. I will go ahead and add a config flag for Gitlab Plans which accepts |
@viceice @ExNG Hello, GitLab team member here 👋 While multiple assignees on merge requests are a premium feature, this API is not a premium API. We check on the backend if the project has the appropriate license for multiple assignees. If it doesn't and multiple assignees are provided, then the MR is assigned to the first person and the rest are ignored.
You should be able to do this without the fallback and it will work fine. Also, a few notes regarding licensing:
|
@Brcrwilliams thanks for explaining. Is there any version requirement when that feature was implemented? @ExNG Can you please adapt the required changes. |
Thanks @Brcrwilliams for your enlightenment :D @viceice yeah i will do that since this not only fixes our problem but also simplifies the methods logic |
Multiple merge request assignees has existed for a long time. It looks like it became a premium feature in GitLab 13.9 (seems it may have been a core feature before that?). There was a bug fixed in GitLab 10.4 where merge requests wouldn't be updated if |
That is just a documentation thing to remove references to the Starter Plan, which is now only used for the customers, which had it before removal. I think, most people using Renovate on GitLab use a scheduled CI Pipeline for that. They would be covered by the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a note to the platform readme.md
about the license requirements for multiple assignees.
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
🎉 This PR is included in version 31.84.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes:
Gitlab Enterprise On-Prem allows multiple assignees for MRs, see https://docs.gitlab.com/ee/api/merge_requests.html#update-mr .
This PR removes the call for a single assignment when the multiple assignees are set, with a fallback for free Gitlab users, thus greatly reducing notifications from GL.
Context:
If more than one assignee is set for renovate it'll first call the API with the first assignee and then all assignees again in one separate call, thus gitlab sends out a lot of emails and notifies users twice.
We really appreciate renovate and hope this change will improve the UX for other Gitlab enterprise users.
Documentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via: