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

fix: remove unset grower ID from captures filter #245

Merged
merged 1 commit into from
Dec 13, 2021

Conversation

nmcharlton
Copy link
Collaborator

Description

Grower ID (planterId) is no longer passed to the captures query if it is not set in the filter.
For consistency with the filter UI inputs for Capture ID and Grower ID, these values should both be strings.

Issue(s) addressed

What kind of change(s) does this PR introduce?

  • Bug fix

Please check if the PR fulfils these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Issue

What is the current behaviour?
When Grower ID is not set in the Captures filter, an empty planterId string is passed to the query, resulting in zero results.

What is the new behaviour?
planterId is omitted from the query when Grower ID is blank, meaning captures for all growers are returned.

Breaking change

Does this PR introduce a breaking change?
No

@nmcharlton nmcharlton requested a review from a team as a code owner December 13, 2021 21:20
@nmcharlton nmcharlton merged commit 533506a into Greenstand:master Dec 13, 2021
mitia-anah pushed a commit to mitia-anah/treetracker-admin-client that referenced this pull request Feb 1, 2022
Ny-Rianala pushed a commit to Ny-Rianala/treetracker-admin-client that referenced this pull request Feb 10, 2022
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.

Growers: Grower ID filter is applied when no value is selected
1 participant