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);
|
||||
});
|
||||
|
||||
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",
|
||||
"CatalogPages",
|
||||
"CatalogPagesBc",
|
||||
"ItemsBase",
|
||||
"GET /api/admin/catalog/items",
|
||||
"GET /api/admin/catalog/tree",
|
||||
"getCatalogItemCounts",
|
||||
@@ -174,7 +175,7 @@ export const economyMigrationEntries: readonly MigrationEntry[] = [
|
||||
capabilities: { read: [PERMS.CATALOG_VIEW], mutate: [] },
|
||||
dependencies: { queries: ["fetchAdminList", "ItemsBase"], mutations: [] },
|
||||
auditRequirement: "NONE",
|
||||
localization: "COMPLETE",
|
||||
localization: "PARTIAL",
|
||||
accessibility: "PARTIAL",
|
||||
}),
|
||||
plannedEconomyEntry({
|
||||
|
||||
Reference in new issue
Block a user