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] Replace compute kind, storage kind filters + tags with generic kind #23805

Closed
wants to merge 3 commits into from

Conversation

benpankow
Copy link
Member

@benpankow benpankow commented Aug 21, 2024

Summary

As we move to 'kind' being a first class notion, with multiple potential values, this PR tears out the compute kind and storage kind filters and UI components and drops in a singular 'kind' replacement, backed by the kinds GQL endpoint.

Screenshot 2024-08-21 at 2 25 54 PM Screenshot 2024-08-21 at 2 25 49 PM Screenshot 2024-08-21 at 2 25 45 PM

Test Plan

Tested locally, few new unit tests.

@benpankow
Copy link
Member Author

benpankow commented Aug 21, 2024

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

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

Copy link

github-actions bot commented Aug 21, 2024

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-bjr95a9pp-elementl.vercel.app
https://benpankow-kinds-ui.core-storybook.dagster-docs.io

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

@benpankow benpankow requested a review from salazarm August 22, 2024 16:18
@benpankow benpankow force-pushed the benpankow/kind-specs-2 branch from eee4bd6 to dc901b6 Compare August 22, 2024 16:18
@benpankow benpankow requested a review from hellendag August 22, 2024 16:18
@benpankow benpankow force-pushed the benpankow/kinds-ui branch 2 times, most recently from 954290e to 20f596c Compare August 22, 2024 16:19
@benpankow benpankow changed the base branch from benpankow/kind-specs-2 to benpankow/strip-storage-kind August 22, 2024 16:19
@benpankow benpankow force-pushed the benpankow/strip-storage-kind branch from 93eab68 to c8e8f0e Compare August 22, 2024 16:46
@benpankow benpankow force-pushed the benpankow/strip-storage-kind branch from c8e8f0e to 841f271 Compare August 22, 2024 16:48
@benpankow benpankow force-pushed the benpankow/strip-storage-kind branch from 841f271 to 4621a59 Compare August 22, 2024 17:54
@benpankow benpankow force-pushed the benpankow/strip-storage-kind branch from 4621a59 to 15ba582 Compare August 22, 2024 22:34
@benpankow benpankow force-pushed the benpankow/strip-storage-kind branch from 15ba582 to fac926c Compare August 22, 2024 22:45
.filter((o) => o)
.flatMap((a) => a as string[]),
),
).sort(),
Copy link
Member

Choose a reason for hiding this comment

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

I think you can just do this:

Array.from(
  new Set(assets.map((a) => a?.definition?.kinds || []).flat())
).sort(...);

Also, it's generally good to use this to ensure a reliable string sort:

.sort((a, b) => COMMON_COLLATOR.compare(a, b))

@benpankow benpankow force-pushed the benpankow/strip-storage-kind branch from fac926c to 2ce7807 Compare August 23, 2024 16:29
@benpankow benpankow force-pushed the benpankow/strip-storage-kind branch from 2ce7807 to 77fc7ec Compare August 23, 2024 23:00
@benpankow benpankow force-pushed the benpankow/strip-storage-kind branch from 77fc7ec to 08ee3e9 Compare August 23, 2024 23:02
@benpankow benpankow force-pushed the benpankow/strip-storage-kind branch from 08ee3e9 to 96207b3 Compare August 27, 2024 04:38
@benpankow benpankow force-pushed the benpankow/strip-storage-kind branch from 96207b3 to 1e9e28c Compare August 30, 2024 23:17
@benpankow benpankow force-pushed the benpankow/strip-storage-kind branch from 1e9e28c to 455f2e8 Compare August 30, 2024 23:45
@benpankow benpankow force-pushed the benpankow/strip-storage-kind branch from 455f2e8 to 02120fb Compare September 2, 2024 17:24
@benpankow benpankow force-pushed the benpankow/strip-storage-kind branch from 02120fb to e074331 Compare September 2, 2024 18:26
@benpankow benpankow force-pushed the benpankow/strip-storage-kind branch from e074331 to 403be73 Compare September 2, 2024 18:34
@benpankow benpankow force-pushed the benpankow/kinds-ui branch 2 times, most recently from 56e97bc to 5382818 Compare September 2, 2024 18:44
@benpankow benpankow changed the base branch from benpankow/strip-storage-kind to graphite-base/23805 September 2, 2024 19:14
@benpankow benpankow closed this Sep 5, 2024
benpankow added a commit that referenced this pull request Sep 9, 2024
## Summary

Re-implementation of #23805 which is slightly lighter weight (but still
touches a lot of surface area). Substitutes in the notion of a generic
kind filter rather than specifically compute kind.

## Test Plan

Existing unit tests, local dagit.

## Changelog 

`NOCHANGELOG`
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