-
Notifications
You must be signed in to change notification settings - Fork 2
[DT-3888] Surface SO authorization model on indexed datasets #3014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
85d178f
[DT-3888] Surface SO authorization model on indexed datasets
kevinmarete 340633e
[DT-3888] Address review: no-DAC fallback, exception logging, OpenAPI…
kevinmarete 9a33245
[DT-3888] Address review: clarify Optional semantics, drop duplicate …
kevinmarete f23283f
[DT-3888] Address review: drop dead enum scaffolding, cast the bind p…
kevinmarete e5e7535
[DT-3888] Keep the dataset lookup inside the best-effort reindex try
kevinmarete e73f961
[DT-3888] Narrow toDatasetTerm overload, document the AVAILABLE filter
kevinmarete d2fbfda
[DT-3888] Extract the dataset half of each automation rule
kevinmarete c6c95ee
[DT-3888] Resolve every DAC rule in one query, surface instant approval
kevinmarete 941f8c4
[DT-3888] Reindex all datasets on any rule toggle, off the request th…
kevinmarete c1b6443
[DT-3888] Release the reindex guard when scheduling is rejected
kevinmarete 50545d4
[DT-3888] Drop the test-only toDatasetTerm overload, guard the reinde…
kevinmarete d65e59c
[DT-3888] Wait for the follow-up reindex pass instead of a fixed window
kevinmarete 0b4e3ac
[DT-3888] Release the reindex guard in a finally rather than catching…
kevinmarete 6d44739
[DT-3888] Ignore incomplete dac_rule_settings rows when resolving ena…
kevinmarete 0ac8ad2
[DT-3888] Scope the toggle reindex to the DAC, queue toggles FIFO
kevinmarete File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
21 changes: 21 additions & 0 deletions
21
src/main/java/org/broadinstitute/consent/http/enumeration/SoApprovalModel.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| package org.broadinstitute.consent.http.enumeration; | ||
|
|
||
| import com.google.gson.annotations.SerializedName; | ||
|
|
||
| /** | ||
| * Which Signing Official authorization model applies to a dataset, derived from whether the | ||
| * dataset's DAC has the REQUIRE_SO_DAR_APPROVAL automation rule enabled. Surfaced on indexed | ||
| * datasets so clients do not have to resolve DAC rules themselves. | ||
| * | ||
| * <p>The wire values are pinned with {@link SerializedName} so renaming a constant cannot silently | ||
| * change the published contract. | ||
| */ | ||
| public enum SoApprovalModel { | ||
| /** The SO named in each DAR must approve that request before the DAC reviews it. */ | ||
| @SerializedName("PER_DAR") | ||
| PER_DAR, | ||
|
|
||
| /** The SO authorizes researchers in advance; no per-request SO approval is needed. */ | ||
| @SerializedName("PRE_AUTHORIZED") | ||
| PRE_AUTHORIZED | ||
| } | ||
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.