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

[HOLD for payment 2024-06-11] [$250] Web - Accounting - Xero - Console error shows up when opening Preferred exporter #42195

Closed
1 of 6 tasks
m-natarajan opened this issue May 15, 2024 · 21 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented May 15, 2024

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


Issue found when validating #41641
Version Number: 1.4.74-0
Reproducible in staging?: y
Reproducible in production?: new feature
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:

Action Performed:

Precondition:

  • Workspace is connected to Xero.
  1. Go to staging.new.expensify.com
  2. Go to workspace settings.
  3. Go to Accounting.
  4. Go to Export.
  5. Click Preferred exporter.

Expected Result:

No console error will show up.

Actual Result:

Console error shows up.

Workaround:

unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6481656_1715779259909!staging.new.expensify.com-1715778677003.txt

Bug6481656_1715779259903.bandicam_2024-05-15_21-11-02-900.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f939b9bc571e795d
  • Upwork Job ID: 1791257784808251392
  • Last Price Increase: 2024-05-17
  • Automatic offers:
    • ahmedGaber93 | Reviewer | 0
    • tienifr | Contributor | 0
Issue OwnerCurrent Issue Owner: @twisterdotcom
@m-natarajan m-natarajan added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels May 15, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels May 15, 2024
Copy link
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.

@Beamanator Beamanator added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 16, 2024
Copy link

melvin-bot bot commented May 16, 2024

Triggered auto assignment to @twisterdotcom (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@Beamanator
Copy link
Contributor

@twisterdotcom this can probably be external, but it's probably a super quick fix from whoever is working on Xero stuff (@hayata-suenaga or @lakchote maybe?)

@Beamanator Beamanator removed the DeployBlocker Indicates it should block deploying the API label May 16, 2024
@twisterdotcom
Copy link
Contributor

Agree, we should assign whoever worked on this last. Will wait for @hayata-suenaga and @lakchote to chime in.

@hayata-suenaga
Copy link
Contributor

hayata-suenaga commented May 16, 2024

@lakchote, might be related around this line where we navigate to the preferred exporter page? Anyway, this also looks navigation-related. Should we make this issue external?

@twisterdotcom
Copy link
Contributor

twisterdotcom commented May 17, 2024

Okay, we can make it external. Seems it might be quicker.

@twisterdotcom twisterdotcom added the External Added to denote the issue can be worked on by a contributor label May 17, 2024
@melvin-bot melvin-bot bot changed the title Web - Accounting - Xero - Console error shows up when opening Preferred exporter [$250] Web - Accounting - Xero - Console error shows up when opening Preferred exporter May 17, 2024
Copy link

melvin-bot bot commented May 17, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01f939b9bc571e795d

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 17, 2024
Copy link

melvin-bot bot commented May 17, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @ahmedGaber93 (External)

@tienifr
Copy link
Contributor

tienifr commented May 17, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Console error shows up.

What is the root cause of that problem?

We're using slash at the beginning of route and getRoute, it cause the push action error

App/src/ROUTES.ts

Lines 819 to 820 in e8ae3c5

route: '/settings/workspaces/:policyID/connections/xero/export/preferred-exporter/select',
getRoute: (policyID: string) => `/settings/workspaces/${policyID}/connections/xero/export/preferred-exporter/select` as const,

What changes do you think we should make in order to solve the problem?

We should remove the slash at the beginning in route and getRoute function of POLICY_ACCOUNTING_XERO_PREFERRED_EXPORTER_SELECT like other routes

    POLICY_ACCOUNTING_XERO_PREFERRED_EXPORTER_SELECT: {
        route: 'settings/workspaces/:policyID/connections/xero/export/preferred-exporter/select',
        getRoute: (policyID: string) => `settings/workspaces/${policyID}/connections/xero/export/preferred-exporter/select` as const,
    },

We should remove slash in POLICY_ACCOUNTING_XERO_CUSTOMER too

What alternative solutions did you explore? (Optional)

NA

Result

Screen.Recording.2024-05-17.at.14.56.08.mov

@lakchote
Copy link
Contributor

I do agree with @Beamanator, we've probably could have waited I woke up to handle this, as the fix is really simple and it's just a console error 😅

Anyway let's wait for @ahmedGaber93 review of @tienifr's proposal, but it looks good to me.

@ahmedGaber93
Copy link
Contributor

ahmedGaber93 commented May 17, 2024

@tienifr Thanks for the proposal.

I agree with @lakchote. @tienifr's proposal looks good, the react-navigation read the route path that starting with // as absolute URL not relative URL which cause error is the browser history and URL.

Screenshot 2024-05-17 at 2 11 38 PM

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented May 17, 2024

Triggered auto assignment to @puneetlath, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@lakchote
Copy link
Contributor

@tienifr's proposal LGTM

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label May 17, 2024
Copy link

melvin-bot bot commented May 17, 2024

📣 @ahmedGaber93 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented May 17, 2024

📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@puneetlath puneetlath assigned lakchote and unassigned puneetlath May 17, 2024
@ahmedGaber93
Copy link
Contributor

@tienifr please let me know when PR is ready.

@tienifr
Copy link
Contributor

tienifr commented May 20, 2024

@ahmedGaber93 I'll raise the PR in a hour

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels May 20, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jun 4, 2024
@melvin-bot melvin-bot bot changed the title [$250] Web - Accounting - Xero - Console error shows up when opening Preferred exporter [HOLD for payment 2024-06-11] [$250] Web - Accounting - Xero - Console error shows up when opening Preferred exporter Jun 4, 2024
Copy link

melvin-bot bot commented Jun 4, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 4, 2024
Copy link

melvin-bot bot commented Jun 4, 2024

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

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

Copy link

melvin-bot bot commented Jun 4, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@ahmedGaber93] The PR that introduced the bug has been identified. Link to the PR:
  • [@ahmedGaber93] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@ahmedGaber93] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@ahmedGaber93] Determine if we should create a regression test for this bug.
  • [@ahmedGaber93] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@twisterdotcom] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 10, 2024
@twisterdotcom
Copy link
Contributor

Payment Summary:

I don't think we need a test case for a console error here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

8 participants