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

Handle URL re-submission in registry-submit-urls properly #265

Open
candleindark opened this issue Oct 27, 2023 · 0 comments
Open

Handle URL re-submission in registry-submit-urls properly #265

candleindark opened this issue Oct 27, 2023 · 0 comments
Assignees

Comments

@candleindark
Copy link
Collaborator

The registry-submit-urls command from Datalad-registry-client is not handling re-submission of a URL properly, as depicted below.

❯ datalad registry-submit-urls https://github.com/OpenNeuroDerivatives/ds000102-fmriprep.git
registry-submit-urls(ok): [Registered https://github.com/OpenNeuroDerivatives/ds000102-fmriprep.git]
❯ datalad registry-submit-urls https://github.com/OpenNeuroDerivatives/ds000102-fmriprep.git
registry-submit-urls(error): [Submitted URL: https://github.com/OpenNeuroDerivatives/ds000102-fmriprep.git; Server HTTP response code: 202; Message from server: {"url": "https://github.com/OpenNeuroDerivatives/ds000102-fmriprep.git", "id": 1, "ds_id": "d0f772c5-62a2-4eb7-83cb-3756ca293caf", "describe": "098754353", "annex_key_count": 0, "annexed_files_in_wt_count": 10783, "annexed_files_in_wt_size": 48179971791, "last_update": "2023-10-27T21:34:12.213747+00:00", "git_objects_kb": 323778, "processed": true, "metadata": [{"extractor_name": "metalad_core", "dataset_describe": "098754353", "dataset_version": "098754353d714db440d73e40a7e4125df35aa7b9", "extractor_version": "1", "extraction_parameter": {}, "extracted_metadata": {"@context": {"@vocab": "http://schema.org/", "datalad": "http://dx.datalad.org/"}, "@graph": [{"@id": "15aae706e802926a83b87c31a3175774", "@type": "agent", "name": "jbwexler", "email": "[email protected]"}, {"@id": "098754353d714db440d73e40a7e4125df35aa7b9", "identifier": "d0f772c5-62a2-4eb7-83cb-3756ca293caf", "@type": "Dataset", "version": "0-33-g098754353", "dateCreated": "2022-02-08T15:17:53-06:00", "dateModified": "2022-05-05T13:54:24-05:00", "hasContributor": {"@id": "15aae706e802926a83b87c31a3175774"}, "hasPart": [{"@id": "datalad:9f73dfcb430aabfefefbb5fec0d38ee8ce732514", "@type": "Dataset", "name": "code/containers", "identifier": "datalad:b02e63c2-62c1-11e9-82b0-52540040489c"}, {"@id": "datalad:5ef04983c7b8a3175d69f52e10d7924f2548f595", "@type": "Dataset", "name": "code/tacc-openneuro"}, {"@id": "datalad:fdc1ce49d524fc1e77e5b763f10acb02f403c581", "@type": "Dataset", "name": "sourcedata/raw", "identifier": "datalad:6b7efba2-8708-11e8-91e7-0242ac120022"}, {"@id": "datalad:3321e078a0bfab3c53f91d985e86d63c44400b78", "@type": "Dataset", "name": "sourcedata/templateflow", "identifier": "datalad:c79c47b6-d0fb-11e8-aa11-64006a8a730f"}], "distribution": [{"@id": "2e34904a-57b8-4a17-82ac-d7ec805c51bb"}, {"@id": "41902226-5855-4f33-806e-c3b829704c37"}, {"@id": "c8c63eb6-7018-41f4-8b3b-1783a205f763"}, {"name": "openneuro-derivatives", "@id": "datalad:5df21758-be7e-4700-9cdc-687267139b4a"}, {"name": "origin", "url": "https://github.com/OpenNeuroDerivatives/ds000102-fmriprep.git"}]}]}}, {"extractor_name": "bids_dataset", "dataset_describe": "098754353", "dataset_version": "098754353d714db440d73e40a7e4125df35aa7b9", "extractor_version": "0.0.1", "extraction_parameter": {}, "extracted_metadata": {"Name": "fMRIPrep - fMRI PREProcessing workflow", "BIDSVersion": "1.4.0", "DatasetType": "derivative", "GeneratedBy": [{"Name": "fMRIPrep", "Version": "21.0.2", "CodeURL": "https://github.com/nipreps/fmriprep/archive/21.0.2.tar.gz"}], "HowToAcknowledge": "Please cite our paper (https://doi.org/10.1038/s41592-018-0235-4), and include the generated citation boilerplate within the Methods section of the text.", "License": "PDDL", "description": null, "entities": {"suffix": ["description"], "extension": [".json"]}, "variables": {}, "@context": {"@id": "https://doi.org/10.5281/zenodo.4710751", "description": "ad-hoc vocabulary for the Brain Imaging Data Structure (BIDS) standard v1.6.0", "type": "http://purl.org/dc/dcam/VocabularyEncodingScheme"}}}]}]

This is possibly due to changes to the declare_dataset_url endpoint imposed by the #238 so that a resubmission of URL is now a request for a check to update the URL.

Make needed change to the Datalad-registry-client to handle the re-submission of URLs.

@candleindark candleindark self-assigned this Oct 27, 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

No branches or pull requests

1 participant