-
Notifications
You must be signed in to change notification settings - Fork 0
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
Show comments for NGS and ProteomicsMeasurements #962
Show comments for NGS and ProteomicsMeasurements #962
Conversation
…s-don't-show-comment
…s-don't-show-comment
@Steffengreiner what is the related issue? Please always link the corresponding issue in the PR via GitHub's x-ref feature: |
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.
Missing x-ref to an issue.
Heya @sven1103, Thanks for the Feedback. I linked the issue in question 👍 |
@@ -186,18 +186,18 @@ private void createNGSMeasurementGrid() { | |||
.setAutoWidth(true) | |||
.setFlexGrow(0); | |||
ngsMeasurementGrid.addComponentColumn(measurement -> { | |||
if (measurement.samplePoolGroup().isEmpty()) { | |||
if (!measurement.isPooledSampleMeasurement()) { |
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.
Negations are harder to read and understand, especially that "!" is not part our natural language. I suggest to include a method like isSingleSampleMeasurement()
to reflect the positive case you are looking for.
if (!measurement.isPooledSampleMeasurement()) { | ||
Span singularComment = new Span(); | ||
singularComment.setText( | ||
measurement.specificMeasurementMetadata().stream().findFirst().orElseThrow().comment() |
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 am not sure what happens here. I also think, that we should handle the orElseThrow()
with care, since it will cause exceptions that are not of importance.
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.
thank you @Steffengreiner !
Some minor requests, questions before it is ready to merge
…roteomics and NGS measurements
Quality Gate failedFailed conditions |
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.
Nicely done @Steffengreiner !
What was changed
Currently the Proteomics and Ngs Measurements don't show the provided comments during measurement registration. This error appears for pooled and unpooled measurements.
This PR aims to provide the comments for singular Samples within the measurement overview, while providing the possiblity to open the information dialog for pooled samples