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

LIMS-871: Fix wrong number of dewar uses for staff #626

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

ndg63276
Copy link
Collaborator

Ticket: LIMS-871

  • Staff see wrong number of uses of each dewar on the Registered Dewars page, they see (actual number of uses) * (number of proposals the dewar belongs to)
  • Staff also get redirected to the max(proposal) when clicking on a registered dewar, and then only see the shipments for that dewar on that proposal

Testing:

  1. Log in as a staff member, go to proposal mx29907.
  2. Go to Registered Dewars page
  3. Search for DLS-MX-0873, it should show "# Uses" as around 19 (not 57)
  4. Click on DLS-MX-0873, proposal should stay as mx29907 (not switch to mx30951)
  5. The shipments section should show all 19 uses of this dewar, even those that belong to other proposals
  6. Repeat as a user from mx29907, the only difference should be in step 5, it should only show shipments from mx29907

@ndg63276 ndg63276 requested a review from MattPrit July 11, 2023 15:34
Copy link
Contributor

@MattPrit MattPrit left a comment

Choose a reason for hiding this comment

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

Looks good to me

@ndg63276 ndg63276 merged commit fcfbe4c into prerelease Jul 14, 2023
2 checks passed
@ndg63276 ndg63276 deleted the fix/LIMS-871/fix-wrong-number-of-dewar-uses branch July 14, 2023 11:22
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.

2 participants