Skip to content
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

[BI-1191] Germplasm Search #242

Merged
merged 4 commits into from
Jul 13, 2022
Merged

[BI-1191] Germplasm Search #242

merged 4 commits into from
Jul 13, 2022

Conversation

ctucker3
Copy link
Contributor

@ctucker3 ctucker3 commented Jun 21, 2022

Description

Story: https://breedinginsight.atlassian.net/jira/software/c/projects/BI/boards/1?modal=detail&selectedIssue=BI-1191

  • Added filtering support to ExpandableTable.
  • Added filtering to Germplasm Table.
  • Modify table loading behavior so only table rows were greyed out and user can still interact with filter fields.
  • Added a CallStack class that could be a good replacement for current pagination request behavior.

Dependencies

biapi: BI-1191

Testing

See biapi PR.

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 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: <link to TAF run>

@ctucker3 ctucker3 marked this pull request as ready for review June 21, 2022 18:22
@ctucker3 ctucker3 requested a review from HMS17 June 21, 2022 19:30
async getGermplasm() {
this.germplasmLoading = true;
try {
const response = await BrAPIService.get(BrAPIType.GERMPLASM, {}, this.activeProgram!.id!,
this.paginationController.pageSize, this.paginationController.currentPage - 1);
if (this.paginationController.showAll) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I removed this if statement block as part of BI-1401 which among other things switched GermplasmTable from using PaginationController to using BackendPaginationController, which handled update of the paginationcontroller values. Is there a particular reason why this code was reinstated, and should that function maybe be part of BackendPaginationController instead so it doesn't get repeated across multiple tables?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That section had a merge conflict, so I think it was probably reintroduced from there. Thanks for catching that! I'll look into removing it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed that if statement and tested it to make sure the pagination still works. Everything still works!

Copy link
Member

@timparsons timparsons left a comment

Choose a reason for hiding this comment

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

Approving this with the assumption that Heather's comment will be resolved

@ctucker3 ctucker3 requested a review from HMS17 June 27, 2022 13:26
@timparsons timparsons merged commit 56cae88 into develop Jul 13, 2022
@timparsons timparsons deleted the feature/BI-1191 branch July 13, 2022 20:09
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.

4 participants