@@ -7,6 +7,7 @@ import {CustomAlertProvider} from '../../app/CustomAlertProvider';
7
7
import { CustomConfirmationProvider } from '../../app/CustomConfirmationProvider' ;
8
8
import { displayNameForAssetKey } from '../../asset-graph/Utils' ;
9
9
import { LaunchPartitionBackfillMutation } from '../../instance/backfill/types/BackfillUtils.types' ;
10
+ import { UI_EXECUTION_TAGS } from '../../launchpad/uiExecutionTags' ;
10
11
import { LaunchPipelineExecutionMutation } from '../../runs/types/RunUtils.types' ;
11
12
import { TestProvider } from '../../testing/TestProvider' ;
12
13
import { buildWorkspaceMocks } from '../../workspace/WorkspaceContext/__fixtures__/Workspace.fixtures' ;
@@ -190,7 +191,7 @@ describe('LaunchAssetExecutionButton', () => {
190
191
const launchMock = buildExpectedLaunchSingleRunMutation ( {
191
192
mode : 'default' ,
192
193
executionMetadata : {
193
- tags : [ ] ,
194
+ tags : [ ... UI_EXECUTION_TAGS ] ,
194
195
} ,
195
196
runConfigData : '{}' ,
196
197
selector : {
@@ -214,7 +215,7 @@ describe('LaunchAssetExecutionButton', () => {
214
215
it ( 'should not include checks if the job in context is marked without_checks' , async ( ) => {
215
216
const launchMock = buildExpectedLaunchSingleRunMutation ( {
216
217
mode : 'default' ,
217
- executionMetadata : { tags : [ ] } ,
218
+ executionMetadata : { tags : [ ... UI_EXECUTION_TAGS ] } ,
218
219
runConfigData : '{}' ,
219
220
selector : {
220
221
repositoryLocationName : 'test.py' ,
@@ -236,7 +237,7 @@ describe('LaunchAssetExecutionButton', () => {
236
237
it ( 'should include checks if the job in context includes them' , async ( ) => {
237
238
const launchMock = buildExpectedLaunchSingleRunMutation ( {
238
239
mode : 'default' ,
239
- executionMetadata : { tags : [ ] } ,
240
+ executionMetadata : { tags : [ ... UI_EXECUTION_TAGS ] } ,
240
241
runConfigData : '{}' ,
241
242
selector : {
242
243
repositoryLocationName : 'test.py' ,
@@ -275,7 +276,7 @@ describe('LaunchAssetExecutionButton', () => {
275
276
const launchMock = buildExpectedLaunchSingleRunMutation ( {
276
277
mode : 'default' ,
277
278
executionMetadata : {
278
- tags : [ ] ,
279
+ tags : [ ... UI_EXECUTION_TAGS ] ,
279
280
} ,
280
281
runConfigData : '{}' ,
281
282
selector : {
@@ -327,6 +328,7 @@ describe('LaunchAssetExecutionButton', () => {
327
328
tags : [
328
329
{ key : 'dagster/partition' , value : '2023-02-22' } ,
329
330
{ key : 'dagster/partition_set' , value : 'my_asset_job_partition_set' } ,
331
+ ...UI_EXECUTION_TAGS ,
330
332
] ,
331
333
} ,
332
334
mode : 'default' ,
@@ -360,7 +362,7 @@ describe('LaunchAssetExecutionButton', () => {
360
362
assetSelection : [ { path : [ 'asset_daily' ] } ] ,
361
363
partitionNames : ASSET_DAILY_PARTITION_KEYS ,
362
364
fromFailure : false ,
363
- tags : [ ] ,
365
+ tags : [ ... UI_EXECUTION_TAGS ] ,
364
366
} ) ;
365
367
renderButton ( {
366
368
scope : { all : [ ASSET_DAILY ] } ,
@@ -400,7 +402,7 @@ describe('LaunchAssetExecutionButton', () => {
400
402
assetSelection : [ { path : [ 'asset_daily' ] } ] ,
401
403
partitionNames : ASSET_DAILY_PARTITION_KEYS_MISSING ,
402
404
fromFailure : false ,
403
- tags : [ ] ,
405
+ tags : [ ... UI_EXECUTION_TAGS ] ,
404
406
} ) ;
405
407
renderButton ( {
406
408
scope : { all : [ ASSET_DAILY ] } ,
@@ -437,6 +439,7 @@ describe('LaunchAssetExecutionButton', () => {
437
439
tags : [
438
440
{ key : 'dagster/partition' , value : '2023-02-22' } ,
439
441
{ key : 'dagster/partition_set' , value : '__ASSET_JOB_partition_set' } ,
442
+ ...UI_EXECUTION_TAGS ,
440
443
] ,
441
444
} ,
442
445
mode : 'default' ,
@@ -472,7 +475,7 @@ describe('LaunchAssetExecutionButton', () => {
472
475
assetSelection : [ { path : [ 'asset_daily' ] } ] ,
473
476
partitionNames : ASSET_DAILY_PARTITION_KEYS ,
474
477
fromFailure : false ,
475
- tags : [ ] ,
478
+ tags : [ ... UI_EXECUTION_TAGS ] ,
476
479
} ) ;
477
480
renderButton ( {
478
481
scope : { all : [ ASSET_DAILY ] } ,
@@ -503,6 +506,7 @@ describe('LaunchAssetExecutionButton', () => {
503
506
tags : [
504
507
{ key : 'dagster/asset_partition_range_start' , value : '2020-01-02' } ,
505
508
{ key : 'dagster/asset_partition_range_end' , value : '2023-02-22' } ,
509
+ ...UI_EXECUTION_TAGS ,
506
510
] ,
507
511
} ,
508
512
runConfigData : '{}\n' ,
@@ -540,6 +544,7 @@ describe('LaunchAssetExecutionButton', () => {
540
544
tags : [
541
545
{ key : 'dagster/asset_partition_range_start' , value : '2020-01-02' } ,
542
546
{ key : 'dagster/asset_partition_range_end' , value : '2023-02-22' } ,
547
+ ...UI_EXECUTION_TAGS ,
543
548
] ,
544
549
} ,
545
550
runConfigData : '{}\n' ,
@@ -572,7 +577,7 @@ describe('LaunchAssetExecutionButton', () => {
572
577
assetSelection : [ { path : [ 'asset_daily' ] } , { path : [ 'asset_weekly' ] } ] ,
573
578
partitionNames : ASSET_DAILY_PARTITION_KEYS ,
574
579
fromFailure : false ,
575
- tags : [ ] ,
580
+ tags : [ ... UI_EXECUTION_TAGS ] ,
576
581
} ) ;
577
582
578
583
renderButton ( {
@@ -604,7 +609,7 @@ describe('LaunchAssetExecutionButton', () => {
604
609
assetSelection : [ { path : [ 'asset_daily' ] } , { path : [ 'asset_weekly' ] } ] ,
605
610
partitionNames : ASSET_DAILY_PARTITION_KEYS ,
606
611
fromFailure : false ,
607
- tags : [ ] ,
612
+ tags : [ ... UI_EXECUTION_TAGS ] ,
608
613
} ) ;
609
614
610
615
renderButton ( {
@@ -624,7 +629,7 @@ describe('LaunchAssetExecutionButton', () => {
624
629
625
630
it ( 'should offer to materialize all partitions if roots have different partition defintions ("pureAll" case)' , async ( ) => {
626
631
const LaunchPureAllMutationMock = buildExpectedLaunchBackfillMutation ( {
627
- tags : [ ] ,
632
+ tags : [ ... UI_EXECUTION_TAGS ] ,
628
633
assetSelection : [
629
634
{ path : [ 'asset_daily' ] } ,
630
635
{ path : [ 'asset_weekly' ] } ,
@@ -658,7 +663,7 @@ describe('LaunchAssetExecutionButton', () => {
658
663
it ( 'should present a warning if pre-flight check indicates other asset keys are required' , async ( ) => {
659
664
const launchMock = buildExpectedLaunchSingleRunMutation ( {
660
665
mode : 'default' ,
661
- executionMetadata : { tags : [ ] } ,
666
+ executionMetadata : { tags : [ ... UI_EXECUTION_TAGS ] } ,
662
667
runConfigData : '{}' ,
663
668
selector : {
664
669
repositoryLocationName : 'test.py' ,
0 commit comments