Skip to content

Commit ed7b5a8

Browse files
Added the remoteHub field (for Git repository name) in the ChaosHub Frontend (#4843)
* added dropdown in add chaoshub modal(AddHubModalWizard) Signed-off-by: JanhaviAlekar <[email protected]> * added svg for list chaoshub in chaoshub page(ChaosHubs.tsx) Signed-off-by: JanhaviAlekar <[email protected]> * added dropdown list in edit chaoshub modal(EditHubModalWizard.tsx) Signed-off-by: JanhaviAlekar <[email protected]> * made remoteHub as required field Signed-off-by: JanhaviAlekar <[email protected]> --------- Signed-off-by: JanhaviAlekar <[email protected]>
1 parent a5b5866 commit ed7b5a8

File tree

14 files changed

+140
-4
lines changed

14 files changed

+140
-4
lines changed

chaoscenter/web/src/api/core/chaoshubs/addChaosHub.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export interface CreateChaosHubRequest {
88
description?: string;
99
repoURL: string;
1010
repoBranch: string;
11+
remoteHub: string;
1112
isPrivate: boolean;
1213
authType: AuthType;
1314
token?: string;
@@ -36,6 +37,7 @@ export function addChaosHub(
3637
name
3738
repoURL
3839
repoBranch
40+
remoteHub
3941
hubType
4042
isPrivate
4143
}

chaoscenter/web/src/api/core/chaoshubs/listChaosHub.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export function listChaosHub({
3434
id
3535
repoURL
3636
repoBranch
37+
remoteHub
3738
authType
3839
isAvailable
3940
totalFaults

chaoscenter/web/src/api/core/chaoshubs/updateChaosHub.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ interface EditChaosHubRequest {
88
tags: string[];
99
description?: string;
1010
repoURL: string;
11+
remoteHub: string;
1112
repoBranch: string;
1213
isPrivate: boolean;
1314
authType: AuthType;
@@ -37,6 +38,7 @@ export function updateChaosHub(
3738
name
3839
repoURL
3940
repoBranch
41+
remoteHub
4042
}
4143
}
4244
`,

chaoscenter/web/src/api/entities/chaoshub.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export interface ChaosHub extends Audit, ResourceDetails {
2727
id: string;
2828
repoURL: string;
2929
repoBranch: string;
30+
remoteHub: string;
3031
projectID: string;
3132
name: string;
3233
tags?: [string];

chaoscenter/web/src/images/Azure.svg

Lines changed: 2 additions & 0 deletions
Loading
Lines changed: 2 additions & 0 deletions
Loading

chaoscenter/web/src/images/Github.svg

Lines changed: 5 additions & 0 deletions
Loading

chaoscenter/web/src/images/Gitlab.svg

Lines changed: 53 additions & 0 deletions
Loading

chaoscenter/web/src/strings/strings.en.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,7 @@ referencedBy: Referenced By
909909
registry: Registry
910910
registryName: Registry Name
911911
registryType: Registry Type
912+
remoteHub: Select Remote hub
912913
remoteRepo: Remote Repository
913914
remove: Remove
914915
removeMember: Remove Member

chaoscenter/web/src/strings/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,7 @@ export interface StringsMap {
753753
'registry': unknown
754754
'registryName': unknown
755755
'registryType': unknown
756+
'remoteHub': unknown
756757
'remoteRepo': unknown
757758
'remove': unknown
758759
'removeMember': unknown

0 commit comments

Comments
 (0)