Skip to content

Commit

Permalink
[ui] Bulk Schedule status change dialog (dagster-io#13621)
Browse files Browse the repository at this point in the history
## Summary & Motivation

Introduce a dialog for turning on and off schedules in bulk. This will
be added to the existing Schedules tables in a followup.


https://user-images.githubusercontent.com/2823852/231883355-f9c982b3-a2c8-45c7-b6b2-a06b41eb3872.mov

## How I Tested These Changes

Jest. Tested in branch that includes all of the UI in the video above.
  • Loading branch information
hellendag authored Apr 14, 2023
1 parent 023ea90 commit 51088e4
Show file tree
Hide file tree
Showing 11 changed files with 795 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {gql} from '@apollo/client';

export const BASIC_INSTIGATION_STATE_FRAGMENT = gql`
fragment BasicInstigationStateFragment on InstigationState {
id
selectorId
status
hasStartPermission
hasStopPermission
}
`;

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js_modules/dagit/packages/core/src/runs/DeletionDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {ProgressBar} from '@blueprintjs/core';
import {Button, Colors, DialogBody, DialogFooter, Dialog, Group, Icon, Mono} from '@dagster-io/ui';
import * as React from 'react';

import {NavigationBlock} from './NavitationBlock';
import {NavigationBlock} from './NavigationBlock';
import {DELETE_MUTATION} from './RunUtils';
import {DeleteMutation, DeleteMutationVariables} from './types/RunUtils.types';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as React from 'react';

import {ReexecutionStrategy} from '../graphql/types';

import {NavigationBlock} from './NavitationBlock';
import {NavigationBlock} from './NavigationBlock';
import {LAUNCH_PIPELINE_REEXECUTION_MUTATION} from './RunUtils';
import {
LaunchPipelineReexecutionMutation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import * as React from 'react';

import {TerminateRunPolicy} from '../graphql/types';

import {NavigationBlock} from './NavitationBlock';
import {NavigationBlock} from './NavigationBlock';
import {TERMINATE_MUTATION} from './RunUtils';
import {TerminateMutation, TerminateMutationVariables} from './types/RunUtils.types';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export const START_SCHEDULE_MUTATION = gql`
runningCount
}
}
... on UnauthorizedError {
message
}
...PythonErrorFragment
}
}
Expand All @@ -41,6 +44,9 @@ export const STOP_SCHEDULE_MUTATION = gql`
runningCount
}
}
... on UnauthorizedError {
message
}
...PythonErrorFragment
}
}
Expand Down
Loading

0 comments on commit 51088e4

Please sign in to comment.