Search Users v3 - Search by First Name, Last Name and Username

Description

Purpose: Implement basic search for Users app. Initial search will be of the Last Name and First Name only, but we plan to extend that to cover all Identifiers, once those have been added to the record metadata. Eventually we plan to have an unqualified search that searches all user metadata, but that will require implementing special sorting logic to ensure the most relevant matches are at the top. Given that, our first increments of search will be against a subset of fields.

As a library administrator who is working with the Users app
I want to be able to search users by name
So I can locate a user to view and/or edit

  1. Scenario

    • Given the User Search Box in the Users app

    • When no search has been executed

    • Then all user records should display in the User List (filter selections should apply)

  2. Scenario

    • Given the User Search Box in the Users app

    • When user begins to type into the search box

    • Then a grey x icon should display as shown in the prototype

  3. Scenario

    • Given the grey x icon in the User Search Box

    • When clicked

    • Then:

      • Filters that were set prior to search removal should be maintained

      • The grey x icon should no longer display

  4. Scenario

    • Given the User Search Box in the Users app

    • When:

      • A search term is entered

    • Then:

      • The User List is updated to to display only those users whose Last Name, First Name or Username matches the entered search term (begins-with partial word matching) NOTE: Sort order is specified separately in LIBAPP-70

      • Filters that were set prior to search are maintained

      • The grey x icon remains visible/active

  5. Scenario

    • Given the User List in the Users app

    • When applied search and filters return no results

    • Then the following message should be displayed:

      • No results found for "<SearchTerm>"

      • Please check your spelling and filters.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Mike Taylor January 18, 2017 at 1:32 PM

Now working!

(Note. in order to use the Okapi Console to insert and enable mod-users, you must constrain it to use RAML-module-builder 2.3.3-SNAPSHOT, not the 3.0.0-SNAPSHOT that master currently wants to use – otherwise the Okapi Console will be unable to initialise mod-users for the tenant by posting to /tenant.)

Mike Taylor January 16, 2017 at 3:52 PM

This would be complete, but that the back-end's searching on the new `first_name` and `last_name` fields uses substring matching rather than respecting word boundaries. I have reopened to have Julian fix this.

Done

Details

Assignee

Reporter

Labels

Priority

Sprint

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created January 9, 2017 at 2:16 PM
Updated May 8, 2017 at 11:46 AM
Resolved January 18, 2017 at 1:32 PM
TestRail: Cases
TestRail: Runs