reanahub / reana-server

REANA API server
http://reana-server.readthedocs.io/
MIT License
5 stars 37 forks source link

gitlab: investigate how to handle multiple webhooks for the same project #519

Open mdonadoni opened 2 years ago

mdonadoni commented 2 years ago

After #506, it might happen more frequently that different users have access to the same project, which will be shown to each of them in their profile page.

Currently, REANA supports only one webhook per repository, which will trigger a workflow execution only for the user that enabled the integration with GitLab. However, all the users having access to the project will see the integration as enabled in their profile page (that is, the toggle button is shown as being "on"). This can create some confusion, as users may wonder why workflows executions are not triggered even though the integration is enabled.

Some possible options:

mdonadoni commented 2 weeks ago

Now that we have workflow sharing, it would be cool to execute only one workflow, and have it shared automatically with all the concerned users, but I think this might be very difficult (or even impossible) to achieve, as we would need to get the list of users that can access the GitLab repository and translate them to REANA users