Repository navigation
[DT-3848][risk=no] Add the typed search fixture format and loader (5a/6) - #3350
Open
otchet-broad wants to merge 2 commits into
Open
otchet-broad wants to merge 2 commits into
otchet-broad wants to merge 2 commits into
Conversation
Add TypedSearchFixtures, which reads the fixtures in fixtures/typed-search and the key lists in registry/, and TypedSearchFixtureFormatTest, which checks the format of each fixture. Add the README that describes the format, the dataset key lists, and the facet metadata fixture. The request and response checks follow in 5b and 5c. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
otchet-broad
requested review from
fboulnois and
kevinmarete
and
a balanced review from Copilot
and removed request for
a team
November 25, 2026 22:00
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
This was referenced Nov 25, 2026
Open
All four product questions are decided, so the fixtures show the decided behaviour and need no outcome tag; each fixture stands alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
kevinmarete
approved these changes
Nov 26, 2026
rushtong
approved these changes
Nov 27, 2026
rushtong
left a comment
Contributor
There was a problem hiding this comment.
Reviewed with Claude and Codex, no medium or high findings 👍
Low Findings
- Status has no type check:
src/test/java/org/broadinstitute/consent/http/typedsearch/TypedSearchFixtureFormatTest.java:73asInt()reads"200"or200.7as 200. - Content after the first JSON value is ignored:
src/test/java/org/broadinstitute/consent/http/typedsearch/TypedSearchFixtures.java:52The mapper does not enableFAIL_ON_TRAILING_TOKENS. - Registry files can overwrite each other:
src/test/java/org/broadinstitute/consent/http/typedsearch/TypedSearchFixtures.java:62Two files with the sameviewreplace each other with no error, in directory order.
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.



Addresses
https://broadworkbench.atlassian.net/browse/DT-3848 (epic DT-4500)
Security risk: no — test files only; no application code or configuration changes.
Summary
Adds the format and the loader for the typed search contract fixtures (
src/test/resources/fixtures/typed-search/):TypedSearchFixturesreads the fixtures and the key lists inregistry/, which stand in for the server registry until DT-3849 builds it.TypedSearchFixtureFormatTestchecks the format of each fixture: its fields, the source document, the user's roles (UserRolesnames), and the response envelope: a status of the contract, an error body{ message, code }withcodeequal to the status (none for 429), and a textserverCheck, required for a 404.README.md: the fixture format, for consent (DT-3849) and duos-ui (DT-4512, which copies the files).registry/datasets.json: the dataset view key lists ([DT-3848][risk=no] Add the dataset view registry for typed search (2a/6) #3343) and the branded library keys (duos-uilibraryVersions.ts).5b (request check) and 5d (response check) are stacked on this PR; 5c (request self-test) is stacked on 5b. The fixtures follow in 5e to 5k, which need only this PR.
This is slice 5a of 6 for DT-3848. It does not depend on the documents merging first.
Have you read CONTRIBUTING.md lately? If not, do that first.
🤖 Generated with Claude Code