-
Notifications
You must be signed in to change notification settings - Fork 37
Fix and refactor checks retry #7456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 37 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
89fc632
fix const
pa-lem 2117f24
add api function
pa-lem d82183d
add domain
pa-lem 4e07916
add query
pa-lem 2ede2bf
update domain
pa-lem 495bf89
use fsd in checks
pa-lem c5bf78d
Merge branch 'stable' of github.com:opsmill/infrahub into ple-fix-ret…
pa-lem 8b14885
add check api
pa-lem 38a5477
update keys
pa-lem ece8beb
add domain
pa-lem b5e4b6d
add mutation
pa-lem a917c43
update query
pa-lem 8027eea
cleanup useless style
pa-lem cb05e69
remove refetch
pa-lem d400a05
update mutation
pa-lem 5defc71
remove unused file
pa-lem 9846acd
remove unused file
pa-lem 6702994
Merge branch 'stable' of github.com:opsmill/infrahub into ple-fix-ret…
pa-lem 3a93cf2
add api
pa-lem 8387421
update query keys
pa-lem 670016c
add domain
pa-lem 04b2ff9
add query
pa-lem faa1302
update component
pa-lem c64569c
remove file
pa-lem 6a5ee2b
add changelog
pa-lem eead83b
add errors check
pa-lem aff1d28
Merge branch 'stable' of github.com:opsmill/infrahub into ple-fix-ret…
pa-lem c641f71
fix type
pa-lem f897859
use as const
pa-lem 6d05267
update type
pa-lem b10b133
update ui for retry
pa-lem 6b4c274
update retry all ui
pa-lem 3ed3581
ensure kind
pa-lem 53d073c
revert tooltip
pa-lem d479645
improve TS
bilalabbad 55415c9
rephrase changelog
pa-lem ac4182d
Merge branch 'ple-fix-retry-checks-IFC-1023' of github.com:opsmill/in…
pa-lem 9b5ec2a
Merge branch 'stable' into ple-fix-retry-checks-IFC-1023
pa-lem File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| Resolved a problem that caused generator checks to fail when retrying requests |
This file contains hidden or 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 hidden or 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
54 changes: 54 additions & 0 deletions
54
frontend/app/src/entities/diff/api/get-validators-from-api.ts
This file contains hidden or 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,54 @@ | ||
| import { gql } from "@apollo/client"; | ||
|
|
||
| import { | ||
| Get_Check_DetailsQueryVariables, | ||
| Get_Core_ValidatorsQuery, | ||
| } from "@/shared/api/graphql/generated/graphql"; | ||
| import graphqlClient from "@/shared/api/graphql/graphqlClientApollo"; | ||
|
|
||
| const GET_VALIDATORS = gql` | ||
| query GET_CORE_VALIDATORS($id: ID!) { | ||
| CoreValidator(proposed_change__ids: [$id]) { | ||
| edges { | ||
| node { | ||
| id | ||
| display_label | ||
| conclusion { | ||
| value | ||
| } | ||
| started_at { | ||
| value | ||
| } | ||
| completed_at { | ||
| value | ||
| } | ||
| state { | ||
| value | ||
| } | ||
| checks { | ||
| edges { | ||
| node { | ||
| conclusion { | ||
| value | ||
| } | ||
| severity { | ||
| value | ||
| } | ||
| } | ||
| } | ||
| } | ||
| __typename | ||
| } | ||
| } | ||
| } | ||
| } | ||
| `; | ||
|
|
||
| export interface GetValidatorsFromApiParams extends Get_Check_DetailsQueryVariables {} | ||
|
|
||
| export const getValidatorsFromApi = async (variables: GetValidatorsFromApiParams) => { | ||
| return graphqlClient.query<Get_Core_ValidatorsQuery, Get_Check_DetailsQueryVariables>({ | ||
| query: GET_VALIDATORS, | ||
| variables, | ||
| }); | ||
| }; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,32 @@ | ||
| import { gql } from "@apollo/client"; | ||
|
|
||
| import { | ||
| Run_CheckMutation, | ||
| Run_CheckMutationVariables, | ||
| } from "@/shared/api/graphql/generated/graphql"; | ||
| import graphqlClient from "@/shared/api/graphql/graphqlClientApollo"; | ||
|
|
||
| export const RUN_CHECK = gql` | ||
| mutation RUN_CHECK($proposedChangeId: String!, $checkType: CheckType) { | ||
| CoreProposedChangeRunCheck ( | ||
| data: { | ||
| id: $proposedChangeId, | ||
| check_type: $checkType | ||
| } | ||
| ) { | ||
| ok | ||
| } | ||
| } | ||
| `; | ||
|
|
||
| export interface RunCheckFromApiParams extends Run_CheckMutationVariables {} | ||
|
|
||
| export const runCheckFromApi = ({ proposedChangeId, checkType }: RunCheckFromApiParams) => { | ||
| return graphqlClient.mutate<Run_CheckMutation, Run_CheckMutationVariables>({ | ||
| mutation: RUN_CHECK, | ||
| variables: { | ||
| proposedChangeId, | ||
| checkType, | ||
| }, | ||
| }); | ||
| }; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.