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

Sample details refactor #1370

Merged
merged 428 commits into from
Oct 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
428 commits
Select commit Hold shift + click to select a range
2b61502
Added missing classnames to sampleName causing project samples table,…
deepsidhu85 Mar 29, 2022
d2107de
Removed accidental typo
deepsidhu85 Mar 29, 2022
22c9e20
Added logging statement when getting user analysis output info. Updat…
deepsidhu85 Mar 29, 2022
d3e0984
Moved getting sample analyses into a new service
deepsidhu85 Mar 29, 2022
3cc32f0
Removed unused error catch
deepsidhu85 Mar 29, 2022
77a12d1
Created component to display state for a sample analysis
deepsidhu85 Mar 29, 2022
84b01a2
Removed unused imports, added javadoc, fixed column sizes for sample …
deepsidhu85 Mar 29, 2022
180c7bd
Fixed logic which would allow a user to set as default an assembly wh…
deepsidhu85 Mar 29, 2022
3d416ef
Updated logic to get user from principal to fix broken test
deepsidhu85 Mar 29, 2022
6377251
Removed unused import
deepsidhu85 Mar 29, 2022
7d57284
Merged in metadata field security and fixed merge conflicts
deepsidhu85 Mar 29, 2022
77ab1f4
Fixed issue with projectmetadatarole being set to null when a new ro…
deepsidhu85 Mar 29, 2022
432f926
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Mar 29, 2022
230bec1
Merged sample analyses and fixed merge conflicts
deepsidhu85 Mar 29, 2022
1441b74
Removed padding around button
deepsidhu85 Mar 30, 2022
02c490f
Removed unused variables and removed border from sample analyses table
deepsidhu85 Mar 30, 2022
6ca5e81
Merge pull request #1207 from phac-nml/sample_details_refactor/_sampl…
joshsadam Mar 30, 2022
d78682a
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Mar 30, 2022
088a287
Updated fastqc results to be displayed in a modal when a file is clic…
deepsidhu85 Apr 1, 2022
cb3fd64
Added constants, added missing @requestparam for projectId, reverted …
deepsidhu85 Apr 5, 2022
22555b4
Merge pull request #1227 from deepsidhu85/sample_details_refactor/_me…
joshsadam Apr 5, 2022
6cd7a24
merged metadata-field-security and fixed merge conflicts
deepsidhu85 Apr 6, 2022
f71f28a
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Apr 6, 2022
c1d7b8e
Merged metadata-field-security and fixed merge conflicts
deepsidhu85 Apr 21, 2022
217d9a4
Merged sample-details-refactor and fixed merge conflicts
deepsidhu85 Apr 21, 2022
da7e918
Merge branch 'metadata-field-security' into sample-details-refactor
deepsidhu85 Apr 27, 2022
6176385
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Apr 27, 2022
f8b8774
Updated modal styling, refactored sample files page to only have a cl…
deepsidhu85 Apr 27, 2022
558c30c
Updated to allow setting of a default genome assembly object for a sa…
deepsidhu85 Apr 28, 2022
b5ea74b
Merged in metadata field security and fixed merge conflicts
deepsidhu85 Apr 30, 2022
29bb71d
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Apr 30, 2022
0caca20
Merge branch 'sample_details_refactor/_file_qc' into sample_details_r…
deepsidhu85 Apr 30, 2022
8104244
Updated api calls to invalidate tags
deepsidhu85 May 3, 2022
2c7203f
Added invalidatetags to api call for updating default sequencing obje…
deepsidhu85 May 3, 2022
5c074f3
Updated modal styling, added pagination options for overrepresented s…
deepsidhu85 May 3, 2022
c86f27d
Merged sample details refactor file qc branch and fixed merge conflicts
deepsidhu85 May 3, 2022
6fb46db
Merge branch 'development' into sample-details-refactor
deepsidhu85 May 3, 2022
3ffd75b
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 May 3, 2022
e477707
Merge branch 'sample_details_refactor/_file_qc' into sample_details_r…
deepsidhu85 May 3, 2022
4efc89d
Added translation, removed unused variables
deepsidhu85 May 3, 2022
f3e7419
Updated tests
deepsidhu85 May 5, 2022
ef765b0
Fixed bug which caused multiple modals to be launched when launching …
deepsidhu85 May 5, 2022
f0fd586
Added tests for fastqc modal and removed tests for sequencefiles page…
deepsidhu85 May 5, 2022
fa78e01
Ran prettier on files
deepsidhu85 May 5, 2022
adc3c26
Removed files no longer required
deepsidhu85 May 6, 2022
5359b0b
Removed unused imports, added missing javadoc
deepsidhu85 May 9, 2022
8955197
Added missing @param and @throws tags
deepsidhu85 May 9, 2022
e9284f9
Merged dev and fixed merge conflicts
deepsidhu85 May 25, 2022
7380b7f
Merged sample-details-refactor and fixed merge conflicts
deepsidhu85 May 26, 2022
1b26fa5
Merged sample details refactor file qc and fixed merge conflicts
deepsidhu85 May 26, 2022
a829430
Removed unused imports and fixed missing javadocs
deepsidhu85 May 26, 2022
9a37815
Fixed broken tests
deepsidhu85 May 26, 2022
c9d32fb
Attempting to get tests to run
deepsidhu85 May 26, 2022
fba144d
Merge branch 'sample_details_refactor/_file_qc' into sample_details_r…
deepsidhu85 May 26, 2022
8fce3a5
Started updating sample detail viewer to have add to cart / remove fr…
deepsidhu85 May 27, 2022
b4c49c5
Merge branch 'development' into sample-details-refactor
deepsidhu85 May 30, 2022
f57c2e8
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 May 30, 2022
c7697ea
Merge branch 'sample_details_refactor/_file_qc' into sample_details_r…
deepsidhu85 May 30, 2022
9cab27d
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 May 30, 2022
201617a
Updated to use redux store to manage state of sample ids in the cart …
deepsidhu85 May 30, 2022
1255c4e
Updated sample detail viewer to display tag using the project color, …
deepsidhu85 May 31, 2022
51ce268
Added a displayActions parameter since there are some places such as …
deepsidhu85 May 31, 2022
6f5fa35
Removed unused imports and fixed javadocs
deepsidhu85 May 31, 2022
542038d
Set displayActions to false when launching the sample details viewer …
deepsidhu85 May 31, 2022
3000fe9
Fixed broken tests
deepsidhu85 Jun 1, 2022
09054a2
Added UI testing for add/remove button on sample detail viewer
deepsidhu85 Jun 1, 2022
bdf9f86
Added uicartservice test for getting sample ids of samples currently …
deepsidhu85 Jun 1, 2022
2dfbb2a
Updating files tab to use a components that can be used in other plac…
deepsidhu85 Jun 3, 2022
f9bfbc7
Updated to make functions to download/remove/set as default to work w…
deepsidhu85 Jun 6, 2022
4037f80
Updated SequenceObjectListItem to not include code for creating conca…
deepsidhu85 Jun 7, 2022
3de65ff
Merged dev and fixed merge conflicts
deepsidhu85 Jun 7, 2022
a6549db
Updated sample detail viewer to use typescript
deepsidhu85 Jun 7, 2022
063435e
Merged sample details refactor and fixed merge conflicts
deepsidhu85 Jun 7, 2022
577fdb5
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Jun 7, 2022
649fc88
merged sample details refactor and fixed merge conflict
deepsidhu85 Jun 7, 2022
b8501c7
Merge branch 'sample_details_refactor/_file_qc' into sample_details_r…
deepsidhu85 Jun 7, 2022
9521e1b
Updated to display file processing tag
deepsidhu85 Jun 7, 2022
d23021e
Removed unused translations and updated translation keys. Fixed dom e…
deepsidhu85 Jun 7, 2022
975d588
Added jsdoc
deepsidhu85 Jun 7, 2022
55babc3
Removed unused imports and fixed javadocs. Updated tests
deepsidhu85 Jun 7, 2022
3c3a425
Updated component to only list the file coverage/processing tag per s…
deepsidhu85 Jun 8, 2022
85def35
Ran prettier
deepsidhu85 Jun 8, 2022
9d0234f
Updated function to destructure object that has the file info in it
deepsidhu85 Jun 8, 2022
cd4ccf0
Added missing classnames which were causing tests to fail
deepsidhu85 Jun 8, 2022
c231904
Added translation and updated translation key
deepsidhu85 Jun 8, 2022
ad12c75
Merge branch 'development' into sample-details-refactor
deepsidhu85 Jun 9, 2022
c7a2bf1
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Jun 9, 2022
842d210
Removed unnecessary useeffect
deepsidhu85 Jun 9, 2022
e762889
Added types to parameters
deepsidhu85 Jun 9, 2022
7d63b0a
Moved jsdoc to above the actual function
deepsidhu85 Jun 9, 2022
12a99bb
Merge pull request #1295 from deepsidhu85/sample_details_refactor/_ad…
joshsadam Jun 9, 2022
0c2843c
Removed parameter not required
deepsidhu85 Jun 9, 2022
ea076b8
Merged base branch and fixed merge conflict
deepsidhu85 Jun 9, 2022
0092731
Merged base branch and fixed merge conflicts
deepsidhu85 Jun 9, 2022
8bbd463
Merge branch 'sample_details_refactor/_file_qc' into sample_details_r…
deepsidhu85 Jun 9, 2022
8b55a96
Refactored samplefilelist into separate components for sequencing obj…
deepsidhu85 Jun 9, 2022
4ad5b92
Removed use of icons.jsx and updated to use icons directly from ant d…
deepsidhu85 Jun 9, 2022
97f2bcf
Fixed spacing in sequencingobjectlist component
deepsidhu85 Jun 9, 2022
d153add
Updated file processing finished message
deepsidhu85 Jun 9, 2022
ef96618
Added genome assembly download button into the starting array instead…
deepsidhu85 Jun 9, 2022
5f287d0
Removed unnecessary logic
deepsidhu85 Jun 10, 2022
d9ac954
Updated list items to use a border from the borders.js file. Added a …
deepsidhu85 Jun 10, 2022
ba9258d
Fixed multiple calls to server to get sample-ids when a sample is rem…
deepsidhu85 Jun 10, 2022
66af80a
Moved action buttons to end of row and moved the qc status and the fi…
deepsidhu85 Jun 10, 2022
5195de6
added missing spin argument for icon
deepsidhu85 Jun 10, 2022
17d2aff
Updated required-data sql for sequencing objects to set processing state
deepsidhu85 Jun 10, 2022
73c36cb
Fixed multiple calls being made to server to get sample ids
deepsidhu85 Jun 14, 2022
3b1773b
Added keys to actions
deepsidhu85 Jun 14, 2022
cde37fa
Merge pull request #1308 from deepsidhu85/sample_details_refactor/_up…
joshsadam Jun 14, 2022
a9012ba
Merged sample-details-refactor and fixed merge conflicts
deepsidhu85 Jun 14, 2022
9ba8dd9
Updated to launch fastqc modal when a file name is clicked on in the …
deepsidhu85 Jun 21, 2022
f185151
Updated to allow setting of default single end sequencing object for …
deepsidhu85 Jun 22, 2022
099fc76
Simplified logic
deepsidhu85 Jun 22, 2022
22be3ad
Removed use of colors.js in FastQC component and updated to use css v…
deepsidhu85 Jun 22, 2022
d994605
Merged dev and fixed merge conflict
deepsidhu85 Jun 23, 2022
bd501a7
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Jun 23, 2022
1bf88e5
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Jun 23, 2022
f3a3054
Merged sample_details_refactor file qc branch and fixed merge conflicts.
deepsidhu85 Jun 23, 2022
2200b67
Removed empty fragment not required. Moved translation consts to top …
deepsidhu85 Jun 23, 2022
33f04fe
Merge pull request #1261 from deepsidhu85/sample_details_refactor/_fi…
joshsadam Jun 23, 2022
e4a0b7e
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Jun 27, 2022
ab4aaa4
Moved changeset into correct directory
deepsidhu85 Jun 27, 2022
fc9e4cb
Removed duplicate const
deepsidhu85 Jun 27, 2022
bf35943
Updated translations and updated test
deepsidhu85 Jun 28, 2022
1a9c7e8
Merged dev and fixed merge conflicts
deepsidhu85 Jun 28, 2022
47c8693
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Jun 28, 2022
243401a
Added assertions for set as default / default tag
deepsidhu85 Jun 28, 2022
3dc4951
Uncommented assertions
deepsidhu85 Jun 29, 2022
164b657
Added translations
deepsidhu85 Jun 29, 2022
e1eb233
Merge branch 'development' into sample-details-refactor
deepsidhu85 Jul 4, 2022
05bc71d
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Jul 4, 2022
aabc9d4
Added blue to css root and updated Default tags to use one of the blu…
deepsidhu85 Jul 4, 2022
5e26af3
Merge pull request #1327 from deepsidhu85/sample_details_refactor/_de…
joshsadam Jul 4, 2022
b95a4b6
Started conversion of files to typescript
deepsidhu85 Jul 6, 2022
04ca833
Updated some of the component variables to use typescript
deepsidhu85 Jul 9, 2022
68daed3
Changed components to typescript which are used by the sample detail …
deepsidhu85 Jul 12, 2022
42467da
Added more typescript types
deepsidhu85 Jul 19, 2022
5902ad5
Updated AddNewMetadata component typing and added translation
deepsidhu85 Aug 3, 2022
fa8941d
Updated EditMetadata and GenomeAssemblyList component typing
deepsidhu85 Aug 3, 2022
1288b77
Updated SampleAnalyses component typing
deepsidhu85 Aug 3, 2022
39fc2a8
Updated to use typing interface from irida index file
deepsidhu85 Aug 3, 2022
ab2f6d3
Updated component typing for SampleAnalysesState, SampleDetails, and …
deepsidhu85 Aug 3, 2022
0e68d6c
Updated SampleFileList component typing
deepsidhu85 Aug 3, 2022
e4de3cc
Updated remaining components typing
deepsidhu85 Aug 5, 2022
eb010bb
Added missing types, updated typing, removed logging statement, remov…
deepsidhu85 Aug 8, 2022
445c58c
Updated types, updated to use typed dispatch and selector, updated to…
deepsidhu85 Aug 11, 2022
409e17b
Removed props not required
deepsidhu85 Aug 11, 2022
f35ff6a
Updated logic to set state for updated sample details
deepsidhu85 Aug 11, 2022
cb874d9
Added missing type checking, updated to use get/post from requests fi…
deepsidhu85 Aug 15, 2022
b04c879
Added more interfaces for typing, fixed issue where default assembly …
deepsidhu85 Aug 16, 2022
96d142d
Updated typing for options and props in DragUpload component.
deepsidhu85 Aug 16, 2022
49c941d
Reverted to type Record<string, unknown> for upload options
deepsidhu85 Aug 16, 2022
ed32620
Added interface for typing of upload options
deepsidhu85 Aug 16, 2022
482e7c8
Fixed fastqc modal not launching for forward sequence files
deepsidhu85 Aug 16, 2022
05ccf31
Fixed broken test
deepsidhu85 Aug 16, 2022
8fed422
Fixed test for filtering analyses within a sample
deepsidhu85 Aug 16, 2022
116bc69
Fixed filtering issue
deepsidhu85 Aug 16, 2022
84d8713
Removed unused code, updated sequence-files.ts to use requests file f…
deepsidhu85 Aug 16, 2022
9ed1219
Updated typing and added missing types
deepsidhu85 Aug 17, 2022
529f2d5
Added typing to cart.ts
deepsidhu85 Aug 17, 2022
98f244f
Merged dev and fixed merge conflicts
deepsidhu85 Aug 18, 2022
9c916c5
Merged sample-details-refactor and fixed merge conflicts
deepsidhu85 Aug 18, 2022
4001cf9
Fixed issue with default genome assembly not defaulting to first asse…
deepsidhu85 Aug 18, 2022
0120ce4
Added missing logic to back end to update default genome assembly to …
deepsidhu85 Aug 18, 2022
1398b80
Cleaned up imports and renamed interface
deepsidhu85 Aug 31, 2022
054bb77
Merge pull request #1351 from deepsidhu85/sample_details_refactor/_ty…
joshsadam Aug 31, 2022
209abb5
Merged dev and fixed merge conflict
deepsidhu85 Sep 1, 2022
3db3ef6
Merged sample-details-refactor and updated logic for setting of defau…
deepsidhu85 Sep 1, 2022
6d5ba05
Updated translations
deepsidhu85 Sep 1, 2022
62ed860
Updated logic to set default sequencing object for a sample to null i…
deepsidhu85 Sep 2, 2022
a57ce25
Updated logic to set the default sequencing object to null in the red…
deepsidhu85 Sep 2, 2022
cb4134a
Added list item to display automated assembly link and status to pair…
deepsidhu85 Sep 2, 2022
a15f1ae
Updated sequencing run file details to launch fastqc modal when file …
deepsidhu85 Sep 6, 2022
065784c
Fixed logic to get updatedsequencingobjects when an automatedassembly…
deepsidhu85 Sep 6, 2022
505268b
Removed unneccessary div, refactored logic for checking if a sequence…
deepsidhu85 Sep 7, 2022
98092a7
Updated logic for checking if a sample has a default sequencing objec…
deepsidhu85 Sep 7, 2022
b65570a
Simplified logic
deepsidhu85 Sep 7, 2022
7ed29e8
Removed logging statement
deepsidhu85 Sep 7, 2022
5f46971
Merge pull request #1326 from deepsidhu85/sample_details_refactor/_si…
joshsadam Sep 8, 2022
e69a4be
Merged sample details refactor and fixed merge conflict
deepsidhu85 Sep 8, 2022
f041a75
Fixed UI bug on cart page where if a sample was removed using the sam…
deepsidhu85 Sep 8, 2022
812d597
Updated for testing closing the sample details viewer when a sample i…
deepsidhu85 Sep 8, 2022
489169f
Updated which fast5 file extensions are supported
deepsidhu85 Sep 8, 2022
ac4048a
First doc commit
deepsidhu85 Sep 14, 2022
26010b3
Added functionality to cancel axios requests for uploading files
deepsidhu85 Sep 14, 2022
aabeba2
Added typescript type to usestate, updated fast5 file list filtering,…
deepsidhu85 Sep 14, 2022
2f20430
Refactored code into functions
deepsidhu85 Sep 14, 2022
de3fa34
Fixed display of alert
deepsidhu85 Sep 14, 2022
f2e0650
Updated so sampledetailviewer needs to be closed by the user clicking…
deepsidhu85 Sep 14, 2022
6c13514
Fixed spacing for cancel upload button
deepsidhu85 Sep 14, 2022
dc2ef43
Updated user docs with new screenshots
deepsidhu85 Sep 14, 2022
a32594e
Updated text to reflect changes made to sample details
deepsidhu85 Sep 15, 2022
c8a849e
Added sample detail viewer metadata tab docs
deepsidhu85 Sep 15, 2022
fbdd2f9
Changed typescript types for analysissubmission created and modified …
deepsidhu85 Sep 16, 2022
85b9090
Changed fetching of files to an async thunk, made abortController a c…
deepsidhu85 Sep 16, 2022
bc690dd
Updated so the the dropdown menu doesn't close when the remove button…
deepsidhu85 Sep 17, 2022
4774d91
Updated to display correct icon depending on state
deepsidhu85 Sep 19, 2022
650f08d
Updated screenshots with changes to file actions
deepsidhu85 Sep 19, 2022
288f7a6
Updated to use DropdownProps from ant design, removed unused menu imp…
deepsidhu85 Sep 20, 2022
406e2e0
Updated component call param name
deepsidhu85 Sep 20, 2022
e43c8b4
Merge pull request #1361 from deepsidhu85/sample_details_refactor/_ad…
joshsadam Sep 20, 2022
7163755
Merged sample-details-refactor and fixed merge conflict
deepsidhu85 Sep 20, 2022
da0cfd2
Added dispatch to dependency list
deepsidhu85 Sep 20, 2022
4b2c50e
Merge pull request #1365 from deepsidhu85/sample_details_refactor/_ca…
joshsadam Sep 20, 2022
66712bb
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Sep 20, 2022
ae10fa5
Merged dev and fixed merge conflicts
deepsidhu85 Sep 20, 2022
adcd235
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Sep 20, 2022
76f46f6
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Sep 20, 2022
1fa0b9b
Updated xpath
deepsidhu85 Sep 21, 2022
2fb2029
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Sep 21, 2022
21a05c9
Updated sample detail viewer to only modify metadata for the specific…
deepsidhu85 Sep 21, 2022
482f924
Fixed display issue with long metadata values
deepsidhu85 Sep 21, 2022
cdbc9a8
Removed span not required:
deepsidhu85 Sep 21, 2022
0ea9297
Fixed broken tests. Updated logic
deepsidhu85 Sep 21, 2022
108c0e7
Updated logic for metadata and reverted changes to metadata permissions
deepsidhu85 Sep 22, 2022
977adda
Updated heights in sample detail viewer
deepsidhu85 Sep 22, 2022
dc3d449
Styling changes
deepsidhu85 Sep 22, 2022
d9aff5b
Removed description from top of sample detail viewer as its viewable …
deepsidhu85 Sep 22, 2022
bfb8a5b
chore: Small layout fixes
joshsadam Sep 23, 2022
8863e96
refactor: Fixed layout issues
joshsadam Sep 26, 2022
e703365
Merge pull request #1371 from deepsidhu85/sample_details_refactor/_me…
ericenns Sep 27, 2022
bc45640
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
joshsadam Sep 27, 2022
0d10436
fix: Fixed issue where sample was not updating incart properly
joshsadam Sep 27, 2022
77c61b9
fix: Updating some tests
joshsadam Sep 27, 2022
3d3dbf5
Updated ContentLoading props to be optional, fixed scrollbar down arr…
deepsidhu85 Sep 27, 2022
c127404
Merge branch 'sample_details_refactor/_metadata-fixes-layout' of gith…
deepsidhu85 Sep 27, 2022
65d27a5
Removed file accidentally added to branch
deepsidhu85 Sep 27, 2022
103e4d2
Fixed sample detail viewer -> sample analyses tab tests
deepsidhu85 Sep 27, 2022
e971cd9
Fixed heights
deepsidhu85 Sep 27, 2022
ae0714f
Modified height so border displays
deepsidhu85 Sep 27, 2022
42297e4
Merge pull request #1372 from phac-nml/sample_details_refactor/_metad…
ericenns Sep 27, 2022
9b7b47e
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Sep 27, 2022
c3a4e0b
Merged dev and fixed merge conflicts
deepsidhu85 Sep 28, 2022
69f4f89
Updated to use Duration.ofSeconds
deepsidhu85 Sep 28, 2022
4f8a44a
Merge branch 'development' into sample-details-refactor
deepsidhu85 Sep 28, 2022
32608f8
Updated db file to include email pipeline result field for analysis s…
deepsidhu85 Sep 28, 2022
2b4e76b
Increased size of reduction for height of sample files by 1 pixel to …
deepsidhu85 Sep 28, 2022
d665008
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Sep 28, 2022
f0a1f42
Updated screenshots. Updated SampleInfo list item size
deepsidhu85 Sep 28, 2022
0423212
Merge branch 'sample_details_refactor/_documentation' into sample_det…
deepsidhu85 Sep 28, 2022
e2c9ff9
Removed files and translations no longer required
deepsidhu85 Sep 28, 2022
afe221f
Deleted test files no longer required
deepsidhu85 Sep 28, 2022
08fa847
Removed translations and js/jsx files no longer required
deepsidhu85 Sep 29, 2022
44f2012
Updated test db xml file and readded missing translation keys
deepsidhu85 Sep 29, 2022
62298e1
Merge pull request #1366 from deepsidhu85/sample_details_refactor/_do…
joshsadam Sep 29, 2022
0a44362
Merge branch 'sample-details-refactor' into sample_details_refactor/_…
deepsidhu85 Sep 29, 2022
6988fec
Removed unused files and updated required data sql file
deepsidhu85 Oct 4, 2022
d614c4d
Merge pull request #1374 from deepsidhu85/sample_details_refactor/_cl…
joshsadam Oct 4, 2022
5125f04
Updated CHANGELOG
deepsidhu85 Oct 4, 2022
508957a
Merge branch 'development' into sample-details-refactor
deepsidhu85 Oct 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* [Developer]: Fix issue where large downloads silent failed due to async request timeout. See [PR 1368](https://github.com/phac-nml/irida/pull/1368)
* [Developer]: Update to Spring Boot 2.7.3 and update various other dependencies. See [PR 1369](https://github.com/phac-nml/irida/pull/1369)
* [Developer]: Fixed issue with disabled user accounts requesting a password reset. See [PR 1373](https://github.com/phac-nml/irida/pull/1373)
* [Developer/UI]: Updated sample details view to use Ant Design and moved into a modal which can be launched from anywhere the sample name is listed. See [PR 1370](https://github.com/phac-nml/irida/pull/1370)

## [22.05.5] - 2022/06/28
* [UI]: Fixed bug preventing export of project samples table due to invalid url. [PR 1331](https://github.com/phac-nml/irida/pull/1331)
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
You can download a sequence file by clicking on the <span class="fa fa-fw fa-download"></span> icon, on the right-hand side of the row for the sequence file.
You can download a sequence file by clicking on the **Download** button, on the right-hand side of the row for the sequence file.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ To view details about an individual sample, start by [viewing the samples in a p

![Sample name button.]({{ site.baseurl }}/images/tutorials/common/samples/sample-name-button.png)

The sample details page shows all of the details that are currently known about a sample:
The sample details viewer shows all of the details that are currently known about a sample:

![Sample details page.]({{ site.baseurl }}/images/tutorials/common/samples/sample-details.png)
![Sample details viewer.]({{ site.baseurl }}/images/tutorials/common/samples/sample-detail-viewer.png)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Start by [viewing the details of an individual sample]({{ site.baseurl }}/user/user/samples/#viewing-individual-sample-details). On the sample details page, click on the "Files" tab, just above the sample details panel:

![Sample details file tab.]({{ site.baseurl }}/images/tutorials/common/samples/sample-details-file-tab.png)
![Sample details file tab.]({{ site.baseurl }}/images/tutorials/common/samples/sample-detail-viewer-files-tab.png)

Sequence files may have been uploaded as paired-end files or as single-end files, depending on how the isolate was sequenced.

Expand Down
10 changes: 4 additions & 6 deletions doc/_includes/tutorials/common/uploading-sample-files.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
### Sequence Files & Assemblies

Sequence files can be uploaded by hovering over the "Upload Files" above the sequence file table, and selecting the button for the appropriate file type.
Sequence files can be uploaded by either dragging and dropping the files into the upload section, or by clicking the section and selecting the files. Sequence, fast5, and assembly files can be uploaded at the same time.

![Upload sequence file.]({{ site.baseurl }}/images/tutorials/common/samples/upload-sample-file-btn.png)
![Upload sequence file.]({{ site.baseurl }}/images/tutorials/common/samples/sample-detail-viewer-files-upload-btn.png)

* **Upload Sequence Files** - Files must have the extension `.fastq` or `.fastq.gz`, all other formats will be ignored. You can select single or multiple files in the system file selection window. If you are uploading paired end data, ensure they are selected in the same upload.
* **Upload Fast5 Files** - Files must have the extension `.fast5` or `.fast5.tar.gz`.

* **Upload Assembly** - Assembly files must have the extension `.fasta` or `.fna`.

Files will upload will begin immediately. A notification will open in the bottom right corner of the screen displaying the status of the upload. If you need to cancel an upload click the <img class="inline" src="{{ site.baseurl }}/images/tutorials/common/samples/upload-sample-cancel-btn.png" alt="Cancel Upload Button" /> button. **Do not leave or refresh the page as this will cancel the upload**, a warning will be display if you attempt to do this.

![Cancel upload]({{ site.baseurl }}/images/tutorials/common/samples/upload-sample-progress-cancel.png)

Uploading of files will begin immediately. A progress bar for each of the file types (sequence, assembly, and fast5 files) will be displayed with the status of the upload. Also, expandable panels for each of the file types will be displayed below each progress bar which can be expanded to show the files that are uploading. If you need to cancel an upload click the **Cancel Upload** button. **Do not close the sample details viewer or refresh the page as this will cancel the upload**.

![Cancel upload]({{ site.baseurl }}/images/tutorials/common/samples/sample-detail-viewer-upload-cancel-btn.png)
4 changes: 2 additions & 2 deletions doc/developer/interface/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Example:
<script id="cart-translations" th:inline="javascript" th:fragment="i18n">
window.translations = window.translations || [];
window.translations.unshift({
"SampleDetailsSidebar.removeFromCart": /*[[#{SampleDetailsSidebar.removeFromCart}]]*/ "",
"SampleDetailsViewer.removeFromCart": /*[[#{SampleDetailsViewer.removeFromCart}]]*/ "",
"SampleDetails.metadata": /*[[#{SampleDetails.metadata}]]*/ "",
"SampleDetails.files": /*[[#{SampleDetails.files}]]*/ "",
"SampleFiles.singles": /*[[#{SampleFiles.singles}]]*/ "",
Expand Down Expand Up @@ -188,7 +188,7 @@ Example:
<script id="cart-translations">
window.translations = window.translations || [];
window.translations.unshift({
"SampleDetailsSidebar.removeFromCart": "Remove From Cart",
"SampleDetailsViewer.removeFromCart": "Remove From Cart",
"SampleDetails.metadata": "Metadata",
"SampleDetails.files": "Files",
"SampleFiles.singles": "Single End Data",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/tutorials/common/samples/fastqc-charts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/tutorials/common/samples/fastqc-details.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/tutorials/common/samples/fastqc-overrepresented.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/tutorials/common/samples/sequence-file-qc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions doc/user/user/sample-metadata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ Metadata Fields have:
* **Type**: Indicates the type of data that the field can be. Usually this will be just "text".
* **Restrictions**: Indicates the metadata role required to view that field and any fields with levels below this restriction level.

#### Individual Sample Metadata

You can view the metadata for a sample from the **Metadata** tab of the sample details viewer which can be launched from anywhere the sample is listed by clicking the sample name. Only a user with a project **Manager** role can add/edit sample metadata.

![Sample metadata](images/sample-detail-viewer-metadata.png)

#### Metadata Field Security

Metadata Fields can be restricted at the project level by metadata role. There are 4 restriction levels which can be applied to a field (Level 1, Level 2, Level 3, Level 4 (with Level 4 being the highest restriction level and Level 1 the lowest)). A project **Manager** has a default metadata role of `Level 4` and can view all the project sample metadata. A **Collaborator** can have any of the metadata roles applied to them and will only be able to view fields with their metadata role and lower.
Expand Down
Binary file modified doc/user/user/samples/images/automated-assembly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/user/user/samples/images/ellipsis-menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/user/user/samples/images/sample-contained-files.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/user/user/samples/images/sample-details-edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 23 additions & 18 deletions doc/user/user/samples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,25 @@ The samples listing shows high-level sample details, such as:

### Viewing individual sample details

**Note: Details for individual samples can be viewed from anywhere a sample is listed (such as from the recent activity, analysis results, analysis output files, sharing of samples, etc) by clicking on the sample name. This will launch the sample details viewer. Only a user with the project Manager role will be able to modify sample details, metadata, and files.**

![Sample details page.]({{ site.baseurl }}/images/tutorials/common/samples/sample-detail-viewer.png)

All of the sample details that are in IRIDA are currently provided by a user with the project **Manager** role. To view details about an individual sample, start by [viewing the samples in a project](#viewing-samples-in-a-project), then click on the sample name in the samples table:

![Sample name button.]({{ site.baseurl }}/images/tutorials/common/samples/sample-name-button.png)

The sample details page shows all of the details that are currently known about a sample:
The sample details viewer shows all of the details that are currently known about a sample:

![Sample details page.]({{ site.baseurl }}/images/tutorials/common/samples/sample-details.png)
![Sample details page.]({{ site.baseurl }}/images/tutorials/common/samples/sample-detail-viewer.png)

### Editing sample details

Start by [viewing the details of an individual sample](#viewing-individual-sample-details). On the samples details page, click on the "Edit" button in the top, right-hand corner:
Start by [viewing the details of an individual sample](#viewing-individual-sample-details). On the **Details** tab of the sample details viewer, click on the <img src="images/sample-details-edit-btn.png" alt="Edit icon" class="inline"> button next to the details you would like to update:

![Sample details edit button.](images/sample-details-edit.png)

You can provide as many or as few sample details that you want -- the sample details are not used by any workflows in IRIDA (except the sample name in the SNVPhyl workflow), and (with the exception of the sample name) none of the sample details are required fields. When you've finished updating the sample details, you can click on the "Update" button at the bottom, right-hand side of the page.
You can provide as many or as few sample details that you want -- the sample details are not used by any workflows in IRIDA (except the sample name in the SNVPhyl workflow), and (with the exception of the sample name) none of the sample details are required fields.

### Viewing contained files

Expand Down Expand Up @@ -73,40 +77,43 @@ You can download all sequence files in a sample by following the instructions in

#### Deleting a sequence file

If you need to delete a sequence file from IRIDA, you can do so by clicking on the <img src="images/delete-icon.png" alt="Delete icon" class="inline"> icon, on the right-hand side of the row for the sequence file.
If you need to delete a sequence file from IRIDA, you can do so by clicking on the <img src="images/ellipsis-menu.png" class="inline" alt="Ellipsis menu icon."> button on the right-hand side of the row for the sequencing object/genome assembly and then clicking **Remove**.

You can only delete a sequence file from a sample if you have the project <img src="images/manager-icon.png" class="inline" alt="Manager role icon."> **Manager** role on the project.

#### Concatenating sequence files

In cases where a top-up run or any other additional data is added to a sample, you may want to combine the sequence files into a single *concatenated* file. IRIDA allows you to do this under the *Concatenate Files* page.
In cases where a top-up run or any other additional data is added to a sample, you may want to combine the sequence files into a single *concatenated* file. IRIDA allows you to do this from the files tab of the sample details viewer.
You must select 2 or more sequence file objects **of the same type** to concatenate. If you have selected a collection of files which cannot be concatenated, a warning will be displayed once the **Concatenate** button is clicked.

![Concatenate link]({{ site.baseurl }}/images/tutorials/common/samples/concatenate-link.png)
![Concatenate link]({{ site.baseurl }}/images/tutorials/common/samples/sequence-file-concatenate.png)

In the concatenation page you must select 2 or more sequence file objects **of the same type** to concatenate. If you have selected a collection of files which cannot be concatenated, a warning will be displayed.
If two different types of collections are selected then you will see the following warning in the upper right corner:

![Concatenate page]({{ site.baseurl }}/images/tutorials/common/samples/concatenate-page.png)
![Concatenate warning]({{ site.baseurl }}/images/tutorials/common/samples/sequence-file-concatenate-warning.png)

Once you have selected your files to concatenate, you have the following options:
Once you have selected your files (same type of collections) to concatenate, and clicked the **Concatenate** button, a modal is displayed. The modal will display the files you have selected to concatenate. You have the following options:

* *New filename* - This will set the base name of the new concatenated files. For paired-end data a modifier will be appended to determine the forward and reverse files.
* *Remove originals* - This will remove the original files from the sample, leaving only the new concatenated file.
* *New File Name* - This will set the base name of the new concatenated files. For paired-end data a modifier will be appended to determine the forward and reverse files.
* *Keep Originals / Remove originals* - This will allow you to select if you want to remove or keep the original files from the sample, leaving only the new concatenated file if remove originals is selected.

Once you have selected your files and selected your options, click *Submit* to begin the concatenation. This may take a while, so you should stay on this page until the process is complete. Once your files are concatenated, you will be redirected back to the sample-files page.
Once you have provided a file name and selected if you want to keep/remove the original files, click *Concatenate* to begin the concatenation. This process may take a while. Once your files are concatenated, they will be listed in the files tab of the sample details viewer.

![Concatenate page]({{ site.baseurl }}/images/tutorials/common/samples/sequence-file-concatenate-modal.png)

#### Viewing genome assemblies

Samples can also contain assembled genomes.

![sample-automated-assembly](images/sample-automated-assembly.png)
![sample-automated-assembly](images/sample-contained-files.png)

Genome assemblies can be linked to samples in the following ways:

1. By uploading assemblies to the sample through the [file upload interface](#sequence-files--assemblies)
2. By enabling the assembly pipeline as an [automated pipeline](../project/#automated-pipelines), which will be triggered on upload of sequencing files in the appropriate project.
3. Or by selecting the option to save assemblies back to a sample from the [Launch Pipelines](../pipelines/#saving-pipeline-results-to-a-sample) page.

The assembled genome file can be downloaded by clicking the <span class="fa fa-fw fa-download"></span> icon.
The assembled genome file can be downloaded by clicking the **Download** button on the right-hand side of the row for the assembly.

If the project manager has enabled automated assemblies for uploaded data an assembly will also be shown associated with the particular sequence files used to generate the assembled genome.

Expand All @@ -118,9 +125,7 @@ See the [project documentation](../project#automated-pipelines) for information

#### Deleting genome assemblies

Assembled genomes may be deleted from a sample by selecting the <img src="images/delete-icon.png" alt="Delete icon" class="inline"> icon.

![delete-sample-assembly](images/delete-sample-assembly.png)
Assembled genomes may be deleted from a sample by clicking the <img src="images/ellipsis-menu.png" class="inline" alt="Ellipsis menu icon."> button on the right-hand side of the row for the assembly and then selecting **Remove**.

Adding a new sample
-------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@

import ca.corefacility.bioinformatics.irida.model.IridaRepresentationModel;
import ca.corefacility.bioinformatics.irida.model.MutableIridaThing;
import ca.corefacility.bioinformatics.irida.model.assembly.GenomeAssembly;
import ca.corefacility.bioinformatics.irida.model.event.SampleAddedProjectEvent;
import ca.corefacility.bioinformatics.irida.model.joins.impl.ProjectSampleJoin;
import ca.corefacility.bioinformatics.irida.model.joins.impl.SampleGenomeAssemblyJoin;
import ca.corefacility.bioinformatics.irida.model.remote.RemoteStatus;
import ca.corefacility.bioinformatics.irida.model.remote.RemoteSynchronizable;
import ca.corefacility.bioinformatics.irida.model.sample.metadata.MetadataEntry;
import ca.corefacility.bioinformatics.irida.model.sequenceFile.SequencingObject;
import ca.corefacility.bioinformatics.irida.validators.annotations.Latitude;
import ca.corefacility.bioinformatics.irida.validators.annotations.Longitude;
import ca.corefacility.bioinformatics.irida.validators.annotations.ValidSampleName;
Expand Down Expand Up @@ -144,6 +146,14 @@ public class Sample extends IridaRepresentationModel
@Longitude
private String longitude;

@OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@JoinColumn(name = "default_sequencing_object")
private SequencingObject defaultSequencingObject;

@OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@JoinColumn(name = "default_genome_assembly")
private GenomeAssembly defaultGenomeAssembly;

@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.REMOVE, mappedBy = "sample")
private List<ProjectSampleJoin> projects;

Expand Down Expand Up @@ -346,4 +356,18 @@ public RemoteStatus getRemoteStatus() {
public void setRemoteStatus(RemoteStatus status) {
this.remoteStatus = status;
}

public SequencingObject getDefaultSequencingObject() {
return defaultSequencingObject;
}

public void setDefaultSequencingObject(SequencingObject sequencingObject) {
this.defaultSequencingObject = sequencingObject;
}

public GenomeAssembly getDefaultGenomeAssembly() { return defaultGenomeAssembly; }

public void setDefaultGenomeAssembly(GenomeAssembly genomeAssembly) {
this.defaultGenomeAssembly = genomeAssembly;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ public class ProjectSampleAnalysisOutputInfo {
private String userFirstName;
private String userLastName;
private IridaWorkflowDescription workflowDescription;
private Long projectId;

public ProjectSampleAnalysisOutputInfo() {}

public ProjectSampleAnalysisOutputInfo(Long sampleId, String sampleName, Long analysisId,
String analysisOutputFileKey, String filePath, Long analysisOutputFileId, AnalysisType analysisType,
UUID workflowId, Date createdDate, String analysisSubmissionName, Long analysisSubmissionId, Long userId,
String userFirstName, String userLastName) {
String userFirstName, String userLastName, Long projectId) {
this.sampleId = sampleId;
this.sampleName = sampleName;
this.analysisId = analysisId;
Expand All @@ -49,6 +50,7 @@ public ProjectSampleAnalysisOutputInfo(Long sampleId, String sampleName, Long an
this.userFirstName = userFirstName;
this.userLastName = userLastName;
this.workflowDescription = null;
this.projectId = projectId;
}

@Override
Expand All @@ -59,7 +61,7 @@ public String toString() {
+ ", analysisType=" + analysisType + ", workflowId=" + workflowId + ", createdDate=" + createdDate
+ ", analysisSubmissionName='" + analysisSubmissionName + '\'' + ", analysisSubmissionId="
+ analysisSubmissionId + ", userId=" + userId + ", userFirstName='" + userFirstName + '\''
+ ", userLastName='" + userLastName + '\'' + '}';
+ ", userLastName='" + userLastName + ", projectId='" + projectId + '\'' + '}';
}

@Override
Expand All @@ -78,7 +80,8 @@ public boolean equals(Object o) {
getAnalysisSubmissionName(), that.getAnalysisSubmissionName()) && Objects.equals(
getAnalysisSubmissionId(), that.getAnalysisSubmissionId()) && Objects.equals(getUserId(),
that.getUserId()) && Objects.equals(getUserFirstName(), that.getUserFirstName()) && Objects.equals(
getUserLastName(), that.getUserLastName());
getUserLastName(), that.getUserLastName()) && Objects.equals(
getProjectId(), that.getProjectId());
}

@Override
Expand All @@ -87,7 +90,7 @@ public int hashCode() {
return Objects.hash(getSampleId(), getSampleName(), getAnalysisId(), getAnalysisOutputFileKey(), getFilePath(),
getAnalysisOutputFileId(), getAnalysisType(), getWorkflowId(), getCreatedDate(),
getAnalysisSubmissionName(), getAnalysisSubmissionId(), getUserId(), getUserFirstName(),
getUserLastName());
getUserLastName(), getProjectId());
}

public Long getSampleId() {
Expand Down Expand Up @@ -217,4 +220,12 @@ public void setWorkflowDescription(IridaWorkflowDescription iridaWorkflowDescrip
public IridaWorkflowDescription getWorkflowDescription() {
return workflowDescription;
}

public Long getProjectId() {
return projectId;
}

public void setProjectId(Long projectId) {
this.projectId = projectId;
}
}
Loading