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

Update count and restrictions #857

Merged
merged 2 commits into from
Sep 30, 2024
Merged

Update count and restrictions #857

merged 2 commits into from
Sep 30, 2024

Conversation

felixclack
Copy link
Contributor

QA highlighted a couple of issues with the bulk search feature around
the way we count the returned results and also with the restrictions tag.

  • Fix the count of records
  • Only highlight known restrictions

Link to Trello card

https://trello.com/c/g08YzsRn/224-bulk-search-stress-test-bulk-search-limits

Checklist

  • Attach to Trello card
  • Rebased main
  • Cleaned commit history
  • Tested by running locally

@felixclack felixclack force-pushed the fix-bulk-search-count branch from f8b0bf0 to 533a355 Compare September 27, 2024 14:37
When counting the total number of searched records, we are incorrectly
using the paged values.

This change ensures we count the total records before applying
pagination.
There are cases where a record will have restrictions that we don't want
to highlight.

We only display the restrictons tag if the code is listed in the
`Sanction::SANCTIONS` constant.
@felixclack felixclack merged commit ad345ce into main Sep 30, 2024
15 checks passed
@felixclack felixclack deleted the fix-bulk-search-count branch September 30, 2024 08:41
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