forked from dagster-io/dagster
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3/n][Selection syntax] Add stubs to allow Cloud to extend selection …
…syntax functionality. (dagster-io#27184) ## Summary & Motivation - Add `useAssetGraphSupplementaryData` so that Cloud can query for extra data to support the filtering - Feed that data all the way through to the visitor that does the filtering. Don't do anything with it in the OSS visitor, Cloud will use it in its visitor though to do that additional filtering. ## How I Tested These Changes Manual testing + relying on existing jest tests <img width="650" alt="Screenshot 2025-01-16 at 6 25 14 PM" src="https://github.com/user-attachments/assets/a5bbf8d7-c4f0-4d8b-bd53-0debdd3b794f" />
- Loading branch information
Showing
15 changed files
with
172 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...odules/dagster-ui/packages/ui-core/src/asset-graph/useAssetGraphSupplementaryData.oss.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {AssetKey} from '../assets/types'; | ||
|
||
export type SupplementaryInformation = Record<string, AssetKey[]> | null | undefined; | ||
|
||
// Stub for cloud to supply extended selection syntax filtering capabilities | ||
export const useAssetGraphSupplementaryData = ( | ||
_: string, | ||
): {loading: boolean; data: SupplementaryInformation | null} => { | ||
return { | ||
loading: false, | ||
data: null, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
js_modules/dagster-ui/packages/ui-core/src/asset-selection/AssetSelectionAntlr.oss.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export * from './generated/AssetSelectionLexer'; | ||
export * from './generated/AssetSelectionParser'; | ||
export * from './generated/AssetSelectionVisitor'; | ||
export * from './generated/AssetSelectionListener'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.