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

Filter Holds #160

Conversation

AlexanderBlanchardAC
Copy link

https://aspen-discovery.atlassian.net/jira/software/c/projects/DIS/boards/2?search=219&selectedIssue=DIS-219

This Pull Request adds filtering options to the holds section in a user account.

Add the ability to filter holds by excluding those of selected linked
users and by displaying only selected holds in the UI.
Update exportHolds so that the new filters are taken into account when
holds are exported.
@Chloe070196
Copy link

Chloe070196 commented Jan 28, 2025

Seems to be working nicely and as expected, would add return types to remove the need for them to be manually added upon merge with main

Edit: two minor issues found in further testing:

  • Selecting a check box, then selecting a user to hide, and then selecting 'Display Selected' will have the same effect as selecting a user to hide, then selecting 'Hide Users'.
  • If holds are placed on one same record by multiple linked users (and/or the active user), selecting one, then selecting 'Display Selected' will show all holds for that record, instead of only displaying the one.

Prevent disply selected filter from filtering out linked users if they
are highlighted in the ui
When records are selected and display selected is applied, records were
being returned if they had the same record id as a selected record e.g.
they had a different user, but were not selected themseleves, this patch
adds a check for the userid to prevent this
@AlexanderBlanchardAC AlexanderBlanchardAC changed the base branch from DIS-219-Filter-Holds to DIS-219-Filter-Hold-Requests January 28, 2025 13:41
@Chloe070196
Copy link

Looks to be working as expected with both issues noted during testing now resolved

@AlexanderBlanchardAC AlexanderBlanchardAC merged commit 1674912 into PTFS-Europe:DIS-219-Filter-Hold-Requests Jan 28, 2025
3 checks passed
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.

2 participants