mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Checkly group level sync support
This commit is contained in:
@@ -84,6 +84,16 @@ export default function ChecklyCreateIntegrationPage() {
|
||||
}
|
||||
}, [integrationAuthApps]);
|
||||
|
||||
const handleValueChange = (val) => {
|
||||
const selectedGroup = integrationAuthGroups.find(group => group.name === val);
|
||||
if (selectedGroup) {
|
||||
setTargetGroupId(selectedGroup.groupId);
|
||||
} else {
|
||||
setTargetGroupId("");
|
||||
}
|
||||
setTargetGroup(val);
|
||||
}
|
||||
|
||||
const handleButtonClick = async () => {
|
||||
try {
|
||||
if (!integrationAuth?._id) return;
|
||||
@@ -96,6 +106,8 @@ export default function ChecklyCreateIntegrationPage() {
|
||||
app: targetApp,
|
||||
appId: targetAppId,
|
||||
sourceEnvironment: selectedSourceEnvironment,
|
||||
targetService: targetGroup,
|
||||
targetServiceId: targetGroupId.toString(),
|
||||
secretPath,
|
||||
metadata: {
|
||||
secretSuffix
|
||||
@@ -188,7 +200,7 @@ export default function ChecklyCreateIntegrationPage() {
|
||||
<FormControl label="Checkly Group">
|
||||
<Select
|
||||
value={targetGroup}
|
||||
onValueChange={(val) => setTargetGroup(val)}
|
||||
onValueChange={handleValueChange}
|
||||
className="w-full border border-mineshaft-500"
|
||||
>
|
||||
<SelectItem value="">
|
||||
|
||||
Reference in New Issue
Block a user