Add "Contains any" as search type in Inventory advanced search modal
CSP Request Details
CSP Rejection Details
CSP Approved
Description
Environment
Potential Workaround
Attachments
is cloned by
relates to
Checklist
hideTestRail: Results
Activity
Yauhen ViazauNovember 6, 2023 at 11:33 AMEdited
Re-tested on Snapshot-1 - no issues found
Issue 1 is not reproduced when using updated test data according to Pavlo's comment above (e.g., with "contanynotfoundone" instead of "contAnyNotFound1")
See example:
Ticket will be moved to PO review when all linked test cases will be reviewed by QA
Yauhen ViazauNovember 2, 2023 at 2:18 PM
- OK, thank you. Will try to create appropriate test data and check again. After BugFest is done
Pavlo SmahinNovember 2, 2023 at 11:11 AM
, as it is a full-text search such terms like "contAnyNotFound1" are split into the list of terms: "cont", "Any", "Not", "Found", "1", and with NOT operator it will search for instances that don't contain any of this terms. I think this could be a reason why you didn't get what you expected.
Yauhen ViazauNovember 2, 2023 at 10:49 AM
Re-tested on Snapshot-1
Contains any works as expected alone and in combination with other conditions. See example:
Problem described in Question in previous comment is fixed. See example:
Issue described in previous comment is still reproducible. See example:
(contains all works as expected in similar scenario)
/ - please review. It is not clear whether I should update the test case, or is it an actual bug.
See test case for the details - https://foliotest.testrail.io//index.php?/cases/view/407727
Here, I expect all records except ones with "contAnyNotFound1", "contAnyNotFound2" in the title, to be found. But "Adv search containsAny1", "Adv search containsAny2" records not found. If I use something else instead of containsAny1-2 (ex.: "CANY1-2") - result is the same
Yauhen ViazauNovember 1, 2023 at 2:23 PM
Tested on Snapshot-1 - issue found
1) Issue. When using advanced search with several conditions including NOT, not all expected records found. On screencast below, "Adv search CANY1" and "Adv search CANY2" records are expected to be found. NOT condition should only exclude records with "contAnyNotFound1", "contAnyNotFound2" in title.
Screencast -
2) Question. When query (what we input in input field in advanced search modal) contains "containsAny", search returns 400 error. Is this expected? See example:
- please review
- please take a look at the issue with NOT (point 1). It may be something on the back-end side
Details
Assignee
Denys BohdanDenys BohdanReporter
Christine Schultz-RichertChristine Schultz-RichertLabels
Priority
P3Story Points
1Sprint
NoneDevelopment Team
SpitfireFix versions
Release
Quesnelia (R1 2024)TestRail: Cases
Open TestRail: CasesTestRail: Runs
Open TestRail: Runs
Details
Details
Assignee

Reporter

Purpose: To add new search type options to the advanced search modal in Inventory in order to provide users more flexibility and precision in searching.
Requirements:
Add new option to search type dropdown for "Contains any" searches in Inventory advanced search modal
"Contains any" option should return results that contain either of/or both terms searched (as opposed to "contains all" which would require a match on both terms)
Note that order of terms in record does not matter
Scenarios:
Scenario
Given a user is in the Inventory app
When the user selects "Advanced search"
Then the user should see the following options as a search type dropdown:
Exact phrase
Contains all
Contains any
Starts with
Scenario:
Given a user enters "Global africa" as search terms
When the user selects "Contains any" as the search type
Then the results should include records that contain EITHER "Global" or "Africa" OR both terms