Revert "Merge pull request 'Complete Housekeeping migration and /ase cutover' (#52) from codex/housekeeping-complete into main"
This reverts commit488b6e57c4, reversing changes made tob506b4499a.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { PERMS } from "@/lib/permission-slugs";
|
||||
import { contentMigrationEntries } from "./content";
|
||||
import { ownedLegacyPages, recordedLegacyPages } from "./discover-legacy-pages";
|
||||
import { HOUSEKEEPING_MIGRATION_MATRIX } from "./matrix";
|
||||
import { ownedLegacyPages } from "./discover-legacy-pages";
|
||||
import { validateMigrationEntries } from "./validate-matrix";
|
||||
|
||||
const CONTENT_PREFIXES = [
|
||||
@@ -25,17 +24,15 @@ const CONTENT_PREFIXES = [
|
||||
|
||||
describe("contentMigrationEntries", () => {
|
||||
it("covers every content page without legacy-domain targets", () => {
|
||||
const expected = ownedLegacyPages(
|
||||
CONTENT_PREFIXES,
|
||||
recordedLegacyPages(HOUSEKEEPING_MIGRATION_MATRIX),
|
||||
);
|
||||
const expected = ownedLegacyPages(CONTENT_PREFIXES);
|
||||
expect(validateMigrationEntries(expected, contentMigrationEntries)).toEqual(
|
||||
[],
|
||||
);
|
||||
expect(
|
||||
contentMigrationEntries.every(
|
||||
(row) =>
|
||||
row.targetPath === null || row.targetPath.startsWith("/ase/content/"),
|
||||
row.targetPath === null ||
|
||||
row.targetPath.startsWith("/admin/content/"),
|
||||
),
|
||||
).toBe(true);
|
||||
});
|
||||
@@ -48,33 +45,31 @@ describe("contentMigrationEntries", () => {
|
||||
).toEqual([
|
||||
{
|
||||
legacyPath: "/admin/articles/:id",
|
||||
targetPath: "/ase/content/editorial/articles/:id",
|
||||
targetPath: "/admin/content/editorial/articles/:id",
|
||||
},
|
||||
{
|
||||
legacyPath: "/admin/ads/:id",
|
||||
targetPath: "/ase/content/media/ads/:id",
|
||||
targetPath: "/admin/content/media/ads/:id",
|
||||
},
|
||||
{
|
||||
legacyPath: "/admin/events/:id",
|
||||
targetPath: "/ase/content/engagement/events/:id",
|
||||
targetPath: "/admin/content/engagement/events/:id",
|
||||
},
|
||||
{
|
||||
legacyPath: "/admin/polls/:id",
|
||||
targetPath: "/ase/content/engagement/polls/:id",
|
||||
targetPath: "/admin/content/engagement/polls/:id",
|
||||
},
|
||||
{
|
||||
legacyPath: "/admin/help-questions/:id",
|
||||
targetPath: "/ase/content/help/questions/:id",
|
||||
targetPath: "/admin/content/help/questions/:id",
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it("records concrete runtime parity evidence for every verified workflow", () => {
|
||||
it("keeps every audited workflow planned without parity claims", () => {
|
||||
expect(
|
||||
contentMigrationEntries.every(
|
||||
(row) =>
|
||||
row.status === "VERIFIED" &&
|
||||
row.parityEvidence.includes(`runtime-parity:${row.legacyPath}`),
|
||||
(row) => row.status === "PLANNED" && row.parityEvidence.length === 0,
|
||||
),
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user