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

[MM-454] Fix Invalid message while creating subscription for a project with no access to create webhook #512

Merged
merged 5 commits into from
Nov 22, 2024

Conversation

raghavaggarwal2308
Copy link
Contributor

Summary

  • Users we not able to create subscription for a project in which they did not had access to create webhook.
  • Updated the code to post a message in the above case instead preventing the user from creating subscription.

Screenshots:

image

What to test?

  • Getting proper messages while creating subscription for a project with no access to create webhook.

How to test?

  1. Connect your Gitlab account
  2. Try to create a subscrition for a project with no access to create subscription

Ticket Link

Fixes #454
Fixes #509

server/command.go Outdated Show resolved Hide resolved
server/command.go Show resolved Hide resolved
Copy link
Member

@wiggin77 wiggin77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hanzei hanzei added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Jul 31, 2024
Copy link

@arush-vashishtha arush-vashishtha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR has been tested and verified the message while creating subscription for a project in which the user has the role of a developer. LGTM.

@raghavaggarwal2308 raghavaggarwal2308 added this to the v1.10.0 milestone Nov 22, 2024
@raghavaggarwal2308 raghavaggarwal2308 merged commit d70c438 into master Nov 22, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester
Projects
None yet
6 participants