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-03-25] [$500] Distance confirmation page shows (none) briefly when the map is loading #37850

Closed
6 tasks done
kavimuru opened this issue Mar 6, 2024 · 36 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Mar 6, 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!


Version Number: 1.4.48-0
Reproducible in staging?: y
Reproducible in production?: n
Issue reported by: Applause internal team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Request money > Distance.
  3. Enter addresses and select participants.
  4. Proceed to confirmation page.

Expected Result:

The Distance row will not show (none) when the distance data is loading (production behavior).

Actual Result:

The Distance row shows (none) briefly when the distance data is loading.

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

Bug6404688_1709765507166.bandicam_2024-03-07_06-48-09-918.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0113e37a7ba3d78e1d
  • Upwork Job ID: 1765826141463461888
  • Last Price Increase: 2024-03-07
@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 6, 2024
Copy link

melvin-bot bot commented Mar 6, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Mar 6, 2024
Copy link
Contributor

github-actions bot commented Mar 6, 2024

👋 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 melvin-bot bot added Daily KSv2 and removed Hourly KSv2 labels Mar 6, 2024
Copy link

melvin-bot bot commented Mar 6, 2024

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

@kavimuru
Copy link
Author

kavimuru commented Mar 6, 2024

@cead22 FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@allgandalf
Copy link
Contributor

allgandalf commented Mar 6, 2024

Proposal

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

Distance confirmation page shows (none) briefly when the map is loading

What is the root cause of that problem?

We display merchant as title for distance

<MenuItemWithTopDescription
key={translate('common.distance')}
shouldShowRightIcon={!isReadOnly && canEditDistance}
title={iouMerchant}
description={translate('common.distance')}

So until we get the value of distance from Onyx, we try to display the title which we set as iouMerchant, but for the distance request we do not set any value and hence we see (none) for a brief period of time

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

Change it to display the empty string if data is empty

What alternative solutions did you explore? (Optional)

N/A

@allgandalf
Copy link
Contributor

This isn't a deploy blocker, the PR which made the title to iouMerchant was deployed to production 3 weeks back :)

@nexarvo
Copy link
Contributor

nexarvo commented Mar 6, 2024

Proposal

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

Distance confirmation page shows (none) briefly when the map is loading

What is the root cause of that problem?

There is a delay when loading the iouMerchant and while loading we show the CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT which is '(none)'

<MenuItemWithTopDescription
key={translate('common.distance')}
shouldShowRightIcon={!isReadOnly && canEditDistance}
title={iouMerchant}

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

We can check if the iouMerchant is empty:

- title={iouMerchant}
+ title={isMerchantEmpty ? '' : iouMerchant}

As we have for merchant:

<MenuItemWithTopDescription
key={translate('common.merchant')}
shouldShowRightIcon={!isReadOnly}
title={isMerchantEmpty ? '' : iouMerchant}
description={translate('common.merchant')}
style={[styles.moneyRequestMenuItem]}

What alternative solutions did you explore? (Optional)

@paultsimura
Copy link
Contributor

This isn't a deploy blocker, the PR which made the title to iouMerchant was deployed to production 3 weeks back

@GandalfGwaihir to prove that an issue marked as a blocker is not a blocker, please attach a recording of the same issue happening in production.

@roryabraham roryabraham added Hourly KSv2 and removed Daily KSv2 labels Mar 7, 2024
@paultsimura
Copy link
Contributor

I could reproduce it neither on dev nor staging 🤔
Instead, I see "Route pending", which is expected while we're fetching the route or rate:

image

@cead22 cead22 added Daily KSv2 and removed Hourly KSv2 DeployBlockerCash This issue or pull request should block deployment labels Mar 7, 2024
@cead22
Copy link
Contributor

cead22 commented Mar 7, 2024

I don't think we should block deploys on this, so let's treat it as a regular bug

@cead22
Copy link
Contributor

cead22 commented Mar 7, 2024

I was able to reproduce on staging wek v1.4.48-0

@cead22 cead22 added the External Added to denote the issue can be worked on by a contributor label Mar 7, 2024
@melvin-bot melvin-bot bot changed the title Distance confirmation page shows (none) briefly when the map is loading [$500] Distance confirmation page shows (none) briefly when the map is loading Mar 7, 2024
Copy link

melvin-bot bot commented Mar 7, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0113e37a7ba3d78e1d

@aimane-chnaif
Copy link
Contributor

aimane-chnaif commented Mar 7, 2024

Good catch!
@GandalfGwaihir I see you updated proposal 3 min after @usman-ghani564 posted.

- Change it to display the title for distance
+ Change it to display the empty string if data is empty

ProposalPolice™ 👮🏼 should be coming soon to detect these things

@allgandalf
Copy link
Contributor

from my POV: I was in proceed of updating this changed and the other contributors posted in the mean time

fine with whatever the engineer decides

@cead22
Copy link
Contributor

cead22 commented Mar 8, 2024

The good news is that we have plenty of open bugs and work for contributors :) and in the interest of assigning whoever posted first and being consistent with previous assignments I've done, I'm going to assign @usman-ghani564

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

melvin-bot bot commented Mar 8, 2024

❌ There was an error making the offer to @aimane-chnaif for the Reviewer role. The BZ member will need to manually hire the contributor.

Copy link

melvin-bot bot commented Mar 8, 2024

📣 @usman-ghani564 You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added the Overdue label Mar 11, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Overdue labels Mar 11, 2024
@nexarvo
Copy link
Contributor

nexarvo commented Mar 11, 2024

@aimane-chnaif Please find the PR for this issue here: #38075

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 18, 2024
@melvin-bot melvin-bot bot changed the title [$500] Distance confirmation page shows (none) briefly when the map is loading [HOLD for payment 2024-03-25] [$500] Distance confirmation page shows (none) briefly when the map is loading Mar 18, 2024
Copy link

melvin-bot bot commented Mar 18, 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 Mar 18, 2024
Copy link

melvin-bot bot commented Mar 18, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.53-2 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-03-25. 🎊

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

  • @usman-ghani564 requires payment (Needs manual offer from BZ)
  • @aimane-chnaif requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Mar 18, 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:

  • [@aimane-chnaif] The PR that introduced the bug has been identified. Link to the PR:
  • [@aimane-chnaif] 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:
  • [@aimane-chnaif] 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:
  • [@aimane-chnaif] Determine if we should create a regression test for this bug.
  • [@aimane-chnaif] 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.
  • [@abekkala] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@abekkala
Copy link
Contributor

@usman-ghani564 Can you send me your upwork profile link, I'm having a hard time finding you.

@nexarvo
Copy link
Contributor

nexarvo commented Mar 18, 2024

@abekkala Please find my Upwork profile here: https://www.upwork.com/freelancers/~01b5c4ee99eace8e60

@abekkala
Copy link
Contributor

PAYMENT SUMMARY FOR MAR 25

@abekkala
Copy link
Contributor

@slafortune will be handling payments for me while I'm ooo

@slafortune
Copy link
Contributor

Paid 👍

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. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

9 participants