Don't pass specification where not needed

This commit is contained in:
Khushboo Verma committed 2025-10-07 16:17:40 +05:30
1 parent 4fa5d0448e
commit 564899d48a
20 files changed
+21 -27

No files matched your search

@@ -104,8 +104,7 @@
entrypoint: entrypoint || undefined,
commands: installCommand || undefined,
scopes: selectedScopes?.length ? selectedScopes : undefined,
providerSilentMode: false,
specification: undefined
providerSilentMode: false
});
// Add domain
@@ -71,8 +71,7 @@
execute: roles?.length ? roles : undefined,
enabled: true,
entrypoint,
commands: buildCommand,
specification: undefined
commands: buildCommand
});
// Add domain
@@ -107,8 +107,7 @@
providerRepositoryId: $repository.id,
providerBranch: branch,
providerSilentMode: silentMode,
providerRootDirectory: rootDir,
specification: undefined
providerRootDirectory: rootDir
});
// Add domain
@@ -147,8 +147,7 @@
connectBehaviour === 'later' ? undefined : $repository?.id,
providerBranch: branch,
providerSilentMode: silentMode,
providerRootDirectory: rootDir,
specification: undefined
providerRootDirectory: rootDir
});
// Add domain
@@ -36,7 +36,7 @@
providerBranch: func.providerBranch || undefined,
providerSilentMode: func.providerSilentMode || undefined,
providerRootDirectory: func.providerRootDirectory || undefined,
specification: undefined
specification: func.specification || undefined
});
await invalidate(Dependencies.FUNCTION);
@@ -47,7 +47,7 @@
providerBranch: $func.providerBranch || undefined,
providerSilentMode: $func.providerSilentMode || undefined,
providerRootDirectory: $func.providerRootDirectory || undefined,
specification: undefined
specification: $func.specification || undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
@@ -37,7 +37,7 @@
providerBranch: func.providerBranch || undefined,
providerSilentMode: func.providerSilentMode || undefined,
providerRootDirectory: func.providerRootDirectory || undefined,
specification: undefined
specification: func.specification || undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
@@ -42,7 +42,7 @@
providerBranch: $func.providerBranch || undefined,
providerSilentMode: $func.providerSilentMode || undefined,
providerRootDirectory: $func.providerRootDirectory || undefined,
specification: undefined
specification: $func.specification || undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
@@ -47,7 +47,7 @@
providerBranch: $func.providerBranch || undefined,
providerSilentMode: $func.providerSilentMode || undefined,
providerRootDirectory: $func.providerRootDirectory || undefined,
specification: undefined
specification: $func.specification || undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
@@ -43,8 +43,7 @@
providerRepositoryId: func.providerRepositoryId || undefined,
providerBranch: func.providerBranch || undefined,
providerSilentMode: func.providerSilentMode || undefined,
providerRootDirectory: func.providerRootDirectory || undefined,
specification: undefined
providerRootDirectory: func.providerRootDirectory || undefined
});
await invalidate(Dependencies.FUNCTION);
@@ -46,7 +46,7 @@
providerBranch: $func.providerBranch || undefined,
providerSilentMode: $func.providerSilentMode || undefined,
providerRootDirectory: $func.providerRootDirectory || undefined,
specification: undefined
specification: $func.specification || undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
@@ -47,7 +47,7 @@
providerBranch: $func.providerBranch || undefined,
providerSilentMode: $func.providerSilentMode || undefined,
providerRootDirectory: $func.providerRootDirectory || undefined,
specification: undefined
specification: $func.specification || undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
@@ -45,7 +45,7 @@
providerBranch: $func.providerBranch || undefined,
providerSilentMode: $func.providerSilentMode || undefined,
providerRootDirectory: $func.providerRootDirectory || undefined,
specification: undefined
specification: $func.specification || undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
@@ -42,7 +42,7 @@
providerBranch: $func.providerBranch || undefined,
providerSilentMode: $func.providerSilentMode || undefined,
providerRootDirectory: $func.providerRootDirectory || undefined,
specification: undefined
specification: $func.specification || undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
@@ -33,7 +33,7 @@
providerBranch: site?.providerBranch || undefined,
providerSilentMode: site?.providerSilentMode || undefined,
providerRootDirectory: site?.providerRootDirectory || undefined,
specification: undefined
specification: site?.specification || undefined
});
await invalidate(Dependencies.SITE);
addNotification({
@@ -37,7 +37,7 @@
providerBranch: site?.providerBranch || undefined,
providerSilentMode: site?.providerSilentMode || undefined,
providerRootDirectory: site?.providerRootDirectory || undefined,
specification: undefined
specification: site?.specification || undefined
});
await invalidate(Dependencies.SITE);
addNotification({
@@ -86,7 +86,7 @@
providerBranch: selectedBranch || undefined,
providerSilentMode: silentMode || undefined,
providerRootDirectory: selectedDir || undefined,
specification: undefined
specification: site?.specification || undefined
});
await invalidate(Dependencies.SITE);
addNotification({
@@ -133,7 +133,7 @@
installationId: selectedInstallationId,
providerRepositoryId: selectedRepository,
providerBranch: 'main',
specification: undefined
specification: site?.specification || undefined
});
invalidate(Dependencies.SITE);
@@ -38,8 +38,7 @@
providerRepositoryId: site?.providerRepositoryId || undefined,
providerBranch: site?.providerBranch || undefined,
providerSilentMode: site?.providerSilentMode || undefined,
providerRootDirectory: site?.providerRootDirectory || undefined,
specification: undefined
providerRootDirectory: site?.providerRootDirectory || undefined
});
await invalidate(Dependencies.SITE);
originalSpecification = specification;
@@ -43,7 +43,7 @@
providerBranch: site?.providerBranch || undefined,
providerSilentMode: site?.providerSilentMode || undefined,
providerRootDirectory: site?.providerRootDirectory || undefined,
specification: undefined
specification: site?.specification || undefined
});
await invalidate(Dependencies.SITE);
addNotification({
@@ -36,7 +36,7 @@
providerBranch: site?.providerBranch || undefined,
providerSilentMode: site?.providerSilentMode || undefined,
providerRootDirectory: site?.providerRootDirectory || undefined,
specification: undefined
specification: site?.specification || undefined
});
await invalidate(Dependencies.SITE);
addNotification({