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 query to filter on effective location #381

Merged
merged 23 commits into from
Jul 8, 2024

Conversation

rhundal7
Copy link
Contributor

@rhundal7 rhundal7 commented Jun 24, 2024

  • PR for issue Books Checked Out By Call Number should filter on effective location name #378
  • Earlier I was setting the locationNames array to either get populated from the front end or set it to empty array and based my logic on that which was overcomplicated. I now changed it slightly. If the user selects all (more than allowed selections), in the frontend, it de-selects all selections, shows message to user. If the user still submits the form, it passes an empty array to backend, processes it (the scenario of everything) same like the scenario of nothing selected and returns the respective results. If the user selects some options, it passes that populated array to the backend and the respective where clause gets executed giving the result.

@rhundal7 rhundal7 requested review from a team and removed request for a team June 24, 2024 18:51
@rhundal7 rhundal7 marked this pull request as draft June 25, 2024 15:34
@rhundal7 rhundal7 marked this pull request as ready for review June 28, 2024 14:32
@rhundal7 rhundal7 requested review from a team and removed request for a team June 28, 2024 14:32
@rhundal7 rhundal7 marked this pull request as draft June 28, 2024 15:01
@rhundal7 rhundal7 marked this pull request as ready for review June 28, 2024 20:16
@rhundal7 rhundal7 requested a review from a team June 28, 2024 20:54
books-call-number/nodes/js/buildQuery.js Outdated Show resolved Hide resolved
books-call-number/nodes/js/buildQuery.js Outdated Show resolved Hide resolved
books-call-number/nodes/js/buildQuery.js Outdated Show resolved Hide resolved
books-call-number/nodes/js/buildQuery.js Outdated Show resolved Hide resolved
books-call-number/nodes/js/buildQuery.js Outdated Show resolved Hide resolved
books-call-number/nodes/js/buildQuery.js Outdated Show resolved Hide resolved
Copy link
Contributor

@wwelling wwelling left a comment

Choose a reason for hiding this comment

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

No need to get variables using the execution context, they are already available in the JavaScript scope.

books-call-number/nodes/js/buildQuery.js Show resolved Hide resolved
books-call-number/nodes/js/buildQuery.js Outdated Show resolved Hide resolved
books-call-number/nodes/js/buildQuery.js Outdated Show resolved Hide resolved
books-call-number/nodes/js/buildQuery.js Outdated Show resolved Hide resolved
rhundal7 and others added 4 commits July 2, 2024 10:47
Co-authored-by: Kevin Day <[email protected]>
Co-authored-by: Kevin Day <[email protected]>
Co-authored-by: Kevin Day <[email protected]>
Co-authored-by: Kevin Day <[email protected]>
@rhundal7 rhundal7 requested a review from kaladay July 2, 2024 15:49
@rhundal7 rhundal7 merged commit 25f40f3 into folio-sprint-18-staging Jul 8, 2024
@rhundal7 rhundal7 deleted the folio-sprint-18-issue-378 branch July 11, 2024 14:44
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.

Books Checked Out By Call Number should filter on effective location name
5 participants