From a1dac11f95c66fc9f96c104c14f9e9ef3f8627ca Mon Sep 17 00:00:00 2001 From: Hannes Schmidt Date: Tue, 1 Aug 2023 23:50:30 -0700 Subject: [PATCH] Switch default catalog on anvil-cmg/prod --- explorer/site-config/anvil-cmg/dev/config.ts | 9 ++++++--- explorer/site-config/anvil-cmg/prod/config.ts | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/explorer/site-config/anvil-cmg/dev/config.ts b/explorer/site-config/anvil-cmg/dev/config.ts index 6f93b3ef3..e54d6e1de 100644 --- a/explorer/site-config/anvil-cmg/dev/config.ts +++ b/explorer/site-config/anvil-cmg/dev/config.ts @@ -21,7 +21,10 @@ const logoUsagov = "/images/logoUsagov.png"; const SLOGAN = "NHGRI Analysis Visualization and Informatics Lab-space"; export const URL_DATASETS = "/datasets"; -export function make_config(browserUrl: string): SiteConfig { +export function make_config( + browserUrl: string, + catalog: string=CATALOG_DEFAULT +): SiteConfig { return { analytics: { gtmAuth: "up3ucjProssPj7Iq59W45g", // GTM environment-specific @@ -90,10 +93,10 @@ export function make_config(browserUrl: string): SiteConfig { ], dataSource: { defaultDetailParams: { - catalog: CATALOG_DEFAULT, + catalog: catalog, }, defaultListParams: { - catalog: CATALOG_DEFAULT, + catalog: catalog, size: "25", sort: "entryId", }, diff --git a/explorer/site-config/anvil-cmg/prod/config.ts b/explorer/site-config/anvil-cmg/prod/config.ts index 34f5754ef..aa8549f6e 100644 --- a/explorer/site-config/anvil-cmg/prod/config.ts +++ b/explorer/site-config/anvil-cmg/prod/config.ts @@ -7,7 +7,7 @@ import { downloadColumn } from "../dev/index/filesEntityConfig"; import { authenticationConfig } from "./authentication/authentication"; const config: SiteConfig = { - ...make_config("https://prod.anvil.gi.ucsc.edu"), + ...make_config("https://prod.anvil.gi.ucsc.edu", "anvil1"), exportToTerraUrl: "https://app.terra.bio/", };