-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add Dataverse RDM repository integration #19367
Open
KaiOnGitHub
wants to merge
64
commits into
galaxyproject:dev
Choose a base branch
from
KaiOnGitHub:dataverse-integration
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+718
−77
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dataverse RDM Repository Integration
This PR integrates Dataverse into Galaxy, mirroring the functionality developed for Invenio in PR #16381. It provides the same features tailored for Dataverse.
Terminology
The terminology used across RDM systems (like Dataverse and Invenio) and Galaxy can be confusing. The table below clarifies these differences. To reduce ambiguity, the
RDMFilesSource
base class (_rdm.py
) has been updated to use abstract terms. This description follows the abstract naming to avoid further confusion:Features
Current Limitations
Missing User Context
When downloading files from external draft containers in Dataverse, the
user_context
is not passed to the_realize_to
method of theBaseFilesSource
class. This causes authentication failures, preventing downloads. A similar issue arises when using the "Export datasets" feature to send files from Galaxy to an external draft container.Archiving and Reimporting Histories
While exporting a history as a ZIP file to Dataverse works, the archive is automatically extracted by Dataverse, with its contents stored individually. This creates an issue for Galaxy, as reimporting relies on the archive's existence. A workaround enables reimport by downloading the container as a ZIP if the original archive is missing. Note: exporting as
.tar.gz
is currently not working, as the Dataverse API returns an error (Failed to add file to dataset
). The recommended format is "RO-Crate" (ZIP) in advanced export options.For Users
You can now use all the features listed above, which behave the same as those in the Invenio integration. UI workflows are demonstrated in the linked PR.
For Reviewers
Manual Testing Requirements
(Optional) Create a Dataverse Instance:
You may use the official demo for testing, as data is periodically deleted. Alternatively, set up a local instance using the quickstart guide.
Create a Dataverse User and API Token:
Generate a token via "Your username" → "My Data" → "API token" or directly at the this URL: https://demo.dataverse.org/dataverseuser.xhtml?selectTab=apiTokenTab.
Configure the Connection:
Add this to your file_sources_conf.yml file and fill out with your data. Ideally you use a Vault to store the token but for testing purposes you could also directly provide it in the config:
Add user config:
Add a new entry in your user_preferences_extra_conf.yml to allow the user to store his required Dataverse settings:
The Add task-based history export tracking #14839 requires having Celery Task (with Redis backend) setup in your instance. So you will need something like this in your galaxy.yml:
Also ensure that redis is installed in your python environment with
pip install redis
How to test the changes?
License