From 66edef6fdce83ccc0a6aefe5bd7898173e1826a1 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Tue, 2 Apr 2024 13:57:45 -0400 Subject: [PATCH] tranpose links only for core data --- wis2-gdc-management/wis2_gdc/registrar.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wis2-gdc-management/wis2_gdc/registrar.py b/wis2-gdc-management/wis2_gdc/registrar.py index c9f7813..502c744 100644 --- a/wis2-gdc-management/wis2_gdc/registrar.py +++ b/wis2-gdc-management/wis2_gdc/registrar.py @@ -133,8 +133,9 @@ def register(self, metadata: dict) -> None: self._process_record_metric( self.metadata['id'], f'{data_policy}_total', centre_id_labels) - LOGGER.info('Updating links') - self.update_record_links() + if self.metadata['properties']['wmo:dataPolicy'] == 'core': + LOGGER.info('Core data detected: updating links') + self.update_record_links() LOGGER.info('Publishing metadata to backend') self._publish()