Skip to content

Phase 4: Fix known contract drift — file_size (#895), getCurrentUser, /datasets/:id parity (#864) #899

Closed
1 of 1 issue completed

Description

@neuromechanist

Part of epic #896. Applies the Phase 3 contract to the known live drift instances.

  • Catalog file_size ignores git-annex content: annexed datasets report ~36 B (should sum resolved/manifest sizes) #895 — catalog file_size ignores git-annex content → annexed datasets report ~36 B on public cards. Sum resolved/manifest size values instead of committed blobs; same fix for archive.size; backfill existing rows. Also normalize the 1.0.0 vs v1.0.0 version-prefix mismatch.
  • CLI getCurrentUser() (src/lib/api.ts) unwraps the wrong response level — /users/me returns {user, token}, not a flat UserInfo. Silently writes undefined over stored account config (auth status --refresh) and disables the upload ORCID auto-match. Add the missing wrapper test.
  • nemar-cli#864 — /datasets/:id parity: it drops participants/latest_version that list/search carry; the website hand-merges a workaround (backfillSearchHit). Serve the same shape.

Depends on Phase 3 (#896). Closes #895 (and #864 where applicable).

Priority: P1.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions