Skip to content

[HOLD for payment 2024-11-11] Web - Search - Console error shows up when entering comma in the search router #51661

Closed

Description

@lanitochka17

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.55-2
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): applausetester+kh1610015@applause.expensifail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Click Search router icon
  3. Enter a comma

Expected Result:

No console error when entering comma in the search router

Actual Result:

Console error shows up when entering comma in the search router

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6649388_1730208661473.20241029_212727.mp4

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCash
    on Oct 29, 2024
  2. melvin-bot commented on Oct 29, 2024

    @melvin-bot

    Triggered auto assignment to @dangrous (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  3. melvin-bot commented on Oct 29, 2024

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  4. github-actions commented on Oct 29, 2024

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  5. lanitochka17 commented on Oct 29, 2024

    @lanitochka17
    Author

    Production:

    bandicam.2024-10-29.15-33-47-678.mp4
  6. lanitochka17 commented on Oct 29, 2024

    @lanitochka17
    Author

    We think that this bug might be related to #wave-control

  7. Kicu commented on Oct 29, 2024

    @Kicu
    Contributor

    @dangrous @lanitochka17 I can verify that this bug is not a thing on newest main, specifically after this PR: #51555 which is merged. It also introduces unit tests, so as part of this issue we can add a test case with just the ,.

    I can confirm that this error appears right now both in staging and in prod, but on newest main it should not be there.

  8. Kicu commented on Oct 29, 2024

    @Kicu
    Contributor

    my local dev

    Screen.Recording.2024-10-29.at.15.23.53.mov
  9. dangrous commented on Oct 29, 2024

    @dangrous
    Contributor

    hmm @Kicu I still see the error on main, and also I don't see it on production... Can you check again? If it's truly fixed on main (and/or production) we can move this through as not a blocker since it's an edge case, but that's not what I'm seeing with my testing. Thanks!

    And it's definitely from #50883 (d3f99c1)

    The error is:

    SearchQueryUtils.ts:223 Error when parsing SearchQuery: "," SyntaxError: Expected default key, end of input, key, quote, whitespace, or word but "," found. (at searchParser.js:20:1)
        at new peg$SyntaxError (searchParser.js:20:1)
        at peg$buildStructuredError (searchParser.js:415:1)
        at Module.peg$parse (searchParser.js:1195:1)
        at Module.buildSearchQueryJSON (SearchQueryUtils.ts:214:20)
        at eval (SearchRouter.tsx:118:23)
        at invokeFunc (debounce.js:102:19)
        at trailingEdge (debounce.js:151:14)
        at timerExpired (debounce.js:139:14)
    
  10. luacmartins commented on Oct 29, 2024

    @luacmartins
    Contributor

    I also see it on main and agree it comes from #50883. That being said, I don't think this is a blocker since it only breaks the syntax in a few edge cases

  11. dangrous commented on Oct 29, 2024

    @dangrous
    Contributor

    yeah i think that's fine - I'll switch to daily. Do you want to take over? I can also continue to shepherd, whichever you prefer.

  12. removed
    DeployBlockerCash
    on Oct 29, 2024
  13. 10 remaining items

  14. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Nov 4, 2024
  15. changed the title [-]Web - Search - Console error shows up when entering comma in the search router[/-] [+][HOLD for payment 2024-11-11] Web - Search - Console error shows up when entering comma in the search router[/+] on Nov 4, 2024
  16. melvin-bot commented on Nov 4, 2024

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  17. removed
    Reviewing
    on Nov 4, 2024
  18. melvin-bot commented on Nov 4, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.56-9 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-11-11. 🎊

    For reference, here are some details about the assignees on this issue:

  19. melvin-bot commented on Nov 11, 2024

    @melvin-bot

    Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.

  20. luacmartins commented on Nov 19, 2024

    @luacmartins
    Contributor

    This is done and no payment is needed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentEngineeringWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions