tcWebHooks
tcWebHooks copied to clipboard
Prevent a template from being deleted if it is in use
Expected Behaviour
- Should not be ale to delete a template, if there is a webhook using it.
Current Behaviour
- Template can be deleted with no checks.
Create WebHook settings manager which provides the following.
- CRUD webhooks via this manager.
- Ability to find all webhooks (grouped by project tree somehow).
- Ability to find webhooks by project, buildEvent, buildType, templateId, tag (see #116), authType.
- Ability to find webhooks by url (substring).
- Ability to find only enabled webhooks along with above filters. Eg, show me webhooks that will actually fire for this specific buildType.
- "full text search" eg, just start typing and it will find any matching webhooks. Should search tags, url, buildTypeName, buildTypeExternalId, projectName, projectExternalId. These could be "tags" and "url" and could be cached.
- Quick (cached) results for count of webhooks, by project, by template, etc. These should be updated on each webhook write (async).
Returned results should include the following so that they can be displayed in UI:
- match reason(s).
- events enabled
- buildTypes enabled
- tags
- url
- template-id
Clicking a webhook should allow direct editing, not via some page when then requires finding and clicking again.
~~Item 3 is not done yet.~~
This is available for testing in the v1.2.0-alpha.3 release.