User List Not Giving Correct Results When Searching Quickly

Description

Steps to Repro:

  1. Log into demo-test

  2. Search users for "ar" (without quotation marks) - type quickly

  3. View results (37 results - enough to fill the results page with a scrollbar visible)

  4. NOTE: Result list doesn't seem right. Seems like it might be finding matches just for "a"?

  5. Use scrollbar to scroll down

Expected: Should scroll down and scrollbar should remain visibile and results should be correct

Actual: Scrollbar disappears and I only see 5 records (these seem to be the correct search results, actually)

Screencast: https://www.screencast.com/t/vepbZ0F4

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2

Checklist

hide

TestRail: Results

Activity

Show:

Mike Taylor June 29, 2017 at 9:51 AM

Yes, right-truncation. IIRC, this was specified in the earliest user stories.

Charlotte Whitt June 29, 2017 at 9:48 AM

Ah, the search is set up to be right truncation - or ?
(I would kind of have expected the search to be right and left truncation)
This morning: 203 users (active and in active) and now 7 results found when searching "ar" - searching name and user id - see screen dump.

I guess the issue can be closed, with these remarks.

Charlotte Whitt June 28, 2017 at 10:03 PM
Edited

Tested in http://folio-testing.aws.indexdata.com/ in Chrome, Version @folio/users 2.7.1-SNAPSHOT.328 depends on:

  • users 11.0 (13.0 available)

    *Steps to Repro:*

    1. Login as user diku_admin
    2. Click the users app. Click away Active user, and get all users (no filter): 210 Results Found, shown with scroll bar.
    3. Search users with ”ar" in name and or userid (without quotation marks) - type quickly
Expected result: Find all users matching "ar" in name and/or user id

Expected:

The result list should be complete. 

The result list would have a scrollbar (because more results are expected than would be able to show in one screen).

Actually:
4 results found when searching "ar"
No scroll bar.
 The complete list of users (active, and in-active) would be XX 

Examples on names missing: name: Bartell, Lupe; Dare, Missouri; Farrell, Velva Dillon; Hartmann, Mariah and many more.
is right. There is no difference in the results I get - if I search quick, slow, or paste "ar". This evening I keep getting 4 results found.
One of the four results is the latest added new user: Armina Ar, user-id arminaar

Mike Taylor June 23, 2017 at 11:30 PM

The query looks good.

Jason Skomorowski June 23, 2017 at 9:31 PM

I get those same results when I type a, r quite slowly and also when I paste the string 'ar' so this is a different issue than the one that spawned this ticket. But still very much an issue! It seems that searching does not key on the fields we expect it to or is not covering the whole data set for whatever reason? Included in the 6 users are some where the username doesn't have 'ar' so it's not as simple as it only searching the username and not the full name. Maybe surname but not first name?

Does this query look right to you ? It seems to be what's generated...

query=(username="ar*" or personal.firstName="ar*" or personal.lastName="ar*") and active=("true" or "false") sortby personal.lastName personal.firstName

Done

Details

Assignee

Reporter

Priority

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created June 12, 2017 at 8:37 AM
Updated July 6, 2017 at 5:25 PM
Resolved June 29, 2017 at 9:59 AM
TestRail: Cases
TestRail: Runs