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

Add new selection syntax to job op graphs #26836

Merged
merged 3 commits into from
Jan 6, 2025
Merged

Conversation

salazarm
Copy link
Contributor

@salazarm salazarm commented Jan 4, 2025

Summary & Motivation

  1. Consolidate flagOpSelectionSyntax into flagSelectionSyntax
  2. Add a selection syntax input for the op graph and use it if the feature flag is enabled

How I Tested These Changes

Screenshot 2025-01-04 at 12 31 34 AM

Copy link

github-actions bot commented Jan 4, 2025

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-6lbphlmgb-elementl.vercel.app
https://salazarm-add-feature-flags.core-storybook.dagster-docs.io

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

@salazarm salazarm force-pushed the salazarm/add-feature-flags branch from ec095cb to c1aaa62 Compare January 6, 2025 18:03
Comment on lines +21 to +24
const names = new Set<string>();
items.forEach((item) => {
names.add(item.name);
});
Copy link
Member

Choose a reason for hiding this comment

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

const names = new Set(items.map(({name}) => name));

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like having the for loop for the future in case we add more attributes and to be consistent with all the other inputs.


const Wrapper = styled.div`
${InputDiv} {
width: 24vw;
Copy link
Member

Choose a reason for hiding this comment

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

Does this need a min or max width to keep it looking sane in narrow or wide viewports?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the existing width

<Menu style={{width: props.width || '24vw'}}>
which I just copied over

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Meant to link here

Copy link
Member

Choose a reason for hiding this comment

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

Sounds reasonable, just figured I'd point it out in case it would look nicer with some upper/lower bounds.

@salazarm salazarm merged commit bb041f4 into master Jan 6, 2025
2 checks passed
@salazarm salazarm deleted the salazarm/add-feature-flags branch January 6, 2025 18:27
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