File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed
frontend/app/src/entities Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import graphqlClient from "@/shared/api/graphql/graphqlClientApollo";
22import { gql } from "@apollo/client" ;
33
44export const BRANCH_REBASE = gql `
5- mutation BRANCH_REBASE($name: String, $waitForCompletion : Boolean!) {
5+ mutation BRANCH_REBASE($name: String, $waitUntilCompletion : Boolean!) {
66 BranchRebase (
7- wait_until_completion: $waitForCompletion
7+ wait_until_completion: $waitUntilCompletion
88 data: {
99 name: $name
1010 }
@@ -30,15 +30,15 @@ export const BRANCH_REBASE = gql`
3030
3131export type RebaseBranchFromApiParams = {
3232 branchName : string ;
33- waitForCompletion : boolean ;
33+ waitUntilCompletion : boolean ;
3434} ;
3535
3636export const rebaseBranchFromApi = ( {
3737 branchName,
38- waitForCompletion ,
38+ waitUntilCompletion ,
3939} : RebaseBranchFromApiParams ) => {
4040 return graphqlClient . mutate ( {
4141 mutation : BRANCH_REBASE ,
42- variables : { name : branchName , waitForCompletion } ,
42+ variables : { name : branchName , waitUntilCompletion } ,
4343 } ) ;
4444} ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { useMutation } from "@tanstack/react-query";
44
55export type RebaseBranchParams = {
66 branchName : string ;
7- waitForCompletion ?: boolean ;
7+ waitUntilCompletion ?: boolean ;
88} ;
99
1010export type RebaseBranch = ( params : RebaseBranchParams ) => Promise < {
@@ -14,9 +14,9 @@ export type RebaseBranch = (params: RebaseBranchParams) => Promise<{
1414
1515export const rebaseBranch : RebaseBranch = async ( {
1616 branchName,
17- waitForCompletion = true ,
17+ waitUntilCompletion = true ,
1818} : RebaseBranchParams ) => {
19- const { data } = await rebaseBranchFromApi ( { branchName, waitForCompletion } ) ;
19+ const { data } = await rebaseBranchFromApi ( { branchName, waitUntilCompletion } ) ;
2020
2121 return {
2222 branch : data . BranchRebase . object ,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export const BranchRebaseButton = ({ branch }: BranchRebaseButtonProps) => {
3333 rebaseBranchMutation . mutate (
3434 {
3535 branchName : branch . name ,
36- waitForCompletion : false ,
36+ waitUntilCompletion : false ,
3737 } ,
3838 {
3939 onSuccess : async ( ) => {
Original file line number Diff line number Diff line change @@ -2,24 +2,24 @@ import graphqlClient from "@/shared/api/graphql/graphqlClientApollo";
22import { gql } from "@apollo/client" ;
33
44export const DIFF_UPDATE = gql `
5- mutation DIFF_UPDATE($branchName: String!, $waitForCompletion : Boolean) {
6- DiffUpdate(data: { branch: $branchName, wait_for_completion : $waitForCompletion } ) {
5+ mutation DIFF_UPDATE($branchName: String!, $waitUntilCompletion : Boolean) {
6+ DiffUpdate(data: { branch: $branchName }, wait_until_completion : $waitUntilCompletion ) {
77 ok
88 }
99 }
1010` ;
1111
1212export type UpdateDiffFromApiParams = {
1313 branchName : string ;
14- waitForCompletion : boolean ;
14+ waitUntilCompletion : boolean ;
1515} ;
1616
17- export const updateDiffFromApi = ( { branchName, waitForCompletion } : UpdateDiffFromApiParams ) => {
17+ export const updateDiffFromApi = ( { branchName, waitUntilCompletion } : UpdateDiffFromApiParams ) => {
1818 return graphqlClient . mutate ( {
1919 mutation : DIFF_UPDATE ,
2020 variables : {
2121 branchName,
22- waitForCompletion ,
22+ waitUntilCompletion ,
2323 } ,
2424 } ) ;
2525} ;
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ import { updateDiffFromApi } from "@/entities/diff/api/update-diff-from-api";
33export type UpdateDiff = ( branchName : string ) => Promise < void > ;
44
55export const updateDiff : UpdateDiff = async ( branchName ) => {
6- await updateDiffFromApi ( { branchName, waitForCompletion : true } ) ;
6+ await updateDiffFromApi ( { branchName, waitUntilCompletion : true } ) ;
77} ;
You can’t perform that action at this time.
0 commit comments