-
Notifications
You must be signed in to change notification settings - Fork 335
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
[ENG-6668] Add Contributor Page Improvements for Institutional Access #10825
Merged
brianjgeiger
merged 9 commits into
CenterForOpenScience:feature/institutional_access
from
Johnetordoff:institutional-access-insti-admin-validation
Jan 13, 2025
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4e507b1
validate curator's non-biblio status and display details on contrbut…
52d1a43
add is _curator in it's own migration file
d1a7412
refactor and split up permissions checks and improve `.save` conditio…
5c33833
add positive test cases for institutional access project curator vali…
756a53d
redo do contributor.mako logic to work for new more specific curator …
8ef8cd6
ensure insti admins are only labeled as such when they make insti req…
0da606a
revert last commit and fix data model by adding more booleans and ser…
2bbcf07
fix update contributor check
6c8eb0a
fix conditional for is_curator check in contributor management method
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
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
|
@@ -343,7 +343,6 @@ | |
aria-label='Curator Disabled Bibliographic User Checkbox' | ||
style='background-color: lightgray;' | ||
disabled | ||
checked | ||
> | ||
</div> | ||
</td> | ||
|
@@ -406,23 +405,23 @@ | |
<td> | ||
<div class="header" data-bind="visible: accessRequest.expanded() && $root.collapsed()"></div> | ||
<div class="td-content" data-bind="visible: !$root.collapsed() || accessRequest.expanded()"> | ||
<div data-bind="ifnot: accessRequest.user.is_institutional_admin"> | ||
<div data-bind="ifnot: accessRequest.user.has_institutional_request"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So here, for example, could be |
||
<input | ||
type="checkbox" class="biblio" | ||
data-bind="checked: visible" | ||
/> | ||
</div> | ||
<div data-bind="if: accessRequest.user.is_institutional_admin"> | ||
<div data-bind="if: accessRequest.user.has_institutional_request"> | ||
<input type="checkbox" aria-label="Curator Confirmation Checkbox" disabled> | ||
</div> | ||
</td> | ||
<td> | ||
<div class="header" data-bind="visible: accessRequest.expanded() && $root.collapsed()"></div> | ||
<div class="td-content" data-bind="visible: !$root.collapsed() || accessRequest.expanded()"> | ||
<div data-bind="ifnot: accessRequest.user.is_institutional_admin"> | ||
<div data-bind="ifnot: accessRequest.user.has_institutional_request"> | ||
<input type="checkbox" aria-label="Curator Confirmation Checkbox" disabled> | ||
</div> | ||
<div data-bind="if: accessRequest.user.is_institutional_admin"> | ||
<div data-bind="if: accessRequest.user.has_institutional_request"> | ||
<input type="checkbox" aria-label="Curator Confirmation Checkbox" disabled checked> | ||
</div> | ||
</div> | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to be sure, is there any place we can cache this info, such as a request object, rather than relying on this query, the same way we did with caching on the contributor object if it's a curator? Same reason as before, to avoid making this query for every contributor that gets serialized.