Skip to content
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

individual search: partial search returns inconsistently #911

Closed
11 tasks done
TanyaStere42 opened this issue Jul 24, 2023 · 1 comment · Fixed by #912
Closed
11 tasks done

individual search: partial search returns inconsistently #911

TanyaStere42 opened this issue Jul 24, 2023 · 1 comment · Fixed by #912
Assignees
Labels
bug Something isn't working

Comments

@TanyaStere42
Copy link
Member

TanyaStere42 commented Jul 24, 2023

Expected Behavior

partial search results return consistently

Current Behavior

There is some processing going on with individual search that causes it to return results inconsistently. I’ve tested with Phs prefix and CUPS prefix, and I’m getting different results between them, so I can’t really provide more detail

  • in the manually assign ID on the sighting > animals tab, I get results for Phs and hs, but not phs
  • in individual search using the individual name filter, I get results for hs, but no results for either Phs or phs
  • in the quick search in the header, I get results for Phs and hs, but not phs

Investigation notes

Anastasia: In Seal Codex I tried to manually assign an animal to an existing individual from the sighting page, but the search box to locate my individual shows no results for "phs415" or "Phs415" even though the individual exists here.

Screenshot 2023-08-29 at 10 17 27 AM

In Zebra Codex I tried to set a new relationship between a mother and a foal from this individual page. A search for "F08_053_LAIK" shows no results. If I search for "F08_0" or "F08_" only "F08_006_LAIK" appears as a suggestion.

no result partial result

Community link
https://community.wildme.org/t/seal-codex-missing-individuals/2278
https://community.wildme.org/t/adding-relationship/2353

Related drafts
Individual search: Can't sort by name or search a specific individual
Sighting search: inconsistent number of search results and long load times

Another bug found about searching:
when searching individual names on individual searching page, any individual with upper case letters in the name can't be found, no matter using the correct case or not.
When doing QA please also check if this is fixed.

1694106641014
1694106667503

QA Verification Checklist

  • Consistent search results for partial individual name
    • baseline: work with BE to get a count of individuals for a given search term. note term and value in QA
    • search for term in Individual search in name filter. note value returned. should equal count
    • search for term in "match individual" on an individual that does not contain the term in their name. note value returned. should equal count
    • search for term in "match individual" on an individual that DOES contain the term in their name. note value returned, should equal count-1
  • Repeat the above test for the following conditions:
    • all uppercase term
    • all lowercase term
    • mixed case term
    • mixed character term (ex above, phs could be tested as hs-0)
  • Make note of time it takes for the results to load (reporting only, no failure criteria)
@TanyaStere42 TanyaStere42 added the bug Something isn't working label Jul 24, 2023
@TanyaStere42 TanyaStere42 added this to the Codex Release 2.1 milestone Jul 24, 2023
@TanyaStere42 TanyaStere42 transferred this issue from WildMeOrg/codex-frontend Oct 3, 2023
@TanyaStere42 TanyaStere42 assigned naknomum and erinz2020 and unassigned erinz2020 Oct 3, 2023
@naknomum naknomum linked a pull request Oct 3, 2023 that will close this issue
@goddesswarship
Copy link

goddesswarship commented Oct 12, 2023

QA notes: Baseline term "cups" verified with BE that number in QA server is 10. This matches the number that comes up in an individual search.

Edited: all checks passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants