CLOSER-Cohorts / archivist

Archivist is designed to be an easy to use editor that allows documention of questionnaires and data in DDI-Lifecycle
MIT License
18 stars 8 forks source link

Temp: Not sure export xml is working as it didn't import? #779

Closed HayleyMills closed 1 year ago

HayleyMills commented 1 year ago

Exported alspac_00_ayc as DOWNLOAD EXPORT and DOWNLOAD COMPLETE EXPORT. The complete export has loaded into staging alspac_00_ayc_test_all.txt https://closer-archivist-staging.herokuapp.com/admin/imports/689

but the other export has an error related to heaf? alspac_00_ayc_test.txt https://closer-archivist-staging.herokuapp.com/admin/imports/690

I can test with other instruments if needed?

simonreed commented 1 year ago

@HayleyMills It appears to be failing because category urn:ddi:uk.mrcleu-uos.heaf:heaf_13_base-ca-000490:1.0.0 already exists in the database for instrument https://closer-archivist-staging.herokuapp.com/instruments/heaf_13_base.

That seems like a valid error?

HayleyMills commented 1 year ago

That is a valid error, except the xml I'm importing is not heaf! As you can see from the .txt file above it is urn:ddi:uk.closer:alspac_00_ayc_test-ddi-000001:1.0.0

Is this an error with the staging import rather than the temp export?

HayleyMills commented 1 year ago

I've imported into temp for completeness. and it has a different error - https://closer-temporary.herokuapp.com/admin/imports/119

Again, the complete exported imported sucessfully.

simonreed commented 1 year ago

I'm confident this is an issue with the export rather than the import, as you point out it shouldn't have heaf categories in the export at all.

simonreed commented 1 year ago

Can we retest this. Now the non complete export no longer has references to another instrument.

HayleyMills commented 1 year ago

Yes it has imported sucessfully https://closer-archivist-staging.herokuapp.com/admin/imports/691