Skip to content

Commit

Permalink
fix: resolve source URLs (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson authored Jan 24, 2025
1 parent 31dcf81 commit 77198a1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion client/src/components/Browse/Sources/BrowseSources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ export const BrowseSources = () => {
return (
<>
<Box className="source-item-name">
<a href={src.baseUrl}>{src.sourceDbName}</a>
<a href={src.siteUrl} target="_blank" rel="noopener">
{src.sourceDbName}
</a>
<Box className="source-versioning">
Version: {src.sourceDbVersion}
</Box>
Expand Down
8 changes: 4 additions & 4 deletions client/src/hooks/queries/useGetDruggableSources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const getDruggableSourcesQuery = gql`
nodes {
sourceDbName
sourceDbVersion
baseUrl
siteUrl
categoriesInSource {
name
geneCount
Expand Down Expand Up @@ -62,7 +62,7 @@ const getGeneSourcesQuery = gql`
nodes {
sourceDbName
sourceDbVersion
baseUrl
siteUrl
geneClaimsCount
geneClaimsInGroupsCount
citation
Expand Down Expand Up @@ -102,7 +102,7 @@ const getDrugSourcesQuery = gql`
nodes {
sourceDbName
sourceDbVersion
baseUrl
siteUrl
drugClaimsCount
drugClaimsInGroupsCount
citation
Expand Down Expand Up @@ -142,7 +142,7 @@ const getInteractionSourcesQuery = gql`
nodes {
sourceDbName
sourceDbVersion
baseUrl
siteUrl
drugClaimsCount
drugClaimsInGroupsCount
geneClaimsCount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ def create_new_source
{
source_db_name: source_db_name,
source_db_version: set_current_date_version,
base_url: 'https://ckb.genomenon.org/gene/show?geneId=',
site_url: 'https://ckb.genomenon.org',
base_url: 'https://ckb-core.genomenon.com/gene/show?geneId=',
site_url: 'https://ckb-core.genomenon.com',
citation: 'Patterson SE, Liu R, Statz CM, Durkin D, Lakshminarayana A, Mockus SM. The clinical trial landscape in oncology and connectivity of somatic mutational profiles to targeted therapies. Hum Genomics. 2016 Jan 16;10:4. doi: 10.1186/s40246-016-0061-7. PMID: 26772741; PMCID: PMC4715272.',
citation_short: 'Patterson SE, et al. The clinical trial landscape in oncology and connectivity of somatic mutational profiles to targeted therapies. Hum Genomics. 2016 Jan 16;10:4.',
pmid: '26772741',
pmcid: 'PMC4715272',
doi: '10.1186/s40246-016-0061-7',
full_name: 'The Clinical Knowledgebase',
full_name: 'The Cancer Knowledgebase',
license: License::CC_BY_NC_SA_4_0,
license_link: 'https://ckb.genomenon.org/about/index',
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def create_new_source
@source ||= Source.create(
{
base_url: 'https://www.carislifesciences.com/molecular-profiling-technology/',
site_url: 'http://www.carismolecularintelligence.com/',
site_url: 'https://www.carislifesciences.com/',
source_db_version: '2020-09-04', # using static file
source_db_name: source_db_name,
full_name: 'Caris Molecular Intelligence',
Expand Down

0 comments on commit 77198a1

Please sign in to comment.