Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ui] Allow freeform schedule/sensor name in launched-by Runs filter #27288

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

hellendag
Copy link
Member

@hellendag hellendag commented Jan 22, 2025

Summary & Motivation

We don't show all possible schedules and sensors in the "Launched by" filter on Runs, as we limit which results come from the backend, and schedules/sensors that don't exist in the current workspace aren't available.

To provide a fallback option for searching for schedules/sensors that are otherwise not available, show freeform options.

To achieve this while maintaining the behavior of allowing only one launched-by value, I also added a couple of features to suggestion filters that didn't previously exist:

  • An optional allowMultipleSelections property, like with the static set filter
  • An optional freeformResultPosition to allow customizing whether to show results at the top or bottom of the list.
    • In this case, I think we don't want to surface freeform options at the top, since the more likely case is that the user is searching for an available value.
Screenshot 2025-01-22 at 15 39 30

How I Tested These Changes

View Runs, verify that typing a value in the "Launched by" filter will provide me with two options, a schedule and a sensor. Choose each, verify that filtering behaves correctly.

Changelog

[ui] When viewing Runs, allow freeform search for filtering to view runs launched by schedules and sensors.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@hellendag hellendag force-pushed the dish/fe-758-separate branch from adda730 to 947d09f Compare January 22, 2025 21:39
@hellendag hellendag marked this pull request as ready for review January 22, 2025 21:42
@hellendag hellendag force-pushed the dish/fe-758-separate branch from 947d09f to d62085a Compare January 22, 2025 21:45
@salazarm
Copy link
Contributor

Mind updating the tests for useSuggestionFilter.tsx

@hellendag hellendag force-pushed the dish/fe-758-separate branch from d62085a to 31d0b57 Compare January 22, 2025 21:58
Copy link

github-actions bot commented Jan 22, 2025

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-fmah3vpv2-elementl.vercel.app
https://dish-fe-758-separate.core-storybook.dagster-docs.io

Built with commit 31d0b57.
This pull request is being automatically deployed with vercel-action

Copy link
Contributor

@salazarm salazarm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Copy link
Member Author

hellendag commented Jan 22, 2025

Merge activity

  • Jan 22, 4:15 PM CST: A user started a stack merge that includes this pull request via Graphite.
  • Jan 22, 4:15 PM CST: A user merged this pull request with Graphite.

@hellendag hellendag merged commit 52e620f into master Jan 22, 2025
6 checks passed
@hellendag hellendag deleted the dish/fe-758-separate branch January 22, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants