-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2024-08-29] [$250] [Search v2.1] Update search parser grammar to handle special characters #47095
Comments
Triggered auto assignment to @slafortune ( |
Job added to Upwork: https://www.upwork.com/jobs/~01cfdc085a6131060b |
Current assignee @ikevin127 is eligible for the External assigner, not assigning anyone new. |
Hi! I am from SWM and I'd like to work on this issue. |
📣 @ikevin127 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
After investigation, I believe that implementing the following part of the proposed solution:
will resolve this issue. |
📣 @MCarlesso! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Thanks for the proposal @MCarlesso However, we already have someone working on this issue. |
Sorry @luacmartins! I'm new here 🙂 From reading the contribution guidelines I thought that only complete proposals would be considered? 😅 I don't see an approved proposal for this one yet? |
No worries! You're correct that that's the regular process. This issue is part of the Search project though and we have an expert agency working with us on this implementation, so they are handling most of the Search issues. |
This is being worked on, it will have a 7-day regression period, so I don't feel the need to add another BZ person to this. |
HI! @luacmartins How to handle cases where keywords are provided in multiple places in an input string. For example: |
Yea, that's correct! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.23-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-08-29. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@ikevin127 can you please propose a regression test? |
@ikevin127 Role c+ - Paid $250 via Upworks |
Problem
Coming from here, the search parser grammar doesn't handle some special characters very well, for example it throws an error when
;
is added to a text input likekeyword
Solution
Update the parser grammar to correctly handle special characters:
;
should be treated like any other characteramount:200 category:travel
meansamount=200 AND category=travel
. It should also be a logical OR when separating free text, e.g.las vegas
meanskeyword=las OR keyword=vegas
,
is used as a logical OR operator when separating values for a filter key, e.g.category:travel,hotel,food
meanscategory=travel OR category=hotel OR category=food
. It should also be treated as a regular character when used in free text, e.g.las, vegas
meanskeyword="las," OR keyword="vegas"
cc @Kicu @adamgrzybowski @289Adam289 @Guccio163 @SzymczakJ
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @slafortuneThe text was updated successfully, but these errors were encountered: