-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-04-14] [$250] Report- The search doesn't work if display name of user has Double quotes #57086
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
Comments
Triggered auto assignment to @isabelastisser ( |
Job added to Upwork: https://www.upwork.com/jobs/~021892236526130102736 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dukenv0307 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The reports search doesn't work if display name of user has Double quotes What is the root cause of that problem?Search query What changes do you think we should make in order to solve the problem?Enable search with double quotes What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional) |
Hey @dukenv0307, please review the proposal when you have a chance. Thanks! |
Please assign it to me. I am confidence to fix this issue soon |
@dukenv0307, please review the proposal when you have a chance. Thanks! |
@gurus00 Can you share the branch fix and videos? Your solution is too sketchy |
bump @gurus00 |
Ok, got it |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
This seems like a pretty extreme edge case, I can't think of |
I will take a look more |
ProposalPlease re-state the problem that we are trying to solve in this issue.When attempting to search for a user from: or to: that contains double quotes within their display name, the syntax is not correctly highlighted (missing background). This is actually a rather superficial assessment, as the bug also extends to successfully performing a search on these users. Example of what's going on: When I search for reports with the following (note: autocomplete is correctly suggesting these names) If I hit enter on the search, what's displayed in the search is as follows: You'll note this is a bit different than the bug case (my quotes are at the end, instead of the beginning), however it highlights what's actually going on. What is the root cause of that problem?I've narrowed it down to the parser - The way that it's currently handling this is to look for the next double quote, as is made apparent in my expanded description of the problem. Given that the name contains double quotes, this results in it being truncated, and as a result of this, it's causing problems with the rest of the application (syntax highlighting, as well as with the I'll note that I'm looking in I base these conclusions on line 74/75 of
What changes do you think we should make in order to solve the problem?I think that the rules in the Honestly? That's easier said than done. One thought was to change how we're identifying the limits of a string. Right now, we're looking for double quotes, however another way to do it could be to look for the next There could be a better way to do this -- that's just a thought. I'm not familiar enough with the library (yet) to have the answer definitively. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Like I said, this bug is only superficially with the UI, and is actually indicative of a deeper problem. If the search is the being performed correctly, then that means the UI should have the correct backgrounds (and thus the bug is fixed) What alternative solutions did you explore? (Optional)My first thought was to disallow double quotes in people's names. That was last week, when I thought I had found other bugs associated with usernames containing double quotes, however when I looked back into it today, I found no such problems, and decided to give it a more thorough investigation. For what it's worth, I think it's kind-of cool to be able to have your name show up as: James "Jimmy" Neutron Which is why I put in the effort to debug it thus far. |
@dukenv0307 I found the root cause of that problem
We should fix this function. Also |
this shouldn't be done, as user might want to write some string to do more precise filters |
@dukenv0307, please follow up. Thanks! |
@isabelastisser on it now |
Triggered auto assignment to @rafecolton, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Just confirming in Slack (internal only) that this is a feature we want to support. |
Assigning @luacmartins so he gets credit for the extensive review |
@codekane @dukenv0307, what's the PR status? Can you please provide an update? Thanks! |
@isabelastisser It's been merged into main -- not yet deployed to staging (QA is ongoing, waiting until next cycle) |
Thanks for the update! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.23-7 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 2025-04-14. 🎊 For reference, here are some details about the assignees on this issue:
|
@dukenv0307 @isabelastisser @dukenv0307 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalTest:
Do we agree 👍 or 👎 |
Payment Summary
BugZero Checklist (@isabelastisser)
|
Payment summary: @codekane $250 via Upwork for proposal JOB |
@codekane what's your Upwork profile? |
Thanks, @codekane! I sent you an offer in Upwork. All set! |
$250 approved for @dukenv0307 |
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.1.0-0
Reproducible in staging?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: #56869
Issue reported by: Applause Internal Team
Device used: Macbook/macOS 14.5
App Component: Search
Action Performed:
Precondition: Logged in, A workspace has a member who has Double quotes in his name (e.g: ["" Admin 1802 new])
Expected Result:
The value of the from filter should have blue background
Actual Result:
Because "" Admin 1802 new has double quotes so that the system can't recognizes correct syntax. So the value of the from filter doesn't have blue background
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6747493_1739944982707.Recording__293.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @isabelastisserThe text was updated successfully, but these errors were encountered: