prefect icon indicating copy to clipboard operation
prefect copied to clipboard

fix: add url property to Event class for easy event linking

Open naaa760 opened this issue 1 month ago • 2 comments

PR Description

Overview

  • adds a url property to the Event class that returns the full event URL, allowing users to link to events without parsing date strings.

Changes

  • Added url property to Event class in src/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

naaa760 avatar Nov 26 '25 00:11 naaa760

CodSpeed Performance Report

Merging #19546 will not alter performance

Comparing naaa760:feat/abili-eve-par-dat-str (4d64601) with main (8e02ef3)

Summary

✅ 2 untouched

codspeed-hq[bot] avatar Nov 26 '25 00:11 codspeed-hq[bot]

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.

github-actions[bot] avatar Dec 10 '25 01:12 github-actions[bot]