prefect
prefect copied to clipboard
fix: add url property to Event class for easy event linking
PR Description
Overview
- adds a
urlproperty to theEventclass that returns the full event URL, allowing users to link to events without parsing date strings.
Changes
- Added
urlproperty to Event class insrc/prefect/events/schemas/events.py - Added test coverage in
tests/events/client/test_events_schema.py
Problem Solved
Previously: [View Event](https://app.prefect.cloud/account/{{ event.account }}/workspace/{{ event.workspace }}/events/event/{{ event.occurred }}/{{ event.id }})
Now: [View Event]({{ event.url }})
Closes #19526
CodSpeed Performance Report
Merging #19546 will not alter performance
Comparing naaa760:feat/abili-eve-par-dat-str (4d64601) with main (8e02ef3)
Summary
✅ 2 untouched
This pull request is stale because it has been open 14 days with no activity. To keep this pull request open remove stale label or comment.