Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #274 from CSCfi/CSCMETAX-406-fix-data-catalogs-also
Browse files Browse the repository at this point in the history
CSCMETAX-406: [ADD] Update data catalog and production catalog schema…
  • Loading branch information
junsk1 authored Jun 5, 2018
2 parents ede68ca + f75dc24 commit 48b06a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
20 changes: 8 additions & 12 deletions src/metax_api/initialdata/datacatalogs.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@
}
}
],
"description": [
{
"en": "Datasets stored in the IDA service",
"fi": "IDA-palvelussa säilytettävät aineistot"
}
]
"description": {
"en": "Datasets stored in the IDA service",
"fi": "IDA-palvelussa säilytettävät aineistot"
}
},
"dataset_versioning": true,
"research_dataset_schema": "ida"
Expand Down Expand Up @@ -121,12 +119,10 @@
}
}
],
"description": [
{
"en": "Contains datasets that are not stored in the Finnish Fairdata services.",
"fi": "Sisältää esimerkiksi verkkoaineistot, rajapinnat ja muut muualla kuin fairdata-palveluissa säilytettävät aineistot."
}
]
"description": {
"en": "Contains datasets that are not stored in the Finnish Fairdata services.",
"fi": "Sisältää esimerkiksi verkkoaineistot, rajapinnat ja muut muualla kuin fairdata-palveluissa säilytettävät aineistot."
}
},
"dataset_versioning": false,
"research_dataset_schema": "att"
Expand Down
4 changes: 2 additions & 2 deletions src/metax_api/management/commands/loadinitialdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _load_data_catalogs(self):
continue

# create or update ended in error
self.stdout.write('Failed to process catalog: %s. Reason: %s' %
raise CommandError('Failed to process catalog: %s. Reason: %s' %
(dc['catalog_json']['identifier'], errors))

def _load_file_storages(self):
Expand Down Expand Up @@ -152,5 +152,5 @@ def _load_file_storages(self):
continue

# create or update ended in error
self.stdout.write('Failed to process storage: %s. Reason: %s' %
raise CommandError('Failed to process storage: %s. Reason: %s' %
(fs['file_storage_json']['identifier'], errors))

0 comments on commit 48b06a4

Please sign in to comment.