-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle InvalidSubsetError in launch run results (#8014)
Summary: A user reported that a launch run mutation that triggered an InvalidSubsetError was raised as an unhandled graphql exception. Add that explicitly to the set of errors that are handled in the graphql query and client-side. Not sure how I feel about this java-y "catch all exceptions that might possibly be thrown from the server" pattern though. There's also a visual display issue with this showCustomAlert path when there's only a message but no stack trace - i'll post a screenshot. To repro swap in this implementation on the server: ``` @capture_error def launch_pipeline_execution(graphene_info, execution_params): from ...schema.errors import GrapheneInvalidSubsetError from ...schema.pipelines.pipeline import GraphenePipeline from ..utils import UserFacingGraphQLError, capture_error raise UserFacingGraphQLError( GrapheneInvalidSubsetError( message="sup", pipeline=GraphenePipeline( graphene_info.context.get_full_external_pipeline(execution_params.selector) ), ), ) return _launch_pipeline_execution(graphene_info, execution_params) ``` Test Plan: Simulate this error being thrown from the server using the error above, launch run - no more uncaught graphql exception.
- Loading branch information
Showing
17 changed files
with
87 additions
and
56 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
js_modules/dagit/packages/core/src/graphql/possibleTypes.generated.json
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
js_modules/dagit/packages/core/src/instance/types/LaunchPartitionBackfill.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
7 changes: 6 additions & 1 deletion
7
js_modules/dagit/packages/core/src/runs/types/LaunchPipelineExecution.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 6 additions & 1 deletion
7
js_modules/dagit/packages/core/src/runs/types/LaunchPipelineReexecution.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
3 changes: 1 addition & 2 deletions
3
python_modules/dagster-graphql/dagster_graphql/schema/pipelines/config_result.py
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
29 changes: 0 additions & 29 deletions
29
python_modules/dagster-graphql/dagster_graphql/schema/pipelines/pipeline_errors.py
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
python_modules/dagster-graphql/dagster_graphql/schema/roots/execution_plan.py
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
8 changes: 6 additions & 2 deletions
8
python_modules/dagster-graphql/dagster_graphql/schema/roots/pipeline.py
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