MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / policySlugMapForOwner

Function policySlugMapForOwner

packages/core/sdk/src/migration-spec.ts:1336–1345  ·  view source on GitHub ↗
(owner: OwnerKeys)

Source from the content-addressed store, hash-verified

1334 }
1335
1336 const policySlugMapForOwner = (owner: OwnerKeys): ReadonlyMap<string, string> => {
1337 const tenantSourceIds = sourceIdsByTenant.get(owner.tenant);
1338 if (
1339 tenantSourceIds?.has(MICROSOFT_GRAPH_CURATED_SLUG) &&
1340 !tenantSourceIds.has(MICROSOFT_GRAPH_LEGACY_SLUG)
1341 ) {
1342 return new Map(slugMap).set(MICROSOFT_GRAPH_LEGACY_SLUG, MICROSOFT_GRAPH_CURATED_SLUG);
1343 }
1344 return slugMap;
1345 };
1346
1347 // --- Group bindings by (scope, source); each group → one connection.
1348 const groups = new Map<string, V1BindingRow[]>();

Callers 1

planMigrationFunction · 0.85

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected