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

[$500] IOU Distance - Save button in waypoint editor is not responsive #26286

Closed
2 of 6 tasks
lanitochka17 opened this issue Aug 30, 2023 · 26 comments
Closed
2 of 6 tasks
Assignees
Labels
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 Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 30, 2023

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 executing PR #25984

Action Performed:

  1. Go to staging.new.expensify,com
  2. Go to + > Request money > Distance
  3. Go to Start and select an address
  4. Go to Start again and clear the address field
  5. Click Save

Expected Result:

User is redirected to Distance page

Actual Result:

User is not redirected to Distance page. Save button is not responsive

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.59-0

Reproducible in staging?: Yes

Reproducible in production?: No

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

Notes/Photos/Videos: Any additional supporting documentation

Bug6182644_20230830_202346.mp4

Expensify/Expensify Issue URL:

Issue reported by: @b4s36t4

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016b55cf7fbb4a3cad
  • Upwork Job ID: 1706726189574373376
  • Last Price Increase: 2023-09-26
  • Automatic offers:
    • b4s36t4 | Contributor | 26890787
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Aug 30, 2023
@OSBotify
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.

@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 2023

Triggered auto assignment to @Li357 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@StevenKKC
Copy link
Contributor

Proposal

Please state again the problem we are trying to solve in this issue.

IOU Distance - Save button in waypoint editor is not responsive.

What is the cause of this issue?

If we clear the address field and save, Transaction.removeWaypoint is called.

// Allows letting you set a waypoint to an empty value
if (waypointValue === '') {
Transaction.removeWaypoint(transactionID, waypointIndex);
}

In Transaction.removeWaypoint, we call saveWaypoint with null of waypoint.
saveWaypoint(transactionID, index, null);

Therefore, the following code throws an error, and then app will be unresponsive.
const recentWaypointAlreadyExists = _.find(recentWaypoints, (recentWaypoint) => recentWaypoint.address === waypoint.address);

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

We can return if waypoint is null in Transaction.saveWaypoint.

+   if (!waypoint) {
+       return;
+   }
    const recentWaypointAlreadyExists = _.find(recentWaypoints, (recentWaypoint) => recentWaypoint.address === waypoint.address);

What alternative solutions have you investigated? (Optional)

None.

@b4s36t4
Copy link
Contributor

b4s36t4 commented Aug 30, 2023

I have reported this bug earlier.
https://expensify.slack.com/archives/C049HHMV9SM/p1693286256793039

cc: @hayata-suenaga

@neil-marcellini
Copy link
Contributor

I'm taking this over since it's a distance bug. Actually maybe the person who introduced this should take it if they are online.

@neil-marcellini
Copy link
Contributor

I commented on the PR that caused this regression. We're discussing internally about having a contributor fix this in a PR that's in progress.

@hayata-suenaga
Copy link
Contributor

The cause was identified and being fixed in the PR Neil mentioned above

@neil-marcellini neil-marcellini added Daily KSv2 Reviewing Has a PR in review and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Aug 30, 2023
@neil-marcellini
Copy link
Contributor

Also not a blocker because it's under a beta

@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

@neil-marcellini Still overdue 6 days?! Let's take care of this!

1 similar comment
@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

@neil-marcellini Still overdue 6 days?! Let's take care of this!

@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2023

@neil-marcellini Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

@melvin-bot
Copy link

melvin-bot bot commented Sep 15, 2023

@neil-marcellini 10 days overdue. I'm getting more depressed than Marvin.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Sep 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2023

This issue has not been updated in over 14 days. @neil-marcellini eroding to Weekly issue.

@neil-marcellini
Copy link
Contributor

This was fixed long ago. Idk where but that's ok.

@neil-marcellini
Copy link
Contributor

Oh wait maybe we need to pay the reporting bonus. I'll assign BZ to do that.

@neil-marcellini neil-marcellini added the Bug Something is broken. Auto assigns a BugZero manager. label Sep 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2023

Triggered auto assignment to @johncschuster (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@johncschuster johncschuster added the External Added to denote the issue can be worked on by a contributor label Sep 26, 2023
@melvin-bot melvin-bot bot changed the title IOU Distance - Save button in waypoint editor is not responsive [$500] IOU Distance - Save button in waypoint editor is not responsive Sep 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 26, 2023

Job added to Upwork: https://www.upwork.com/jobs/~016b55cf7fbb4a3cad

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 26, 2023
@Expensify Expensify deleted a comment from melvin-bot bot Sep 26, 2023
@johncschuster johncschuster assigned b4s36t4 and unassigned b4s36t4 Sep 26, 2023
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 26, 2023

📣 @b4s36t4 🎉 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 📖

@johncschuster johncschuster assigned b4s36t4 and unassigned b4s36t4 Sep 26, 2023
@johncschuster
Copy link
Contributor

@b4s36t4 can you please apply for the Reporter Role on Upwork? I'll take care of the reporting bonus after you've done that.

@b4s36t4
Copy link
Contributor

b4s36t4 commented Sep 26, 2023

@johncschuster above offer is for Contributor role mistakenly I have accepted it.

@b4s36t4
Copy link
Contributor

b4s36t4 commented Sep 26, 2023

What do I do?

@johncschuster
Copy link
Contributor

@b4s36t4 No worries. I'll edit it on my end.

@johncschuster
Copy link
Contributor

@b4s36t4 I've manually invited you to a different contract with the Bug Reporter rate. Can you accept that please?

@b4s36t4
Copy link
Contributor

b4s36t4 commented Oct 4, 2023

@johncschuster Accepted new offer. Thanks :)

@johncschuster
Copy link
Contributor

Payment has been issued! Thanks, @b4s36t4!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

9 participants