Skip to content

Digests for uningested Zarrs should be absent, not null #1329

@jwodder

Description

@jwodder

If a Zarr has not yet been ingested, then currently the .digest."dandi:dandi-zarr-checksum" field of its metadata as returned by the API will be null (example: https://api.dandiarchive.org/api/assets/18498fc4-7d55-4d3d-a19b-7ae837f6b630/ — EDIT: This was an example when I posted it). This is invalid, as the metadata schema requires that digest fields be strings.

CC @yarikoptic: This change will affect how uningested Zarrs are handled by backups2datalad; with the current code, a Zarr that is missing a digest (as opposed to one with a null digest) will be treated like a blob asset missing its SHA256 digest, causing all further assets in the Dandiset to not be backed up.

Metadata

Metadata

Labels

DXAffects developer experiencebugSomething isn't workingzarrIssues with Zarr hosting/processing/etc.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions