Skip to content

DDP-6034-SMIDS#320

Open
pegahtah wants to merge 23 commits intodevelopfrom
DDP-6034-SMIDS
Open

DDP-6034-SMIDS#320
pegahtah wants to merge 23 commits intodevelopfrom
DDP-6034-SMIDS

Conversation

@pegahtah
Copy link
Contributor

and DDP-7163

@pegahtah pegahtah requested review from ScalaChamp, SimoneMaiwald and gmakharat and removed request for SimoneMaiwald and gmakharat November 22, 2021 19:21
"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 " +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 = ?";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is old version and should be removed

return tissue;
}

private void setSMIds() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 = ?";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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()){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are not responding with 404 if nothing is found?

@@ -42,6 +42,7 @@

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pegahtah added a commit that referenced this pull request Dec 15, 2021
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants