Skip to content

[BI-2632] Germplasm download from single list no longer working#463

Merged
davedrp merged 2 commits intodevelopfrom
bug/BI-2632
Jun 9, 2025
Merged

[BI-2632] Germplasm download from single list no longer working#463
davedrp merged 2 commits intodevelopfrom
bug/BI-2632

Conversation

@davedrp
Copy link
Contributor

@davedrp davedrp commented May 8, 2025

BI-2632 Germplasm download from single list no longer working

Description

Attempting to download a Germplasm List results in a 403 error.

Please include a summary of the change that was made.
The endpoint @get("/programs/{programId}/germplasm/lists/{listDbId}/export{?fileExtension}") was removed, but is still being called. The endpoint was restored.

Dependencies

bi-web: release/1.1

Testing

Please include any details needed for reviewers to test this code

  • Select Germplasm from the side bar menu.
  • Select the Lists tab.
  • Select Download for any of the Lists (on the right hand side of the table).
  • Select any file format from the modal screen.
  • Press the Download button.

EXPECTED RESULT
File downloads successfully.

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 tested that my code works with both the brapi-java-server and BreedBase
  • I have create/modified unit tests to cover this change
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to documentation
  • I have run TAF: <please include a link to TAF run>

@github-actions github-actions bot added the bug Something isn't working label May 8, 2025
@davedrp davedrp requested review from a team, dmeidlin and mlm483 and removed request for a team May 8, 2025 15:03
@davedrp davedrp marked this pull request as ready for review May 8, 2025 15:08
Copy link
Contributor

@dmeidlin dmeidlin left a comment

Choose a reason for hiding this comment

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

The export works as expected, but there aren't any tests to cover the endpoint in GermplasmControllerIntegrationTest, and it should really be added. You can see how the @ParameterizedTest annotation was used in ExperimentControllerIntegrationTest to reuse the same test for different requested file formats for the export.

@davedrp
Copy link
Contributor Author

davedrp commented May 30, 2025

The two unit test that are failing (UserControllerIntegrationTest & MetadataFilterIntegrationTest) are known issues, and not related this this story.

@davedrp davedrp merged commit a006f10 into develop Jun 9, 2025
1 check passed
@davedrp davedrp deleted the bug/BI-2632 branch June 9, 2025 19:16
@davedrp davedrp mentioned this pull request Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants