Add resilient rule version diff fallback
This commit is contained in:
1 parent
c1aebc13b1
commit
3812625c30
11 files changed
+525
-303
No files matched your search
@@ -35,6 +35,7 @@ import {
|
||||
formatSyncVersionName,
|
||||
saveRuleMappingSnapshot
|
||||
} from "../../domains/seal/rule-mapping.js";
|
||||
import { savePublishedRuleVersionSnapshot } from "../../domains/seal/rule-version-snapshot.js";
|
||||
import { executeApprovalRunsReplay, type ReplayRecordsQuery } from "../../domains/seal/webhook-replay.js";
|
||||
import { resolveLiveSealEnterpriseConfig } from "../../domains/seal/source.js";
|
||||
import { selectCorp } from "../helpers.js";
|
||||
@@ -733,6 +734,9 @@ export async function handleCorpsCommand(action: string | undefined, maybeName:
|
||||
|
||||
// 6. Publish new version in test enterprise
|
||||
const published = await api.publishApprovalRuleVersion(testClient, versionName);
|
||||
try {
|
||||
savePublishedRuleVersionSnapshot(testCorp.id, published.version, createdRules);
|
||||
} catch {}
|
||||
|
||||
const publishedRules = published.version.rules ?? [];
|
||||
const ruleMapping = prodRules.rules.map((prodRule, idx) => {
|
||||
|
||||
Reference in new issue
Block a user