Skip to content
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

[timepoint_list] Hiding Candidate Info and View Imaging Datasets buttons #6815

Conversation

CamilleBeau
Copy link
Contributor

Brief summary of changes

This PR hides the "Candidate Info" and "View Imaging Datasets" buttons along with the "Create time point" button when the necessary permissions are not present. This was done with the assumption that "View Imaging Datasets" should only be visible if the user has one of the four imaging browser permissions (please correct me if this assumption is wrong). Test plan documentation was edited accordingly. If the user has none of the relevant permissions, the "Actions:" label is also hidden.

  • Have you updated related documentation?

Testing instructions (if applicable)

  1. Access a same-site candidate as the user without any permissions using a link. There should be no "Actions:" label and none of the three buttons "Candidate Info", "View Imaging Datasets", or "Create time point".
  2. Access a same-site candidate as the user with only the data_entry permission. There should be an "Actions:" label as well as the two buttons "Candidate Info" and "Create time point".
  3. Access a same-site candidate as the user with any/all of the imaging browser permissions. There should be an "Actions:" label as well as the "View Imaging Datasets" button (and the other two buttons if the user still has data_entry permission).
  4. Make sure that clicking on any of the buttons brings you to the right place.

Link(s) to related issue(s)

@CamilleBeau CamilleBeau added Category: Bug PR or issue that aims to report or fix a bug Category: Documentation PR or issue that aims to improve the documentation (test plans, wiki, comments...) labels Jul 7, 2020
@driusan
Copy link
Collaborator

driusan commented Jul 7, 2020

@CamilleBeau I think this is supposed to go to the 23.0-release branch for a bugfix, the issue has the 23.0 tag on it..

@ridz1208 ridz1208 changed the base branch from master to 23.0-release July 7, 2020 18:49
@ridz1208 ridz1208 changed the base branch from 23.0-release to master July 7, 2020 18:49
@driusan driusan added the State: Needs rebase PR that needs to be rebased to proceed (conflicts, wrong branch...) label Jul 7, 2020
@CamilleBeau CamilleBeau changed the base branch from master to 23.0-release July 7, 2020 19:42
@CamilleBeau CamilleBeau changed the base branch from 23.0-release to master July 7, 2020 20:13
@CamilleBeau CamilleBeau changed the base branch from master to 23.0-release July 7, 2020 20:19
@CamilleBeau CamilleBeau force-pushed the 2020_07_06_timepoint_list_button_permissions branch from 42e6fdc to 6958c19 Compare July 7, 2020 20:31
@CamilleBeau CamilleBeau removed the State: Needs rebase PR that needs to be rebased to proceed (conflicts, wrong branch...) label Jul 7, 2020
@jesscall
Copy link
Contributor

Looks good!

With only data entry permission:
Screen Shot 2020-07-13 at 1 10 57 PM

With only imaging permission:
Screen Shot 2020-07-13 at 1 11 27 PM

With both:
Screen Shot 2020-07-13 at 1 11 48 PM

@jesscall jesscall added the Passed manual tests PR has been successfully tested by at least one peer label Jul 13, 2020
@driusan driusan merged commit 750c710 into aces:23.0-release Jul 15, 2020
@ridz1208 ridz1208 added this to the 23.0.2 milestone Jul 15, 2020
spell00 pushed a commit to spell00/Loris that referenced this pull request Aug 13, 2020
…ons (aces#6815)

This hides the "Candidate Info" and "View Imaging Datasets" buttons along with the "Create time point" button when the necessary permissions are not present. This was done with the assumption that "View Imaging Datasets" should only be visible if the user has one of the four imaging browser permissions (please correct me if this assumption is wrong). Test plan documentation was edited accordingly. If the user has none of the relevant permissions, the "Actions:" label is also hidden.

    Resolves aces#6673
AlexandraLivadas pushed a commit to AlexandraLivadas/Loris that referenced this pull request Jun 15, 2021
…ons (aces#6815)

This hides the "Candidate Info" and "View Imaging Datasets" buttons along with the "Create time point" button when the necessary permissions are not present. This was done with the assumption that "View Imaging Datasets" should only be visible if the user has one of the four imaging browser permissions (please correct me if this assumption is wrong). Test plan documentation was edited accordingly. If the user has none of the relevant permissions, the "Actions:" label is also hidden.

    Resolves aces#6673
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Bug PR or issue that aims to report or fix a bug Category: Documentation PR or issue that aims to improve the documentation (test plans, wiki, comments...) Passed manual tests PR has been successfully tested by at least one peer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[timepoint_list] Candidate Info and View Imaging Datasets buttons always appear
4 participants