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

B 22561 add col filtering office users int #14985

Open
wants to merge 46 commits into
base: integrationTesting
Choose a base branch
from

Conversation

KonstanceH
Copy link
Contributor

@KonstanceH KonstanceH commented Mar 7, 2025

B-22561

Summary

This PR adds a filter button/functionality to the office users tab on the admin page.

Verification Steps for Reviewers

These are to be checked by a reviewer.

  • Has the branch been pulled in and checked out?
  • Have the BL acceptance criteria been met for this change?
  • Was the CircleCI build successful?
  • Has the code been reviewed from a standards and best practices point of view?

How to test

  1. Create some office users from the office user page.
  2. Enter in search information in the main search box
  3. Click the "Add Filters" button to add a filter to that search
  4. Enter any related search information in the new added search boxes
  5. Confirm that the listed information filters based off of the filtered searches.
  6. Confirm previous office user functionality still works.

Frontend

  • There are no aXe warnings for UI.
  • This works in Supported Browsers and their phone views (Chrome, Firefox, Edge).
  • There are no new console errors in the browser devtools.
  • There are no new console errors in the test output.
  • If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.
  • This change meets the standards for Section 508 compliance.

Backend

Screenshots

Search
Screenshot 2025-03-07 at 12 57 12 PM

With filter
Screenshot 2025-03-07 at 12 57 38 PM

No Results
Screenshot 2025-03-07 at 12 57 55 PM

ajlusk and others added 30 commits March 4, 2025 19:26
…void any lingering possible issue with storybook
B-22652 MAIN: UB Weight Restriction Email Updates
josiahzimmerman-caci and others added 6 commits March 7, 2025 10:01
change to env variables for bypass if needed; unset aws env; fix whitespace; change needs to include now passing/req'd tests; change some images to use harbor proxy vs docker to avoid rate limit
B-22767 MAIN Part 2 - Test Fixes
@KonstanceH KonstanceH self-assigned this Mar 7, 2025
@KonstanceH KonstanceH added ByteSize M&Ms Team ByteSized M&Ms INTEGRATION Slated for Integration Testing labels Mar 7, 2025
@KonstanceH KonstanceH marked this pull request as ready for review March 7, 2025 19:01
@KonstanceH KonstanceH requested review from a team as code owners March 7, 2025 19:01
@KonstanceH KonstanceH requested review from taeJungCaci and removed request for amehta-mitre March 7, 2025 19:03
"search": func(content string) func(*pop.Query) {
return func(query *pop.Query) {
firstSearch, lastSearch, emailSearch := fmt.Sprintf("%%%s%%", content), fmt.Sprintf("%%%s%%", content), fmt.Sprintf("%%%s%%", content)
query.Where("office_users.first_name ILIKE ? AND office_users.status = 'APPROVED' OR office_users.last_name ILIKE ? AND office_users.status = 'APPROVED' OR office_users.email ILIKE ? AND office_users.status = 'APPROVED'", firstSearch, lastSearch, emailSearch)
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to repeat "office_users.status='APPROVED'"... pull it out and group the "OR's" in parenthesis.
i.e. office_users.status = 'APPROVED' AND (office_users.first_name ILIKE ? OR office_users.last_name ILIKE ? OR office_users.email ILIKE ?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea you're right that would look a lot better. And yea I'll add the phone because they're supposed to be able to filter on all the columns except id.

Copy link
Contributor Author

@KonstanceH KonstanceH Mar 7, 2025

Choose a reason for hiding this comment

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

Took me a minute to find but I was working from my main branch and the phone number is added in integration for admin users but not in main yet. I'm gonna keep it in the filter but just adding this here as a note so I don't forget

B-22657: Ignore Updating updated_at Column when Locking/Unlocking Moves
Copy link
Contributor

@JamesHawks224 JamesHawks224 left a comment

Choose a reason for hiding this comment

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

Code: see comments
Testing: Should telephone be in the list of filters? Did not see it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ByteSize M&Ms Team ByteSized M&Ms INTEGRATION Slated for Integration Testing
Development

Successfully merging this pull request may close these issues.

8 participants