feat: complete catalog-driven preprocessing
Publish documentation / publish (push) Successful in 2m12s
Publish documentation / publish (push) Successful in 2m12s
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { setupServer } from "msw/node";
|
||||
import { http, HttpResponse } from "msw";
|
||||
import type { CatalogMetrics } from "../api/catalog-databases";
|
||||
import type { WorkspacePreprocessingStatus } from "../api/workspace-preprocessing";
|
||||
|
||||
export const emptyCatalogMetricsFixture = {
|
||||
scope: "global",
|
||||
@@ -30,4 +31,14 @@ export const server = setupServer(
|
||||
http.get("/api/catalog/metadata-generation/models", () => HttpResponse.json({ models: [], default: null })),
|
||||
http.get("/api/catalog/description-generation-runs", () => HttpResponse.json([])),
|
||||
http.get("/api/catalog/sensitive-data-suggestion-runs", () => HttpResponse.json([])),
|
||||
http.get("/api/workspaces/:workspaceId/preprocessing", ({ params }) => HttpResponse.json({
|
||||
schemaVersion: 1,
|
||||
workspaceId: String(params.workspaceId),
|
||||
state: "ready",
|
||||
actionable: true,
|
||||
clearable: true,
|
||||
detail: "Catalog revision 1 is indexed.",
|
||||
metadataRevision: 1,
|
||||
preprocessedMetadataRevision: 1,
|
||||
} satisfies WorkspacePreprocessingStatus)),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user