-
Notifications
You must be signed in to change notification settings - Fork 31
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/ metadata and details fixes #1227
Sample details refactor/ metadata and details fixes #1227
Conversation
…to the metadata template field not being saved before adding an entry. Fixed edit metadata bug which was caused by a null metadata restriction for a project. Updated create new project and share samples views to pass the project id to the sample detail viewer
…e hyperlink to a button which launches the sample detail viewer from the linelist page. Fixed issue with paragraph editable display in sample detail viewer by adding padding to fields
…etails_refactor/_metadata_and_details_fixes
…etails_refactor/_metadata_and_details_fixes
… clicking on link to sample
…etails_refactor/_metadata_and_details_fixes
…etails_refactor/_metadata_and_details_fixes
… and linelist UI tests to fail.
…ed test for getting analysis outputfile info for user
…metadata_and_details_fixes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is coming along really well. Thanks for all your hard work. I am really starting to wonder about this as a modal. There is so much going on here. Keep going, but we definitely need to talk about it with Eric more.
@@ -170,13 +170,13 @@ public AnalysisSubmissionRepositoryImpl(DataSource dataSource, | |||
+ " INNER JOIN analysis_submission_sequencing_object o ON asub.id = o.analysis_submission_id\n" | |||
+ " INNER JOIN sample_sequencingobject sso ON sso.sequencingobject_id = o.sequencing_object_id\n" | |||
+ " INNER JOIN sample s ON sso.sample_id = s.id\n" | |||
+ " LEFT JOIN project_sample psample ON s.id = psample.sample_id\n" | |||
+ " INNER JOIN project_sample psample ON s.id = psample.sample_id\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't know anything about sql, but this looks like an expensive query. Perhaps Eric should have a look at it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so too and probably something that should be updated in dev.
src/main/java/ca/corefacility/bioinformatics/irida/ria/web/samples/SamplesAjaxController.java
Outdated
Show resolved
Hide resolved
|
||
return new SampleDetails(sample, isModifiable, cartService.isSampleInCart(id)); | ||
Project project = null; | ||
if (cartService.isSampleInCart(id) != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well I named that function poorly, sorry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good! :)
src/main/java/ca/corefacility/bioinformatics/irida/ria/web/services/UISampleService.java
Outdated
Show resolved
Hide resolved
...ity/bioinformatics/irida/service/impl/analysis/submission/AnalysisSubmissionServiceImpl.java
Show resolved
Hide resolved
src/main/webapp/resources/js/components/activities/ActivityListItem.jsx
Outdated
Show resolved
Hide resolved
@@ -40,7 +40,10 @@ export default function ShareAssociated() { | |||
</Button> | |||
} | |||
> | |||
<SampleDetailViewer sampleId={sample.id}> | |||
<SampleDetailViewer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will have to be updated into the metadata security branch
…splitting of logic for getting a list of SampleMetadataFieldEntry
Description of changes
What did you change in this pull request? Provide a description of files changed, user interactions changed, etc. Include how to test your changes.
Updated remaining locations where sample name link pointed to the samples page and replaced with launching the
SampleDetailViewer
. Fixed issue with sample metadata tab which wouldn't set aprojectmetadatarole
for a field if a previous role did not exist. Added logging statements. Updated tests. Refactored UI components to useRow/Col
from ant design instead ofSpace
Related issue
Link to the GitHub issue this pull request addresses using the
#issuenum
format. If it completes an issue, useFixes #issuenum
to automatically close the issue.Checklist
Things for the developer to confirm they've done before the PR should be accepted:
* [ ] CHANGELOG.md (and UPGRADING.md if necessary) updated with information for new change.* [ ] Tests added (or description of how to test) for any new features.* [ ] User documentation updated for UI or technical changes.