Commits
Click on a commit to change the comparison rangeAdd url property to server-side ReceivedEvent for automation templates
This adds a url property to the server-side ReceivedEvent class that
returns the UI URL for the event. This allows users to easily link to
events in automation templates using {{ event.url }} without needing
to manually parse date strings.
The url_for function is updated to use duck-typing to handle both
client-side and server-side ReceivedEvent instances, since they are
different classes in different modules but have the same structure.
Fixes #19526
Co-Authored-By: Nate Nowack <nate@prefect.io>1 day ago
by devin-ai-integration[bot] Simplify url_for changes and move import to module level
- Remove redundant duck-typing block (convert_class_to_name already handles server-side ReceivedEvent)
- Move url_for import to module level in server events schema (no circular import issue)
Co-Authored-By: Nate Nowack <nate@prefect.io>1 day ago
by devin-ai-integration[bot] Merge branch 'main' into devin/1765999480-event-url-property