Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

AO3-5249 Add basic search of invitation queue #3164

Merged
merged 7 commits into from Nov 18, 2017

Conversation

Projects
None yet
3 participants
Owner

sarken commented Nov 17, 2017

Issue

https://otwarchive.atlassian.net/browse/AO3-5249

Purpose

Lets admins do basic searches of email addresses in the invitations queue. Uses the simplified search column so they can find addresses like li.ves.tre.amt.v without worrying about punctuation.

Testing

Put addresses in the queue! Search for them!

sarken added some commits Nov 17, 2017

+ if params[:query].present?
+ @invite_requests = InviteRequest.where("simplified_email LIKE ?",
+ "%#{params[:query]}%")
+ .order(:position)
@houndci-bot

houndci-bot Nov 17, 2017

Place the . on the previous line, together with the method call receiver.

+ @invite_requests = InviteRequest.where("simplified_email LIKE ?",
+ "%#{params[:query]}%")
+ .order(:position)
+ .page(params[:page])
@houndci-bot

houndci-bot Nov 17, 2017

Place the . on the previous line, together with the method call receiver.

sarken added some commits Nov 17, 2017

elzj approved these changes Nov 18, 2017

@elzj elzj merged commit 5633477 into otwcode:master Nov 18, 2017

4 checks passed

Scrutinizer No new issues
Details
codeclimate All good!
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
hound 2 violations found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment