dandi / dandi/dandi-archive

Add migrated version metadata endpoint

Open
#565 9 comments 0 reactions 1 assignee Claimed by @jjnesbitt View on GitHub
enhancement metadata
Dominant language
Python
Stars
26
Forks
21
Avg merge
5d 6h
Merged PRs (30d)
14

Description

Implement https://github.com/dandi/dandi-api/blob/master/doc/design/draft-metadata-migration.md

Add an endpoint `GET api/dandisets/{dandiset_pk}/versions/{version}/migrated/` that attempts to migrate the version metadata to the current schemaVersion. If the metadata is already at the current schemaVersion, nothing is done. If the migration fails for whatever reason, simply return the current metadata.

The meditor will use this new endpoint to get the metadata for a version, ensuring that whenever a user saves the meditor content, the schemaVersion is as up to date as possible.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.