Skip to content

[BI-2948] - Sample Submission Download - #551

Merged
nickpalladino merged 7 commits into
developfrom
feature/BI-2948
Sep 14, 2026
Merged

nickpalladino merged 7 commits into
developfrom
feature/BI-2948

Conversation

@HMS17

@HMS17 HMS17 commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Description

Story: BI-2948 - Sample Submission Download

Added backend logic to allow export of sample submission columns for download
Moved sorting logic into helper method
Added unit test for sample submission export and added sorting tests to unit test for DArT file generation

Dependencies

bi-web: feature/BI-2948

Testing

see bi-web

Checklist:

  • I have performed a self-review of my own code
  • I have tested my code and ensured it meets the acceptance criteria of the story
  • I have create/modified unit and/or integration tests to cover this change or tests are not applicable
  • I have commented my code, particularly in hard-to-understand areas
  • I have either updated the source of truth or arranged for update with product owner if needed https://breedinginsight.atlassian.net/wiki/spaces/BI/pages/1559953409/Source+of+Truth

@HMS17 HMS17 changed the title Feature/bi 2948 [BI-2948] - Sample Submission Download Aug 31, 2026
@HMS17
HMS17 marked this pull request as ready for review September 9, 2026 15:59
@HMS17
HMS17 requested review from a team and nickpalladino and removed request for a team September 9, 2026 17:05
Map<String, Object> row = new HashMap<>();
row.put(SampleSubmissionImport.Columns.GERMPLASM_NAME, sample.getAdditionalInfo().get(BrAPIAdditionalInfoFields.GERMPLASM_NAME).getAsString());
row.put(SampleSubmissionImport.Columns.GERMPLASM_GID, sample.getAdditionalInfo().get(BrAPIAdditionalInfoFields.GID).getAsString());
row.put(SampleSubmissionImport.Columns.OBS_UNIT_ID, sample.getObservationUnitDbId());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should use the obsunitid stored in additionalinfo here because that's the deltabreed generated uuid and is what is shown on frontend and used for file import values currently.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point, changed

@HMS17
HMS17 requested a review from nickpalladino September 14, 2026 14:58

@nickpalladino nickpalladino left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good

@nickpalladino
nickpalladino merged commit 2287214 into develop Sep 14, 2026
1 check passed
@nickpalladino
nickpalladino deleted the feature/BI-2948 branch September 14, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants