From ddb4cdbec32a9c844dc68f267459fa7c1d22d936 Mon Sep 17 00:00:00 2001 From: Dan Nita Date: Wed, 6 Nov 2024 12:52:52 +0000 Subject: [PATCH] GAT-5664 :: www to old --- src/resources/dataset/__mocks__/datasets.js | 4 ++-- src/resources/dataset/dataset.entity.js | 2 +- src/resources/project/__mocks__/projects.js | 2 +- src/resources/utilities/ga4gh.utils.js | 2 +- src/utils/schema.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/resources/dataset/__mocks__/datasets.js b/src/resources/dataset/__mocks__/datasets.js index c1e9f4ef0..4dacb5c01 100644 --- a/src/resources/dataset/__mocks__/datasets.js +++ b/src/resources/dataset/__mocks__/datasets.js @@ -205,7 +205,7 @@ export const v2DatasetsStub = [ pid: 'b67f0edd-fed2-4d68-a25f-d225759aa3b0', id: 'dfb21b3b-7fd9-40c4-892e-810edd6dfc25', version: '0.0.1', - identifier: 'https://web.www.healthdatagateway.org/dataset/dfb21b3b-7fd9-40c4-892e-810edd6dfc25', + identifier: 'https://web.old.healthdatagateway.org/dataset/dfb21b3b-7fd9-40c4-892e-810edd6dfc25', revisions: { '0.0.1': 'dfb21b3b-7fd9-40c4-892e-810edd6dfc25', latest: 'dfb21b3b-7fd9-40c4-892e-810edd6dfc25', @@ -252,7 +252,7 @@ export const v2DatasetsStub = [ pid: 'b67f0edd-fed2-4d68-a25f-d225759aa3b0', id: 'dfb21b3b-7fd9-40c4-892e-810edd6dfc25', version: '0.0.1', - identifier: 'https://web.www.healthdatagateway.org/dataset/dfb21b3b-7fd9-40c4-892e-810edd6dfc25', + identifier: 'https://web.old.healthdatagateway.org/dataset/dfb21b3b-7fd9-40c4-892e-810edd6dfc25', revisions: { '0.0.1': 'dfb21b3b-7fd9-40c4-892e-810edd6dfc25', latest: 'dfb21b3b-7fd9-40c4-892e-810edd6dfc25', diff --git a/src/resources/dataset/dataset.entity.js b/src/resources/dataset/dataset.entity.js index 2e00900d0..cd262fc9e 100644 --- a/src/resources/dataset/dataset.entity.js +++ b/src/resources/dataset/dataset.entity.js @@ -44,7 +44,7 @@ export default class DatasetClass extends Entity { const transformedObject = this.transformTo(transformer, { strict: false }); // Manually update identifier URL link - transformedObject.dataset.identifier = `https://web.www.healthdatagateway.org/dataset/${this.datasetid}`; + transformedObject.dataset.identifier = `https://web.old.healthdatagateway.org/dataset/${this.datasetid}`; // Append static schema details for v2 transformedObject.dataset['@schema'] = { diff --git a/src/resources/project/__mocks__/projects.js b/src/resources/project/__mocks__/projects.js index 910063305..8f06d30e4 100644 --- a/src/resources/project/__mocks__/projects.js +++ b/src/resources/project/__mocks__/projects.js @@ -186,7 +186,7 @@ export const projectsStub = [ "id": 7635028705590892, "type": "project", "name": "How can NCS healthcare data be connected with wastewater surveillance of COVID-19 in a privacy-preserving fashion to inform epidemiological models and democratise data access?", - "link": "https://web.www.healthdatagateway.org/project/7635028705590892", + "link": "https://web.old.healthdatagateway.org/project/7635028705590892", "description": "Wastewater-based epidemiology (WBE), i.e. the monitoring of public health using samples collected from sewerage systems, offers the unique opportunity to make healthcare data widely available without compromising the privacy of individuals: by their very nature, sewerage systems aggregate the signal from thousands of people, diminishing the ability to identify any one individual. In addition to ongoing work modelling the relationship between case numbers and wastewater data, this project will deliver five additional benefits:\n* provide data on COVID-19 related hospital admissions and symptoms as a complementary signal to refine WBE modelling with higher spatiotemporal resolution than is currently available.\n* develop standards for exchanging WBE data that support automatic validation, increasing our confidence in the data.\nprovide consistent methods to aggregate healthcare data to catchment areas across England, Scotland, and Wales.\n* develop sound, privacy-preserving aggregation methods for sensitive data in the context of WBE that could help address future public health concerns, e.g. influenza outbreaks or illicit drug consumption.\n* subject to privacy due diligence, generate data products that can be shared publicly, aligning with the government’s open data strategy and allowing a broader audience to participate in WBE.\n", "resultsInsights": "", "activeflag": "active", diff --git a/src/resources/utilities/ga4gh.utils.js b/src/resources/utilities/ga4gh.utils.js index 739c5bea8..0cbf507b1 100644 --- a/src/resources/utilities/ga4gh.utils.js +++ b/src/resources/utilities/ga4gh.utils.js @@ -69,7 +69,7 @@ const _buildGa4ghVisas = async user => { type: 'ControlledAccessGrants', asserted: dar.dateFinalStatus.getTime(), //date DAR was approved value: dar.pids.map(pid => { - return 'https://web.www.healthdatagateway.org/dataset/' + pid; + return 'https://web.old.healthdatagateway.org/dataset/' + pid; }), //URL to each dataset that they have been approved for source: 'https://www.healthdatagateway.org', by: 'dac', diff --git a/src/utils/schema.json b/src/utils/schema.json index 4db807584..470c9384b 100644 --- a/src/utils/schema.json +++ b/src/utils/schema.json @@ -13,7 +13,7 @@ "title": "Dataset identifier", "$comment": "http://purl.org/dc/terms/identifier", "examples": [ - ["226fb3f1-4471-400a-8c39-2b66d46a39b6", "https://web.www.healthdatagateway.org/dataset/226fb3f1-4471-400a-8c39-2b66d46a39b6"] + ["226fb3f1-4471-400a-8c39-2b66d46a39b6", "https://web.old.healthdatagateway.org/dataset/226fb3f1-4471-400a-8c39-2b66d46a39b6"] ], "description": "System dataset identifier", "anyOf": [