methods with v1/2 restrictions should check version and give informative errors

Open
#216 8 comments 0 reactions 1 assignee View on GitHub

@jtyoung84 is already working on this.

Since Oct 5, 2026.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Locate the QC metadata helper methods and the corresponding MetadataDbClient endpoint entry point. Read how the client version is exposed and run the existing tests covering these methods, if present. Done means requests requiring v1 metadata are rejected before the request with an informative "not supported" error, whether called through helpers or MetadataDbClient.

Written by the indexing model from the issue text.

Description

@dbirman just clarified for me that some of the QC metadata helper methods only work for v1 metadata. This is currently only enforced very loosely by restricting the dependency version in the "helpers" dependency group.

However, the helpers methods are still available even without this group installed, and the same endpoint can be reached via MetadataDbClient directly in addition to the helpers methods - this code needs to explicitly check the client version before making such a request, and raise an informative "not supported" error.

Dominant language
Python
Stars
3
Forks
0
Avg merge
2d 14h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AllenNeuralDynamics/aind-data-access-api

All issues in AllenNeuralDynamics/aind-data-access-api

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.