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:
@@ -17,8 +17,8 @@ public class WebhookLogViewModel
|
||||
[DataMember(Name = "date")]
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
[DataMember(Name = "eventName")]
|
||||
public string EventName { get; set; } = string.Empty;
|
||||
[DataMember(Name = "eventAlias")]
|
||||
public string EventAlias { get; set; } = string.Empty;
|
||||
|
||||
[DataMember(Name = "url")]
|
||||
public string Url { get; set; } = string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user