V13: Add eventype to webhookevents (#15157)
* Refactor IWebhookEvent to contain event type. * refactor frontend to filter on eventType. * Display event names * refactor to use eventNames * remove npm from overview * implement alias for WebhookEvents * Implement [WebhookEvent] attribute * Refactor IWebhookService to get by event alias and not name * Rename parameter to fit method name * to lower event type to avoid casing issues * Apply suggestions from code review Co-authored-by: Ronald Barendse <ronald@barend.se> * Change event names from constants to hard coded. And give more friendly names * Refactor to not use event names, where it was not intended * Add renaming column migration * display event alias in logs * Update migration to check if old column is there * Apply suggestions from code review Co-authored-by: Kenn Jacobsen <kja@umbraco.dk> * add determineResource function to avoid duplicate code --------- Co-authored-by: Zeegaan <nge@umbraco.dk> Co-authored-by: Ronald Barendse <ronald@barend.se> Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>
This commit is contained in:
@@ -29,9 +29,11 @@ public interface IWebhookRepository
|
||||
/// <summary>
|
||||
/// Gets a webhook by key
|
||||
/// </summary>
|
||||
/// <param name="eventName">The key of the webhook which will be retrieved.</param>
|
||||
/// <returns>The <see cref="Webhook" /> webhook with the given key.</returns>
|
||||
Task<PagedModel<Webhook>> GetByEventNameAsync(string eventName);
|
||||
/// <param name="alias">The alias of an event, which is referenced by a webhook.</param>
|
||||
/// <returns>
|
||||
/// A paged model of <see cref="Webhook" />
|
||||
/// </returns>
|
||||
Task<PagedModel<Webhook>> GetByAliasAsync(string alias);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a webhook by key
|
||||
|
||||
Reference in New Issue
Block a user