Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

records: added external doi support #20

Merged
merged 4 commits into from
Oct 31, 2023

Conversation

alejandromumo
Copy link
Collaborator

closes #19

if doi:
metadata["doi"] = doi

# TODO implement a serializer to Zenodo
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a serializer to Zenodo .

# db.update_record_status(doi, "DEPOSIT_CREATED")

# TODO uncomment when MemoryError is fixed
# db.update_record_status(record_id, "DEPOSIT_CREATED")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interacting with the DB inside a celery task raises a MemoryError. This is important because there's no "status" for each record right now. We're blindly uploading the records.

This is bad because e.g. some records might already been uploaded and we do not want to upload them again.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened an issue (#21)

@alejandromumo
Copy link
Collaborator Author

  • Parsing multiple lines is not ideal, e.g. these multiple creators with affiliations that have a lot of commas failed.
  • README.md needs to be updated with execution instructions

@slint slint merged commit 1538774 into plazi:refactor Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants