Commit 7dd7944b authored by Siarhei Khaletski (EPAM)'s avatar Siarhei Khaletski (EPAM) 🚩
Browse files

Merge branch 'eds-dataset-validation-updates' into 'master'

Update to bypass validation check for SourceRecordID for Dataset

See merge request !17
parents 0b49bb3e b7711d89
Pipeline #53122 passed with stages
in 1 minute and 44 seconds
......@@ -90,6 +90,10 @@ class ManifestIntegrity:
for elem in manifest_section[data_type]:
if elem.get("id"):
if elem.get("data"):
if elem["data"].get("DatasetProperties"):
if elem["data"]["DatasetProperties"].get("SourceRecordID"):
return entities_ids
def _collect_manifest_entities_ids(self, manifest: dict):
......@@ -129,6 +133,10 @@ class ManifestIntegrity:
set(self._match_id_with_pattern(pattern, manifest_str))
if entity.get("data"):
if entity["data"].get("DatasetProperties"):
if entity["data"]["DatasetProperties"].get("SourceRecordID"):
logger.debug(f"References of {entity.get('id')}: {references}")
return references
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment