Skip to content

[DT-3848][risk=no] Record the product decisions for typed search (4/6) - #3349

Open
otchet-broad wants to merge 3 commits into
developfrom
otchet-dt-3848-open-question-examples
Open

otchet-broad wants to merge 3 commits into
developfrom
otchet-dt-3848-open-question-examples

Conversation

@otchet-broad

@otchet-broad otchet-broad commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Addresses

https://broadworkbench.atlassian.net/browse/DT-3848 (epic DT-4500)

Security risk: no — documentation only; no code or configuration changes.

Summary

Adds docs/plans/typed-search-examples-open-questions.md, the record of the product decisions on the four open questions of the typed search contract (#3342, section 10), decided on 2026-11-25 (DT-3848 comment). For each: the answer, what it changes from today, and an example for each case.

  • Q6, a study that is not public: today's rules, and the study, its datasets and its assets are hidden from researchers in each scope. It stays visible to the Chairperson, Data Submitter, Admin and Signing Official roles; to Members of the DAC of its datasets on the study page and in DAR review; to the study creator and custodians; to a dataset's creator for that dataset; and to the researcher of a submitted DAR that has the dataset. Examples for seven users across the library, the study page and dataset ids.
  • Q12: two asset filters may still match two different assets of one study, as today.
  • Q13: 404 for a target the user cannot read, the same as one that does not exist.
  • Q15: the ownership rule matches the data custodian email; the Submissions page and the Data Submissions dashboard total change.

Slice 5 turns each example into a JSON fixture (#3359, #3360).

This is slice 4 of 6 for DT-3848; merge after #3342. It links to the 2b (#3344), 3a (#3345) and 3c (#3347) documents.

Have you read CONTRIBUTING.md lately? If not, do that first.

  • Label PR with a Jira ticket number and include a link to the ticket
  • Label PR with a security risk modifier [no, low, medium, high]
  • PR describes scope of changes
  • Get a minimum of one thumbs worth of review, preferably two if enough team members are available
  • Get PO sign-off for all non-trivial UI or workflow changes
  • Verify all tests go green
  • Test this change deployed correctly and works on dev environment after deployment

🤖 Generated with Claude Code

… typed search (4/6)

Show the same requests with the behavior of today and with the change for Q6 (visibility
rule), Q12 (asset filters on one asset), Q13 (403 or 404) and Q15 (custodian ownership),
so product can decide and the contract tests can follow either answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@otchet-broad
otchet-broad requested a review from a team as a code owner November 25, 2026 18:08
@otchet-broad
otchet-broad requested review from fboulnois and kevinmarete and a balanced review from Copilot and removed request for a team November 25, 2026 18:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

The fixtures name the answers they show in their outcome field (A, B, or AB), not in their
file name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The open questions document becomes the decision record: each answer, what it changes from
today, and an example for each case. The paired examples of the rejected outcomes go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@otchet-broad otchet-broad changed the title [DT-3848][risk=no] Add the examples for the open product questions of typed search (4/6) [DT-3848][risk=no] Record the product decisions for typed search (4/6) Nov 25, 2026
@sonarqubecloud

Copy link
Copy Markdown

@rushtong rushtong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed with Claude and Codex.

1. [Medium] The submitted-DAR grant can be self-issued: docs/plans/typed-search-examples-open-questions.md:36 This is the defect of #3342, recorded as a decision. Line 112 gives "Dora" both rows through the submitted-DAR grant. Submission has no study visibility check (DataAccessRequestService.java:801), so a Researcher with no relation to the study can become "Dora" with one DAR.

Low Findings

  • "200 today" is true only for the Elasticsearch request: docs/plans/typed-search-examples-open-questions.md:24 The relational study read returns 404 for a non-public study to all but the creator, a custodian, or an Admin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants