-
Notifications
You must be signed in to change notification settings - Fork 4
Misc code cleanup; add vet to users and groups in tests #915
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 all commits
Commits
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 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -114,6 +114,7 @@ abstract public class AbstractEHRTest extends BaseWebDriverTest implements Advan | |
| protected static EHRUser NON_PATHOLOGY_REPORT = new EHRUser("[email protected]","EHR Non Pathology", EHRRole.FULL_UPDATER); | ||
| protected static EHRUser INVESTIGATOR = new EHRUser("[email protected]", "EHR Lab", EHRRole.REQUESTER); | ||
| protected static EHRUser INVESTIGATOR_PRINCIPAL = new EHRUser("[email protected]", "EHR Lab", EHRRole.DATA_ADMIN); | ||
| protected static EHRUser VET = new EHRUser("[email protected]", "EHR Vet", EHRRole.VETERINARIAN); | ||
|
|
||
| protected static String REQUESTER_USER = "[email protected]"; | ||
| protected static String REQUEST_ADMIN_USER ="[email protected]"; | ||
|
|
@@ -667,6 +668,7 @@ protected void createUsersandPermissions() | |
| _userHelper.createUser(NON_PATHOLOGY_REPORT.getEmail(), true, true); | ||
| _userHelper.createUser(INVESTIGATOR.getEmail(), true, true); | ||
| _userHelper.createUser(INVESTIGATOR_PRINCIPAL.getEmail(), true, true); | ||
| _userHelper.createUser(VET.getEmail(), true, true); | ||
| goToEHRFolder(); | ||
|
|
||
| _permissionsHelper.createPermissionsGroup(DATA_ADMIN.getGroup(), DATA_ADMIN.getEmail()); | ||
|
|
@@ -679,6 +681,7 @@ protected void createUsersandPermissions() | |
| _permissionsHelper.createPermissionsGroup(NON_PATHOLOGY_REPORT.getGroup(), NON_PATHOLOGY_REPORT.getEmail()); | ||
| _permissionsHelper.createPermissionsGroup(INVESTIGATOR.getGroup(), INVESTIGATOR.getEmail()); | ||
| _permissionsHelper.createPermissionsGroup(INVESTIGATOR_PRINCIPAL.getGroup(), INVESTIGATOR_PRINCIPAL.getEmail()); | ||
| _permissionsHelper.createPermissionsGroup(VET.getGroup(), VET.getEmail()); | ||
|
|
||
| if (!getContainerPath().equals(getProjectName())) | ||
| _permissionsHelper.uncheckInheritedPermissions(); | ||
|
|
@@ -690,6 +693,7 @@ protected void createUsersandPermissions() | |
| _permissionsHelper.setPermissions(FULL_SUBMITTER.getGroup(), "EHR Data Entry"); | ||
| _permissionsHelper.setPermissions(FULL_UPDATER.getGroup(), "EHR Data Entry"); | ||
| _permissionsHelper.setPermissions(REQUEST_ADMIN.getGroup(), "EHR Data Entry"); | ||
| _permissionsHelper.setPermissions(VET.getGroup(), "EHR Veterinarian"); | ||
|
|
||
| _permissionsHelper.setPermissions(REQUESTER.getGroup(), "EHR Requestor"); | ||
| _permissionsHelper.setPermissions(REQUEST_ADMIN.getGroup(), "EHR Request Admin"); | ||
|
|
@@ -1015,7 +1019,8 @@ public enum EHRRole | |
| BASIC_SUBMITTER ("EHR Basic Submitter"), | ||
| FULL_SUBMITTER ("EHR Full Submitter"), | ||
| FULL_UPDATER ("EHR Full Updater"), | ||
| REQUEST_ADMIN ("EHR Request Admin"); | ||
| REQUEST_ADMIN ("EHR Request Admin"), | ||
| VETERINARIAN("EHR Veterinarian"); | ||
|
|
||
| private final String name; | ||
|
|
||
|
|
||
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.
Not really sure what the original use case was here. I don't see anyone using vets that wouldn't be listed in EHR or having different permissions at project level.
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.
I assume I wrote that, but it's been too long to recall. I cannot think of any reason to differentiate between site groups and project-level groups. If no center is actually using a project-level group in this table then it's a moot point and probably doesnt need to exist.
Given how long ago this was, it's equally likely that some long-ago quirk the in SecurityManager API required this kind of check for some reason.