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 deleting dynamic partitions from asset pages #23462

Merged
merged 4 commits into from
Aug 19, 2024

Conversation

bengotow
Copy link
Collaborator

@bengotow bengotow commented Aug 7, 2024

Summary & Motivation

Fixes #14026

This PR adds a new "delete partitions" modal in both OSS and Plus that allows you to remove dynamic partitions from the UI. The UI immediately updates to reflect the change.

During testing I also found that our current UI for adding dynamic partitions didn't work quite right in cases where the dynamic partition was one of the dimensions of a multi-dimensional partition def, because the dimension.name and the dimension.dynamicPartitionsDefinitionName are not the same, and the Add Partition mutation requires the latter.

The new dropdown option in these screenshots only appears if the asset has a dynamic partition dimension, so non-dynamic assets are unimpacted.

image image image

How I Tested These Changes

There's a new test file covering this modal!

I also tested this manually using both assets that have dynamic partitions and assets that have multi-dimensional partition defs where one axis is dynamic. Also verified the changes in the report materialization events modal and the wipe assets implementation on the asset table didn't have any impact.

Copy link

github-actions bot commented Aug 7, 2024

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-h64hag1yt-elementl.vercel.app
https://bengotow-2024-08-FE-491.core-storybook.dagster-docs.io

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

@bengotow bengotow force-pushed the bengotow-2024-08/FE-491 branch 2 times, most recently from 4e76e18 to e1dab2e Compare August 7, 2024 16:09
Copy link

vercel bot commented Aug 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dagster-docs-next ❌ Failed (Inspect) Aug 12, 2024 6:46pm

@bengotow bengotow force-pushed the bengotow-2024-08/FE-491 branch from c31d15e to 44e8f1a Compare August 15, 2024 15:31
@bengotow bengotow force-pushed the bengotow-2024-08/FE-491 branch from 44e8f1a to af53f8a Compare August 19, 2024 14:13
@bengotow bengotow merged commit dfeac61 into master Aug 19, 2024
2 checks passed
@bengotow bengotow deleted the bengotow-2024-08/FE-491 branch August 19, 2024 14:47
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.

Ability to remove dynamic partitions via Dagit
2 participants