Skip to content
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

Unable to add a subscription to any project inside a group #336

Open
intelltec opened this issue Nov 28, 2022 · 1 comment
Open

Unable to add a subscription to any project inside a group #336

intelltec opened this issue Nov 28, 2022 · 1 comment
Assignees
Labels
Awaiting Submitter Action Blocked on the author

Comments

@intelltec
Copy link

intelltec commented Nov 28, 2022

I have Mattermost Team Edition Version: 7.5.1 and GitLab Community Edition [15.5.4] self-hosted both and the latest for today.
Got several projects at GitLab combined into a group.
Using genuine guide from Readme.md.
Everything is fine up to Step 4 and there:
If I'm using /gitlab subscriptions add thegroup issues,merges,pushes,pipeline,tag the group is connected. I don't need to connect the group, because I cannot assign webhook to it since I'm non-premium GitLab user.
So, if I'm trying to connect any of my projects by /gitlab subscriptions add thegroup/theproject issues,merges,pushes,pipeline,tag - I'm getting an error 'Resource with such path is not found.' from the GitLab bot. I tried to start over with different Gitlab accounts, projects etc. - every time I cannot connect a project which is inside a group.

So the steps to reproduce will be:

  1. Install Mattermost Team Edition Version: 7.5.1 and GitLab Community Edition [15.5.4]
  2. Create three projects in Gitlab project{1,2,3}, and group them into 'mygroup'
  3. Install mattermost-plugin-gitlab
  4. Configure it precisely following the instruction up to step 4
  5. Execute /gitlab subscriptions add mygroup/project1 issues,merges,pushes,pipeline,tag or /gitlab subscriptions add mygroup/project1
  6. The error - is a denial from GitLab bot "Resource with such path is not found."
@Kshitij-Katiyar
Copy link
Contributor

Kshitij-Katiyar commented Sep 2, 2024

@intelltec @wiggin77
I attempted to reproduce the issue and believe I have identified a possible cause.

  • If we create a group named my-happy-group and then create a project within it called the-project,
    Screenshot from 2024-09-02 12-08-02
  • When we run the command /gitlab subscriptions add my-happy-group/the-project in Mattermost,
    we encounter the same error you described:
    Screenshot from 2024-09-02 12-10-03
  • However, if we use the command /gitlab subscriptions add my-happy-group1/the-project, the issue is resolved and we receive a success message:
    Screenshot from 2024-09-02 12-10-12

The solution involves using the group's unique identifier (as seen in the first screenshot as the second part of the project URL, also visible in the browser's URL) instead of the project name.

Please let us know if you are still facing the issue after this.

@raghavaggarwal2308 raghavaggarwal2308 self-assigned this Sep 2, 2024
@raghavaggarwal2308 raghavaggarwal2308 added the Awaiting Submitter Action Blocked on the author label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Submitter Action Blocked on the author
Projects
None yet
Development

No branches or pull requests

3 participants