phac-nml / irida-next

IRIDA Next
https://phac-nml.github.io/irida-next/
Apache License 2.0
8 stars 2 forks source link

[ENHC0010034] List samples within export dialog #648

Closed ksierks closed 1 week ago

ksierks commented 2 weeks ago

What does this PR do and why?

Added a scrollable list within the sample data export dialog to display the selected samples.

Screenshots or screen recordings

image image

How to set up and validate locally

  1. Open a rails console and run the following:
project = Project.first

11.upto(10000) do |i|
  sample = Samples::CreateService.new(
    project.creator, project,
    { name: "#{project.namespace.parent.name}/#{project.name} Sample #{i}",
      description: "This is a description for sample #{project.namespace.parent.name}/#{project.name} Sample #{i}." 
    }
  ).execute
end
  1. Login as admin and navigate to http://localhost:3000/bacillus/bacillus-anthracis/outbreak-2022/-/samples.
  2. Select all the samples within the table.
  3. Click the Create Export button.
  4. Verify the selected samples are displayed.

PR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

github-actions[bot] commented 1 week ago

Simplecov Report

Covered Threshold
92.44% 90%