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

Only show changed and missing option in node lineage and global asset graph #18198

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

salazarm
Copy link
Contributor

Summary & Motivation

We used to rely on a field called liveDataForStale to determine whether or not to show this option. Since we stopped fetching all of the live data upfront we removed that attribute but as a consequence we also removed the gating of the changed and missing feature. This PR adds back that gating by introducing a new prop: showChangedAndMissingOption

How I Tested These Changes

locally

Copy link

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-cwrggh7dm-elementl.vercel.app
https://salazarm-changed-and-missing.core-storybook.dagster-docs.io

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

@salazarm salazarm merged commit 0db06be into master Nov 22, 2023
1 check passed
@salazarm salazarm deleted the salazarm/changed-and-missing branch November 22, 2023 21:42
bengotow pushed a commit that referenced this pull request Dec 14, 2023
When we revamped the data loading in the global asset graph, we limited the “materialize changed and missing” to specific contexts (#18198).

I think that it makes sense to show this option whenever more than one asset is in scope, whether you’re operating on an all assets in view or on a selection.

Previously, we disabled this option when “scope=selection” because there was no confirmation modal and it was confusing whether it would use your selection or not. Now that we have a nice modal with checkboxes for revising + confirming the subset that will materialize, it’s no longer confusing.

I audited all the callsites where we use the LaunchAssetExecutionButton, and the only places we don’t want to show this option is on the individual asset view. To make sure this doesn’t get left out again, I inverted the option from “showChangedAndMissingOption” (show option) to “scopeAlwaysSingleAsset” (hide option) and set it in just that one place.
bengotow pushed a commit that referenced this pull request Dec 14, 2023
When we revamped the data loading in the global asset graph, we limited the “materialize changed and missing” to specific contexts (#18198).

I think that it makes sense to show this option whenever more than one asset is in scope, whether you’re operating on an all assets in view or on a selection.

Previously, we disabled this option when “scope=selection” because there was no confirmation modal and it was confusing whether it would use your selection or not. Now that we have a nice modal with checkboxes for revising + confirming the subset that will materialize, it’s no longer confusing.

I audited all the callsites where we use the LaunchAssetExecutionButton, and the only places we don’t want to show this option is on the individual asset view. To make sure this doesn’t get left out again, I inverted the option from “showChangedAndMissingOption” (show option) to “scopeAlwaysSingleAsset” (hide option) and set it in just that one place.
bengotow pushed a commit that referenced this pull request Jan 1, 2024
When we revamped the data loading in the global asset graph, we limited the “materialize changed and missing” to specific contexts (#18198).

I think that it makes sense to show this option whenever more than one asset is in scope, whether you’re operating on an all assets in view or on a selection.

Previously, we disabled this option when “scope=selection” because there was no confirmation modal and it was confusing whether it would use your selection or not. Now that we have a nice modal with checkboxes for revising + confirming the subset that will materialize, it’s no longer confusing.

I audited all the callsites where we use the LaunchAssetExecutionButton, and the only places we don’t want to show this option is on the individual asset view. To make sure this doesn’t get left out again, I inverted the option from “showChangedAndMissingOption” (show option) to “scopeAlwaysSingleAsset” (hide option) and set it in just that one place.
bengotow added a commit that referenced this pull request Jan 2, 2024
…8722)

When we revamped the data loading in the global asset graph, we limited
the “materialize changed and missing” to specific contexts (#18198).

I think that it makes sense to show this option whenever more than one
asset is in scope, whether you’re operating on an all assets in view or
on a selection. This PR reverts a bit of #18198 so it appears here:

<img width="1727" alt="image"
src="https://github.com/dagster-io/dagster/assets/1037212/5d1df552-dcd1-4d05-93d7-6d16f320637b">

Previously, we disabled this option when `scope=selection` because there
was no confirmation modal and it was confusing whether it was "changed
and missing and in your selection" or not. Now that we have a nice modal
with checkboxes for revising + confirming the subset that will
materialize, it’s no longer confusing and we should offer it in this
case.

I audited all the callsites where we use the LaunchAssetExecutionButton,
and I think the only place we don’t want to show this option is on the
individual asset view. To make sure this doesn’t get left out again, I
inverted the option from “showChangedAndMissingOption” (show option) to
“scopeAlwaysSingleAsset” (hide option) and set it in just that one
place.

## How I Tested These Changes

I verified the existing tests covering the launch button still pass, and
tested these changes manually in the graph and list view.

---------

Co-authored-by: bengotow <[email protected]>
danielgafni pushed a commit to danielgafni/dagster that referenced this pull request Jan 6, 2024
…gster-io#18722)

When we revamped the data loading in the global asset graph, we limited
the “materialize changed and missing” to specific contexts (dagster-io#18198).

I think that it makes sense to show this option whenever more than one
asset is in scope, whether you’re operating on an all assets in view or
on a selection. This PR reverts a bit of dagster-io#18198 so it appears here:

<img width="1727" alt="image"
src="https://github.com/dagster-io/dagster/assets/1037212/5d1df552-dcd1-4d05-93d7-6d16f320637b">

Previously, we disabled this option when `scope=selection` because there
was no confirmation modal and it was confusing whether it was "changed
and missing and in your selection" or not. Now that we have a nice modal
with checkboxes for revising + confirming the subset that will
materialize, it’s no longer confusing and we should offer it in this
case.

I audited all the callsites where we use the LaunchAssetExecutionButton,
and I think the only place we don’t want to show this option is on the
individual asset view. To make sure this doesn’t get left out again, I
inverted the option from “showChangedAndMissingOption” (show option) to
“scopeAlwaysSingleAsset” (hide option) and set it in just that one
place.

## How I Tested These Changes

I verified the existing tests covering the launch button still pass, and
tested these changes manually in the graph and list view.

---------

Co-authored-by: bengotow <[email protected]>
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