-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Option to execute individual asset checks when launching runs via Lau…
…nchpad
- Loading branch information
bengotow
committed
Oct 9, 2023
1 parent
4b1ae14
commit d5aab3b
Showing
12 changed files
with
242 additions
and
104 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
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
24 changes: 24 additions & 0 deletions
24
js_modules/dagster-ui/packages/ui-core/src/assets/asInput.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,24 @@ | ||
import {AssetCheckHandleInput} from '../graphql/types'; | ||
|
||
import {AssetKey} from './types'; | ||
|
||
export function getAssetCheckHandleInputs( | ||
assets: {assetKey: AssetKey; assetChecks: {name: string}[]}[], | ||
): AssetCheckHandleInput[] { | ||
return assets.flatMap((a) => | ||
a.assetChecks.map((check) => ({name: check.name, assetKey: {path: a.assetKey.path}})), | ||
); | ||
} | ||
|
||
// The `.map` calls below sanitize the __typename and other possible fields out of the | ||
// assetSelection / assetCheckSelection because GraphQL is strict about extra values. | ||
|
||
export function asAssetKeyInput(assetOrAssetKey: {assetKey: {path: string[]}} | {path: string[]}) { | ||
return 'path' in assetOrAssetKey | ||
? {path: assetOrAssetKey.path} | ||
: {path: assetOrAssetKey.assetKey.path}; | ||
} | ||
|
||
export function asAssetCheckHandleInput(check: {name: string; assetKey: {path: string[]}}) { | ||
return {name: check.name, assetKey: {path: check.assetKey.path}}; | ||
} |
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
10 changes: 10 additions & 0 deletions
10
js_modules/dagster-ui/packages/ui-core/src/assets/types/LaunchAssetExecutionButton.types.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.