-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Implement data sandboxing updates #20258
Implement data sandboxing updates #20258
Conversation
Deploy preview for dagit-core-storybook ready! ✅ Preview Built with commit 21e5373. |
Deploy preview for dagit-storybook ready! ✅ Preview Built with commit 21e5373. |
e6ae0a5
to
7f04891
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks great! As someone unfamiliar with this workstream having a second set of "reasons" is kinda confusing and I wish there was an umbrella term for stale + changed that we could use where the stale components are now rendering both, but I can't think of anything good...
js_modules/dagster-ui/packages/ui-core/src/asset-data/AssetLiveDataProvider.tsx
Show resolved
Hide resolved
js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetNode.tsx
Outdated
Show resolved
Hide resolved
{isNew ? ( | ||
<NewInBranchTag changedReasons={liveData!.changedReasons!} assetKey={assetKey} /> | ||
) : null} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should rename StaleReasonsTag to something else -- it's a bit confusing that "stale reasons" are still a thing, but this StaleReasonsTag also displays "changed Reasons" which are a different thing...
I can't think of a good name though... maybe just <ReasonsTags />
?
if (!dependency) { | ||
return <Caption>{` ${reason}`}</Caption>; | ||
} | ||
const content = useMemo(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not super important really but I don't know that this is particularly worth a memo, we do way worse in each render cycle 🙈 Though maybe we should be doing this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I separated the changed reason to a new component so I can remove this now! 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted a couple things I saw when running the UI for a local cloud setup. Would it also be possible to put this behind a feature flag? we don't want to roll it out to all users right away
style={{height: 24}} | ||
> | ||
{staleTag} | ||
{isNew ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean the change reason tag will only show if the asset is new? we'd also like to show for assets that aren't new but do have changes, the case when changedReasons = [ChangeReason.INPUTS]
etc
<BaseTag | ||
fillColor={Colors.backgroundCyan()} | ||
textColor={Colors.textCyan()} | ||
label={changes.length ? 'Modified in branch' : 'Modified in branch'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should one of these be New in branch
? noticed that the new asset is now being marked "Modified in branch" instead of "New in branch"
## Summary & Motivation Implements updates to data sandboxing [more context](https://linear.app/dagster-labs/issue/FE-201/implement-data-sandboxing-ui-updates) ## How I Tested These Changes Asset graph: ![Screenshot 2024-03-06 at 1 01 18 PM](https://github.com/dagster-io/dagster/assets/2286579/709e24c0-eb26-42cd-ab96-bdceeb23246d) ![Screenshot 2024-03-06 at 1 01 14 PM](https://github.com/dagster-io/dagster/assets/2286579/8248c1de-f8c9-482d-a496-af34c3dffd93) Asset catalog: ![Screenshot 2024-03-06 at 1 43 52 PM](https://github.com/dagster-io/dagster/assets/2286579/ba201b68-b27c-40c8-94e7-5d11bf8cf15c)
Summary & Motivation
Implements updates to data sandboxing more context
How I Tested These Changes
Asset graph:
Asset catalog: