PrefectHQ / prefect-design

https://prefect-design.netlify.app
Apache License 2.0
31 stars 11 forks source link

Flow Runs page: support date ranges with a granularity of hours #498

Open dcupp opened 2 years ago

dcupp commented 2 years ago

First check

Prefect Version

2.x

Describe the current behavior

Currently, the Flow Runs page allows you to filter runs based on a date range, but you can only select an entire day (issue https://github.com/PrefectHQ/prefect/issues/6815 is related to the default number of days).

Describe the proposed behavior

Give us the option to select a range in hours, including easy buttons for things like "last 12 hours" or "last 2 hours". I don't know if this date selector is restricting just based on the start time, or the last updated time (i.e. the last time the flow run changed state), but last updated time is the most helpful.

Example Use

I come to the flow runs page to investigate something that as just happened in the last hour. There are thousands of flow runs across all states, so I use the date selector to limit the flow runs displayed to flows that changed in the last 4 hours.

Additional context

This feature becomes helpful with high volumes of work.

zhen0 commented 1 year ago

Transferred to prefect-design

brandonreid commented 1 year ago

A user called out something related:

Screenshot 2022-11-11 at 12 31 19 PM
jars commented 1 year ago

+1 for this issue, our team is always interested in the last 12-24 hours. Prefect 1.0 has a restriction on the look-back period, and we've never felt constrained by it. We run flows every ten minutes, so looking-back more than 1 day usually makes the chart quite cluttered.