Clarify sync-test safety and portable skill assets
This commit is contained in:
1 parent
b9533b1b66
commit
e0f1724929
4 files changed
+83
-84
No files matched your search
@@ -739,7 +739,13 @@ export async function handleCorpsCommand(action: string | undefined, maybeName:
|
||||
throw new Error(`Failed to recode test approval rules: HTTP ${recodeResult.status}`);
|
||||
}
|
||||
|
||||
// 6. Publish new version in test enterprise
|
||||
// 6. Sync HoseCloud integrations before publishing the test version. This
|
||||
// keeps a Hose configuration failure from leaving a newly published
|
||||
// version behind, although the overall multi-request operation remains
|
||||
// non-transactional.
|
||||
const hosecloudSync = await syncHosecloudIntegrationsToTest(prodCorp, testCorp, prodClient, testClient);
|
||||
|
||||
// 7. Publish new version in test enterprise
|
||||
const published = await api.publishApprovalRuleVersion(testClient, versionName);
|
||||
try {
|
||||
savePublishedRuleVersionSnapshot(testCorp.id, published.version, createdRules);
|
||||
@@ -790,9 +796,6 @@ export async function handleCorpsCommand(action: string | undefined, maybeName:
|
||||
});
|
||||
} catch {}
|
||||
|
||||
// 7. Sync hosecloud integrations from prod to test (hose-source corps only)
|
||||
const hosecloudSync = await syncHosecloudIntegrationsToTest(prodCorp, testCorp, prodClient, testClient);
|
||||
|
||||
printJson({
|
||||
success: true,
|
||||
syncedAt: new Date().toISOString(),
|
||||
|
||||
Reference in new issue
Block a user