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-08-05] [$250] Dupe detect - Distance field is not disabled and not here page opens after changing distance #45833

Closed
6 tasks done
m-natarajan opened this issue Jul 20, 2024 · 30 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 Jul 20, 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: 9.0.10-2
Reproducible in staging ?: Y
Reproducible in production?: No 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:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Submit two same distance expenses (same distance).
  4. Go to transactiont thread of any expense.
  5. Click Review duplicates.
  6. Click Keep this one.
  7. Proceed to confirmation page.
  8. Click on the distance field.
  9. Change the distance.
  10. Click Confirm.

Expected Result:

In Step 8, distance field should be disabled.

Actual Result:

In Step 8, distance field is not disabled.
After changing the distance and confirming it, app opens not here page (Step 10).

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

Bug6547831_1721455965852.20240720_140844.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0184066b98a5cfeddb
  • Upwork Job ID: 1814753910382559620
  • Last Price Increase: 2024-07-23
  • Automatic offers:
    • c3024 | Reviewer | 103200665
Issue OwnerCurrent Issue Owner: @RachCHopkins
@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 Jul 20, 2024
Copy link

melvin-bot bot commented Jul 20, 2024

Triggered auto assignment to @RachCHopkins (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.

Copy link

melvin-bot bot commented Jul 20, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jul 20, 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.

@mountiny
Copy link
Contributor

@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Jul 20, 2024
Copy link

melvin-bot bot commented Jul 20, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0184066b98a5cfeddb

@melvin-bot melvin-bot bot changed the title Dupe detect - Distance field is not disabled and not here page opens after changing distance [$250] Dupe detect - Distance field is not disabled and not here page opens after changing distance Jul 20, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 20, 2024
Copy link

melvin-bot bot commented Jul 20, 2024

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

@mountiny mountiny changed the title [$250] Dupe detect - Distance field is not disabled and not here page opens after changing distance [$125] Dupe detect - Distance field is not disabled and not here page opens after changing distance Jul 20, 2024
Copy link

melvin-bot bot commented Jul 20, 2024

Upwork job price has been updated to $125

@parasharrajat
Copy link
Member

This is an easy one.

@mountiny
Copy link
Contributor

Making it external for half price as it seems quite niche

@parasharrajat
Copy link
Member

parasharrajat commented Jul 20, 2024

Proposal

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

Distance field is not disabled and which opens not here page.

What is the root cause of that problem?

we are not blocking interactions for distance fields on MoneyRequestView component.

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

We just need to pass readonly prop to interactive prop on all distance related fields

<MenuItemWithTopDescription

What alternative solutions did you explore? (Optional)

@gijoe0295
Copy link
Contributor

gijoe0295 commented Jul 20, 2024

Proposal

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

In Step 8, distance field is not disabled.

What is the root cause of that problem?

readonly is not taken into account for distance field.

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

Add && readonly to distance field:

interactive={canEditDistance}

@parasharrajat
Copy link
Member

Ah damn, I didn't find the template in Time.

@etCoderDysto
Copy link
Contributor

Proposal

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

Distance field is not disabled and not here page opens after changing distance

What is the root cause of that problem?

We are not checking readonly here

<MenuItemWithTopDescription
description={translate('common.distance')}
title={getPendingFieldAction('waypoints') ? translate('iou.fieldPending') : distanceToDisplay}
interactive={canEditDistance}
shouldShowRightIcon={canEditDistance}

and here
<MenuItemWithTopDescription
description={translate('common.distance')}
title={transactionMerchant}
interactive={canEditDistance}

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

we should pass

 interactive={canEditDistance && !readonly}

What alternative solutions did you explore? (Optional)

@mountiny
Copy link
Contributor

@parasharrajat since this is coming from PR you have reviewed, I think you are welcome to raise a fix

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 22, 2024
@parasharrajat
Copy link
Member

@mountiny PR is created.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 23, 2024
@mountiny mountiny changed the title [$125] Dupe detect - Distance field is not disabled and not here page opens after changing distance [$250] Dupe detect - Distance field is not disabled and not here page opens after changing distance Jul 23, 2024
Copy link

melvin-bot bot commented Jul 23, 2024

Upwork job price has been updated to $250

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 29, 2024
@melvin-bot melvin-bot bot changed the title [$250] Dupe detect - Distance field is not disabled and not here page opens after changing distance [HOLD for payment 2024-08-05] [$250] Dupe detect - Distance field is not disabled and not here page opens after changing distance Jul 29, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 29, 2024
Copy link

melvin-bot bot commented Jul 29, 2024

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

Copy link

melvin-bot bot commented Jul 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.13-4 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-08-05. 🎊

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

Copy link

melvin-bot bot commented Jul 29, 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:

  • [@parasharrajat / @c3024] The PR that introduced the bug has been identified. Link to the PR:
  • [@parasharrajat / @c3024] 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:
  • [@parasharrajat / @c3024] 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:
  • [@parasharrajat / @c3024] Determine if we should create a regression test for this bug.
  • [@parasharrajat / @c3024] 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.
  • [@RachCHopkins] 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 Aug 5, 2024
@c3024
Copy link
Contributor

c3024 commented Aug 8, 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:

  • [@c3024] The PR that introduced the bug has been identified. Link to the PR: This was not a bug introduced by a PR. It was known when working on the previous PR which did not include these changes.
  • [@c3024] 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: NA
  • [@c3024] 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: NA
  • [@c3024] Determine if we should create a regression test for this bug. Yes
  • [@c3024] 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.

Regression Test Proposal

  1. Go to a workspace chat
  2. Submit two identical distance requests (identical waypoints) to this workspace chat.
  3. Notice the review duplicate button pops up.
  4. Click Review Duplicate.
  5. Click Keep this one for any one transaction on the review page.
  6. Go through the flow till Confirm page.
  7. Click Distance field on Confirm page.
  8. Verify that the Distance field is not editable and no edit page opens up.

@melvin-bot melvin-bot bot added the Overdue label Aug 8, 2024
@mountiny
Copy link
Contributor

mountiny commented Aug 8, 2024

I believe the summary is to $250 to @parasharrajat and to @c3024

Copy link

melvin-bot bot commented Aug 8, 2024

@parasharrajat, @RachCHopkins, @mountiny, @c3024 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@RachCHopkins
Copy link
Contributor

RachCHopkins commented Aug 8, 2024

Payment Summary:

Contributor: @c3024 paid $250 via Upwork

Contributor+: @parasharrajat due $250 via NewDot

Upwork job here

@RachCHopkins
Copy link
Contributor

Contributor has been paid, the contract has been completed, and the Upwork post has been closed.

@parasharrajat
Copy link
Member

Payment requested as per #45833 (comment)

@JmillsExpensify
Copy link

$250 approved for @parasharrajat

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
Archived in project
Development

No branches or pull requests

9 participants