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] Filters for merged automation table #23181

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

hellendag
Copy link
Member

@hellendag hellendag commented Jul 23, 2024

Summary & Motivation

Add filters to the merged Automations page: code location, running state, and automation type (schedule/sensor). Also add text search.

Screenshot 2024-07-23 at 14 15 29

How I Tested These Changes

View /automations/merged, verify that filters behave as expected.

Copy link
Member Author

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

Join @hellendag and the rest of your teammates on Graphite Graphite

@hellendag hellendag marked this pull request as ready for review July 23, 2024 19:16
Copy link

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-lu477ux7b-elementl.vercel.app
https://dish-fe-474-merged-automation-table-filters.core-storybook.dagster-docs.io

Built with commit 7a0063d.
This pull request is being automatically deployed with vercel-action

Comment on lines +56 to +59
const [automationTypes, setAutomationTypes] = useQueryPersistedState<Set<AutomationType>>({
encode: (vals) => ({automationType: vals.size ? Array.from(vals).join(',') : undefined}),
decode: (qs) => new Set((qs.automationType?.split(',') as AutomationType[]) || []),
});
Copy link
Contributor

@salazarm salazarm Jul 23, 2024

Choose a reason for hiding this comment

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

I think our users are starting to expect that all filters be encoded in URL state. Can we add the other 2 filters to the URL too?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's already in place for instigation state, via useInstigationStatusFilter.

For code locations, I'm just using the existing useCodeLocationFilter, so maybe that's the right place to make that change if we want to make it more widespread after all...

@hellendag hellendag merged commit 1174ea8 into master Jul 23, 2024
2 checks passed
@hellendag hellendag deleted the dish/fe-474-merged-automation-table-filters branch July 23, 2024 21:22
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