fix: complete housekeeping economy audit
This commit is contained in:
1 parent
3a03a3db15
commit
4d9845b52f
2 files changed
+18
-1
No files matched your search
@@ -52,4 +52,20 @@ describe("economyMigrationEntries", () => {
|
|||||||
),
|
),
|
||||||
).toBe(true);
|
).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("records the catalog search dependency on base items", () => {
|
||||||
|
const catalog = economyMigrationEntries.find(
|
||||||
|
(row) => row.legacyPath === "/admin/catalog",
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(catalog?.dependencies.queries).toContain("ItemsBase");
|
||||||
|
});
|
||||||
|
|
||||||
|
it("marks the item collection localization as partial", () => {
|
||||||
|
const items = economyMigrationEntries.find(
|
||||||
|
(row) => row.legacyPath === "/admin/items",
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(items?.localization).toBe("PARTIAL");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
@@ -38,6 +38,7 @@ export const economyMigrationEntries: readonly MigrationEntry[] = [
|
|||||||
"CatalogItemsBc",
|
"CatalogItemsBc",
|
||||||
"CatalogPages",
|
"CatalogPages",
|
||||||
"CatalogPagesBc",
|
"CatalogPagesBc",
|
||||||
|
"ItemsBase",
|
||||||
"GET /api/admin/catalog/items",
|
"GET /api/admin/catalog/items",
|
||||||
"GET /api/admin/catalog/tree",
|
"GET /api/admin/catalog/tree",
|
||||||
"getCatalogItemCounts",
|
"getCatalogItemCounts",
|
||||||
@@ -174,7 +175,7 @@ export const economyMigrationEntries: readonly MigrationEntry[] = [
|
|||||||
capabilities: { read: [PERMS.CATALOG_VIEW], mutate: [] },
|
capabilities: { read: [PERMS.CATALOG_VIEW], mutate: [] },
|
||||||
dependencies: { queries: ["fetchAdminList", "ItemsBase"], mutations: [] },
|
dependencies: { queries: ["fetchAdminList", "ItemsBase"], mutations: [] },
|
||||||
auditRequirement: "NONE",
|
auditRequirement: "NONE",
|
||||||
localization: "COMPLETE",
|
localization: "PARTIAL",
|
||||||
accessibility: "PARTIAL",
|
accessibility: "PARTIAL",
|
||||||
}),
|
}),
|
||||||
plannedEconomyEntry({
|
plannedEconomyEntry({
|
||||||
|
|||||||
Reference in new issue
Block a user