Replies: 3 comments
-
THank you very much for your input @hugaleno ! I will try to review this on Friday. |
Beta Was this translation helpful? Give feedback.
-
After giving this some thought I think the best solution is probably 4. Something like this has been implemented and It's very unfortunate that 1 only works for admins. I don't see why this is. Maybe it's also possible to get in touch with the gitlab team about this? |
Beta Was this translation helpful? Give feedback.
-
Alright, thank you. I will try to take a look at it after #2355 |
Beta Was this translation helpful? Give feedback.
-
Gitlab integration using source type Project
Everything it's working as expected.
Gitlab integration using source type Group/All
When using group as source type we got some problems.
Related issues:
Understanding the problem
To better understand that let's point some things out.
id
unique for each issueiid
unique for an issue inside a project, which means I can have different issues with sameiid
inside a group but in distinct projectsThe main difficulty here is to get the issue unique/related(comments) URLs. Let me explain:
id
, which would be perfect, but unfornately is restricted to administrators.The only id a
normal
user can use in the api is theiid
iid
and theproject ID/path
. And that's why gitlab integration using a specific project is working like a charm.iid
and the group ID/pathPossible solutions I could think to begin
We could use the endpoints in
3
and in4
and use a query param to filter theiid
but as I pointed before, we can have multiple iid's inside a group.Likely to have multiple results.
We could also use endpoints in
3
and4
and use a query param to filter the issue with the title.Very likely to have multiple results.
Combine 1 and 2 in a query to filter out a issue with a
title
andiid
.Very unlikely to have multiple results I think.
Save more information when importing an gitlab issue to a task.
Need to change task model to handle that specifics from gitlab.
Final thoughts
I think that to add support for gitlab groups/subgroups we gonna need another approach to the way is done today(and works pretty well on all other integrations) or make some adjustments to fit gitlab specific needs.
WDYT @johannesjo
Beta Was this translation helpful? Give feedback.
All reactions