Skip to content

Commit e6f134b

Browse files
frano-mFran McDade
andauthored
feat: set catalog from url (#3776) (#3778)
Co-authored-by: Fran McDade <[email protected]>
1 parent 6f75017 commit e6f134b

File tree

5 files changed

+19
-12
lines changed

5 files changed

+19
-12
lines changed

explorer/app/viewModelBuilders/azul/hca-dcp/common/viewModelBuilders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export const buildAggregatedProjectTitle = (
148148
HCA_DCP_CATEGORY_KEY.PROJECT_TITLE
149149
)
150150
),
151-
url: "", //getAggregatedProjectTitleUrl(entityResponse),
151+
url: getAggregatedProjectTitleUrl(entityResponse),
152152
};
153153
};
154154

explorer/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

explorer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"test:anvil-catalog": "playwright test -c playwright_anvil-catalog.config.ts"
3434
},
3535
"dependencies": {
36-
"@clevercanary/data-explorer-ui": "0.54.0",
36+
"@clevercanary/data-explorer-ui": "0.55.0",
3737
"@emotion/react": "11.11.1",
3838
"@emotion/styled": "11.11.0",
3939
"@mdx-js/loader": "^2.3.0",

explorer/pages/[entityListType]/[...params].tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ export const getStaticPaths: GetStaticPaths<PageUrl> = async () => {
8484

8585
const resultParams: { params: PageUrl }[] = [];
8686
if (entityConfig.detail.staticLoad && entityConfig.getId) {
87-
const { fetchAllEntities, path } = getEntityService(entityConfig);
87+
const { fetchAllEntities, path } = getEntityService(
88+
entityConfig,
89+
undefined
90+
);
8891
const data = await fetchAllEntities(path);
8992
const tabs = entityConfig.detail?.tabs.map((tab) => tab.route) ?? [];
9093

@@ -140,14 +143,18 @@ export const getStaticProps: GetStaticProps<AzulEntityStaticResponse> = async ({
140143
await seedDatabase(entityConfig.route, entityConfig);
141144
}
142145
// Grab the entity detail, either from database or API.
143-
const { fetchEntityDetail, path } = getEntityService(entityConfig);
146+
const { fetchEntityDetail, path } = getEntityService(
147+
entityConfig,
148+
undefined
149+
);
144150
// When the entity detail is to be fetched from API, we only do so for the first tab.
145151
if (!entityConfig.staticLoad && params?.params?.[PARAMS_INDEX_TAB]) {
146152
return { props };
147153
}
148154
props.data = await fetchEntityDetail(
149155
(params as PageUrl).params[PARAMS_INDEX_UUID],
150156
path,
157+
undefined,
151158
undefined
152159
);
153160
}

explorer/pages/[entityListType]/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const getStaticProps: GetStaticProps<
9393
const { entities } = appConfig;
9494
const entityConfig = getEntityConfig(entities, entityListType);
9595
const { staticLoad } = entityConfig;
96-
const { fetchAllEntities } = getEntityService(entityConfig); // Determine the type of fetch, either from an API endpoint or a TSV.
96+
const { fetchAllEntities } = getEntityService(entityConfig, undefined); // Determine the type of fetch, either from an API endpoint or a TSV.
9797

9898
// Seed database.
9999
if (entityConfig && staticLoad) {

0 commit comments

Comments
 (0)