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-219: Add All Samples To Queue #591

Merged

Conversation

ndg63276
Copy link
Collaborator

Ticket: LIMS-219

  • Add "Add All To Queue" button to GUI
  • Copy queueAllSamples function to queuePageSamples, make queueAllSamples use post request
  • Send in chunks of 500 as >1000 gives a PHP error
  • Allow post requests

Testing instructions:

  • Go to a container that is a plate, eg /containers/cid/263100
  • Click 'Prepare For Data Collection'
  • Click 'Add All To Queue'

Copy link
Contributor

@John-Holt-Tessella John-Holt-Tessella left a comment

Choose a reason for hiding this comment

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

I don't think this is the right approach.

e.preventDefault()

var self = this
var sids = _.map(this.subsamples.fullCollection.filter(function(ss) { return (!ss.get('QUEUECOMPLETED')) }), function(ss) {return ss.get('BLSUBSAMPLEID')})
Copy link
Contributor

Choose a reason for hiding this comment

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

Although I think this will work I think we should do this in the back end in one go. This avoids all sorts of problems. Let's create an end point which can either take a page or all and queue's everything and returns done. The backend should do a single update to the database

@John-Holt-Tessella John-Holt-Tessella merged commit 4180f2d into prerelease Aug 25, 2023
2 checks passed
@John-Holt-Tessella John-Holt-Tessella deleted the improvement/LIMS-219/add-all-samples-to-queue branch August 25, 2023 16:16
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