-
Notifications
You must be signed in to change notification settings - Fork 35
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
base: integrationTesting
Are you sure you want to change the base?
B 22561 add col filtering office users int #14985
Conversation
…void any lingering possible issue with storybook
…m/mymove into B-22814-EnvVariableTests
B-22652 MAIN: UB Weight Restriction Email Updates
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
…61-Add-Col-Filtering-Office-Users-INT
"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) |
There was a problem hiding this comment.
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 ?)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this 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.
com needs default region changed to region
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.
How to test
Frontend
officeApp
class or custommin-width
styling is used to hide any states the would not be visible to the user.Backend
Screenshots
Search

With filter

No Results
