Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions tests/ui/workbench-catalog-contracts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,38 @@ import { resolveWorkbenchComponent } from "../../src/ui/components/workbench/com
const source = process.env.WORKBENCH_SOURCE;
const enabled = Boolean(source);
describe.skipIf(!enabled)("generated Workbench catalog compatibility", () => {
it("validates 289 v1 native descriptors, 78 v2 queries, and legacy fallbacks", () => {
// Batch 5 (uk_biobank, ega, eggnog, dbnsfp, marrvel, thousand_genomes) adds
// the campaign's own next six reference_db plugins on top of this
// already-integrated baseline (Workbench commit 7ea5b6bf on
// feat/refdb-batch5-uk-biobank-ega-eggnog-dbnsfp-marrvel-thousand-genomes,
// itself Workbench's original Batch 5 commit 26ab2ac0 cherry-picked onto
// fresh main since that branch's earlier Batches 1-4 are already present
// here via the Claude+Codex integration merge).
it("validates 289 v1 native descriptors, 84 v2 queries, and legacy fallbacks", () => {
const exporter = path.join(source, "scripts/export_workbench_ui_compatibility.py");
expect(existsSync(exporter)).toBe(true);
const catalog = JSON.parse(execFileSync(process.env.PYTHON || "python3", ["-B", exporter], {
cwd: source, encoding: "utf8", maxBuffer: 8 * 1024 * 1024,
env: { ...process.env, PYTHONDONTWRITEBYTECODE: "1", DJANGO_DEBUG: "true", DJANGO_SETTINGS_MODULE: "omnibioai.settings_test" },
}));
expect(catalog.counts).toEqual({ enabled: 501, native: 367, legacy: 134 });
expect(catalog.counts).toEqual({ enabled: 501, native: 373, legacy: 128 });
expect(catalog.plugins).toHaveLength(501);
const native = catalog.plugins.filter(plugin => plugin.descriptor.native_supported);
expect(native.filter(plugin => plugin.schema_version === 1)).toHaveLength(289);
expect(native.filter(plugin => plugin.schema_version === 2).map(plugin => plugin.slug).sort()).toEqual([
"all_of_us", "api_analytics", "bindingdb", "biogrid", "bioportal", "brenda",
"cbioportal", "ccle", "cell_ontology", "chebi", "civic", "clingen",
"clinicaltrials_gov", "cpic", "dbgap", "depmap", "dgidb", "disease_ontology",
"disgenet", "drugcentral", "drugsatfda", "ena", "encode", "ensembl",
"clinicaltrials_gov", "cpic", "dbgap", "dbnsfp", "depmap", "dgidb", "disease_ontology",
"disgenet", "drugcentral", "drugsatfda", "ega", "eggnog", "ena", "encode", "ensembl",
"expression_atlas", "gdc", "gene_ontology", "genereviews", "gnomad", "gtex",
"hgmd", "hgnc", "hpa", "icgc", "intact", "integration_connections",
"interpro", "job_queue_manager", "kegg", "lipidmaps", "lovd", "mastermind",
"interpro", "job_queue_manager", "kegg", "lipidmaps", "lovd", "marrvel", "mastermind",
"mavedb", "medgen", "metabolights", "mondo", "msigdb", "ncbi",
"notification_center", "omim", "opentargets", "orphanet", "panglaodb", "panther",
"pdb_redo", "pdbe", "pharmvar", "pharos", "phegeni", "pride",
"proteomexchange", "pubchem", "rcsb_pdb", "rfam", "rxnorm", "sgd",
"snpedia", "sra", "storage_quota_manager", "string_db", "swisslipids", "targetscan",
"tcga", "topmed", "ucsc", "uniprot", "wikipathways", "wormbase",
"tcga", "thousand_genomes", "topmed", "ucsc", "uk_biobank", "uniprot", "wikipathways", "wormbase",
]);
expect(native.filter(plugin => plugin.schema_version === 1 && plugin.renderer === "query")).toHaveLength(9);
expect(native.filter(plugin => plugin.schema_version === 1 && plugin.renderer === "async_analysis").map(plugin => plugin.slug).sort()).toEqual([
Expand Down
Loading