Closed Bug 764031 Opened 12 years ago Closed 12 years ago

Account lookup should support searching for username and slug

Categories

(Marketplace Graveyard :: Admin Tools, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

VERIFIED FIXED
2012-07-19

People

(Reporter: krupa.mozbugs, Assigned: robhudson)

References

()

Details

steps to reproduce: 1. Load https://marketplace-dev.allizom.org/en-US/account-lookup/ 2. Search for username "kr-raj" expected behavior: Account lookup supports searching for users by their username observed behavior: On searching for usernames, search finds no matching results. However, searching for ID and email works fine Also, should we support searching for slugs and display name?
Since username == slug, is this different from bug 753869? I don't think display name is being indexed - we could probably benefit from adding that. Also, Rob, did we reindex `users` from /admin/elastic on -dev?
bug 753869 was an admin thing, and seemingly unrelated to the "admin tools"? It doesn't use ES -- it just hooks into the Django admin search calls, runs some SQL, and returns JSON. I did not reindex users.
Priority: -- → P3
Blocks: 741508
No longer blocks: 752013
The user lookup tool looks in ('username', 'display_name', 'email'). I added better exact string matching so multi-word and queries with dashes that get tokenized can still find their match. https://github.com/mozilla/zamboni/commit/c44f4f0
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee: nobody → robhudson.mozbugs
Target Milestone: --- → 2012-07-19
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.