Remove or update `add_qc_evaluations_to_docdb`

Open
#217 2 comments 0 reactions 1 assignee View on GitHub

@dougollerenshaw is already working on this.

Since Aug 21, 2026.

Assessment

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

Research direction

Start at src/aind_data_access_api/helpers/data_schema.py:187 and inspect callers or tests of add_qc_evaluations_to_docdb. Confirm how the project handles unsupported V1 metadata, then complete either removal or deprecation so V1-only behavior is no longer silently usable and V2 assets are not corrupted.

Written by the indexing model from the issue text.

Description

I was trying to figure out how to use the add_qc_evaluations_to_docdb function here:
https://github.com/AllenNeuralDynamics/aind-data-access-api/blob/d3c204f62a9e48e50cfc8e6ab789d33e7c846871/src/aind_data_access_api/helpers/data_schema.py#L187

I reached out to Dan, and he said this is only valid for V1 metadata. It sounds like this would corrupt a v2 asset if someone tried to use this against a v2 asset.

Since schema v1 is no longer supported, I don't think we should keep a function that is only valid for v1.

We should either remove this function or add a deprecation warning when it's used.

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.