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] Support for manually reporting materialization events from asset details #17091

Merged
merged 8 commits into from
Oct 9, 2023

Conversation

bengotow
Copy link
Collaborator

@bengotow bengotow commented Oct 9, 2023

Design: https://www.figma.com/file/V1V87q5hW7Z6G8T3T1XbTn/Manual_AddEvent?type=design&node-id=12-30&mode=design&t=oNRAFHi3u6HhLuMo-0

Summary & Motivation

This PR adds a new option to the materialize dropdown on the asset details page. (and ONLY this copy of the button)

image

The new option opens a modal which allows you to manually record that an asset materialization has taken place. If the asset is partitioned, you can choose partitions from this modal and we pass the partition keys through to the mutation.

image
image

Events created in this manner seem to have a runId = "", and I'm using that to display a tag that says "Reported" in two places:

image

How I Tested These Changes

  • Just manual testing so far with partitioned and unpartitioned assets. Everything seems to work nicely once you have these in the system, the statuses of the partitions update as expected.

  • Will add a few jest tests for this but it sounds like we want to ship this ASAP so I may apply everyone's feedback first.

@clairelin135 clairelin135 force-pushed the claire/gql-report-runless-asset-event branch from d29c76a to 4f36358 Compare October 9, 2023 16:20
@github-actions
Copy link

github-actions bot commented Oct 9, 2023

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-nc4xfmlka-elementl.vercel.app
https://bengotow-gql-report-runless-asset-event.core-storybook.dagster-docs.io

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

Base automatically changed from claire/gql-report-runless-asset-event to master October 9, 2023 16:46
@bengotow bengotow force-pushed the bengotow/gql-report-runless-asset-event branch from b2e7459 to de9c933 Compare October 9, 2023 16:58
@bengotow bengotow force-pushed the bengotow/gql-report-runless-asset-event branch from de9c933 to c234330 Compare October 9, 2023 17:00
@bengotow bengotow requested review from salazarm and hellendag October 9, 2023 17:04
@bengotow bengotow merged commit b3ad4a2 into master Oct 9, 2023
1 check passed
@bengotow bengotow deleted the bengotow/gql-report-runless-asset-event branch October 9, 2023 21:40
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