Conversation
# Conflicts: # src/main/resources/master-changelog.xml
| "tissue_id, t.notes, count_received, tissue_type, tissue_site, tumor_type, h_e, pathology_report, collaborator_sample_id, block_sent, scrolls_received, sk_id, sm_id, " + | ||
| "sent_gp, first_sm_id, additional_tissue_value_json, expected_return, return_date, return_fedex_id, shl_work_number, tumor_percentage, tissue_sequence, " + | ||
| " scrolls_count, uss_count, h_e_count, blocks_count " + | ||
| " scrolls_count, uss_count, h_e_count, blocks_count, t.uss_sm_ids, t.scrolls_sm_ids, t.he_sm_ids " + |
There was a problem hiding this comment.
I think this is old version and should be removed
| "pathology_report, collaborator_sample_id, block_sent, expected_return, return_date, return_fedex_id, scrolls_received, sk_id, sm_id, " + | ||
| "scrolls_count, uss_count, blocks_count, h_e_count, first_sm_id, sent_gp, last_changed, changed_by, additional_tissue_value_json, shl_work_number, " + | ||
| "tumor_percentage, tissue_sequence FROM ddp_tissue t WHERE NOT (deleted <=> 1) AND onc_history_detail_id = ?"; | ||
| "tumor_percentage, tissue_sequence, uss_sm_ids, scrolls_sm_ids, he_sm_ids FROM ddp_tissue t WHERE NOT (deleted <=> 1) AND onc_history_detail_id = ?"; |
There was a problem hiding this comment.
I think this is old version and should be removed
| return tissue; | ||
| } | ||
|
|
||
| private void setSMIds() { |
There was a problem hiding this comment.
can we get the sm ids in one call and not make 3 calls to the same table?
| ); | ||
|
|
||
| try { | ||
| oncHistoryDetail.setParticipantId(rs.getString(DBConstants.DDP_PARTICIPANT_ID)); |
There was a problem hiding this comment.
participantId or ddpParticipantId?
| "tumor_percentage, tissue_sequence FROM ddp_tissue t WHERE NOT (deleted <=> 1) AND onc_history_detail_id = ?"; | ||
| "tumor_percentage, tissue_sequence, sm.sm_id_value, sm.sm_id_type_id, sm.sm_id_pk, sm.deleted, sm.tissue_id FROM ddp_tissue t " + | ||
| "LEFT JOIN sm_id sm on (sm.tissue_id = t.tissue_id AND NOT sm.deleted <=> 1 AND NOT t.deleted <=> 1) " + | ||
| "WHERE NOT (deleted <=> 1) AND onc_history_detail_id = ?"; |
There was a problem hiding this comment.
WHERE NOT (deleted <=> 1) will not work I think because of multiple columns with that name
| if(result.isEmpty()){ | ||
| response.status(404); | ||
| return null; | ||
| if(!result.isEmpty()){ |
There was a problem hiding this comment.
we are not responding with 404 if nothing is found?
| @@ -42,6 +42,7 @@ | |||
|
|
|||
There was a problem hiding this comment.
@pegahtah @SimoneMaiwald guys please pay attention to this comment: https://broadinstitute.slack.com/archives/C02BAHMHE1G/p1639065811003800?thread_ts=1639065448.003300&cid=C02BAHMHE1G
* DDP-6034: - moving changes from PR into prod branch (#320) * Changed the way of making onc history detail to be better readable * added unique constraint * added unique constraint * added constant string * fixed missed part * fixed bug in tissuelist display and in isUniqueSmId * changed how we patch to avoid duplicates * fixed bug Co-authored-by: pegahtah <ptaheri@broadinstitute.org>
and DDP-7163