Update broker endpoints#16
Merged
Merged
Conversation
emilylm
force-pushed
the
update-broker-endpoints
branch
from
April 22, 2026 12:03
b47675e to
9841cad
Compare
…s already exist in registry
…re usually used interchangeably
… remove backfilling
emilylm
force-pushed
the
update-broker-endpoints
branch
from
April 22, 2026 12:08
9841cad to
08cd108
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 Summary
This PR updates and restructures the Canopy broker API endpoints to support a cleaner separation between resolved accessions (what Canopy already knows) and required accessions (what a given entity depends on before it can be submitted). It also improves prerequisite propagation across the submission chain, adds better error handling for duplicate accession reporting, and normalises FK references for submission objects.
🔄 Type of Change
🧩 Key Changes
/claims/ready,/claims/entity,/validation, and/reports/{attempt_id}updated to align with the broker client's expected contractrequired_*accessions (what this entity needs to proceed), giving broker clients full dependency visibility before submission/broker/reports/{attempt_id}now only requiresattempt_idas a path parameter (removed body requirement)organism_partdefault — specimen samples now defaultorganism_parttoWHOLE ORGANISMinstead of leaving it unsetproject_idFK directly tosample_submissiontable (with backfill from the organism's genomic data project) for normalised lookups✅ Checklist
🔍 Review Notes
required_*prerequisite fields in claim responses are a contract change — broker clients will need to be updated to read these fields (this broker repo has been updated accordingly on the broker side)project_idon existingsample_submissionrows ~ -> have removed this complexity since we are not in prod yet.attempt_idnow path-only) is a breaking change for any existing callers📎 Related Issues / Tickets