incubator-devlake icon indicating copy to clipboard operation
incubator-devlake copied to clipboard

[Bug][Webhook] Can't associate an existing webhook with a project

Open tomerc-everc opened this issue 1 year ago • 5 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

What happened

Can't associate an existing webhook with a project, opposed to what mentioned in the docs.

What do you expect to happen

When creating a wehbhook (not from within the Project screen), to be able to associate it with any project I want.

How to reproduce

  1. Login to devlake
  2. Connections > Webhook > Add a Webhook
  3. Give it a name, click "Generate POST URL"
  4. Navigate to Projects > choose any existing project
  5. Navigate to "Webhooks" tab
  6. No "Select Existing Webhooks"

Anything else

Documentation says it is possible: https://devlake.apache.org/docs/Configuration/webhook#step-3---use-webhook-in-a-project

Screenshot from my system: Screenshot 2024-07-01 at 14 53 05

Version

v1.0-beta1@60faf14

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

tomerc-everc avatar Jul 01 '24 11:07 tomerc-everc

Hey there, @tomerc-everc! I'm here to help you with any issues, bugs, or questions you have about the DevLake project. I can also assist you in becoming a contributor. Let me know how I can assist you today!

You can't associate an existing webhook with a project because DevLake requires that each project has its own webhook. If a webhook is used by multiple projects, all the issues or deployments published by that webhook will be replicated among those projects, as they will be considered to belong to both of them [1][2][3][4][5].

In the latest version (v1.0.0), the documentation emphasizes the importance of assigning a unique webhook to each project to ensure correct data association [6][7][8][9][10].

To continue talking to Dosu, mention @dosu.

dosubot[bot] avatar Jul 01 '24 12:07 dosubot[bot]

Makes sense. However, still not possible to create a Webhook and later associate with even a single project. If it will not be supported, feel free to close the issue. I will remove my existing webhooks and will recreate from within each project.

Thanks @dosu

tomerc-everc avatar Jul 01 '24 12:07 tomerc-everc

Hi, @tomerc-everc , actually, it is entirely possible and supported.

  1. Go to the connections page and there is a Webhook icon, you can create Webhook here before creating any project. image
  2. Go to the project page and click on the "Select Existing Webhooks" and off you go. image

klesh avatar Jul 03 '24 08:07 klesh

I believe the correct place to look would be : https://devlake.apache.org/docs/v1.0/Configuration/webhook#step-1---add-a-new-incoming-webhook

klesh avatar Jul 03 '24 08:07 klesh

@tomerc-everc How about this issue ?

d4x1 avatar Aug 09 '24 10:08 d4x1

Closed due to the author not responding in a long time.

klesh avatar Sep 06 '24 09:09 klesh