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

[$250] Track expense - Distance is not editable after expense tracking is created #40879

Closed
6 tasks done
kbecciv opened this issue Apr 24, 2024 · 10 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Apr 24, 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.65-0
Reproducible in staging?: y
Reproducible in production?: y
Issue found when executing PR: #39956
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Self DM.
  3. Track a distance expense.
  4. Go to expense thread.

Expected Result:

Distance should be editable.

Actual Result:

Distance is not editable.

Workaround:

n/a

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

Bug6460028_1713952302545.20240424_174902.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01aa26b2aab67f7bd8
  • Upwork Job ID: 1784826184446623744
  • Last Price Increase: 2024-04-29
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 24, 2024
Copy link

melvin-bot bot commented Apr 24, 2024

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

@kbecciv
Copy link
Author

kbecciv commented Apr 24, 2024

We think that this bug might be related to #vip-vsb

@kbecciv
Copy link
Author

kbecciv commented Apr 24, 2024

@kadiealexander 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

Proposal

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

Cannot edit distance on MoneyRequestView if the report is a Track Expense type.

What is the root cause of that problem?

We have disabled the ability to edit distances in Track Expens by using !isTrackExpense:

// TODO: remove the !isTrackExpense from this condition after this fix: https://github.com/Expensify/Expensify/issues/382786
const canEditDistance = ReportUtils.canEditFieldOfMoneyRequest(parentReportAction, CONST.EDIT_REQUEST_FIELD.DISTANCE) && !isTrackExpense;

We also have a note above to remove the extra condition.

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

We need to remove the extra condition && !isTrackExpense. This will make the request editable on Track Expense as well
Screenshot 2024-04-25 at 3 21 24 AM

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot melvin-bot bot added the Overdue label Apr 26, 2024
@kadiealexander kadiealexander added the External Added to denote the issue can be worked on by a contributor label Apr 29, 2024
@melvin-bot melvin-bot bot changed the title Track expense - Distance is not editable after expense tracking is created [$250] Track expense - Distance is not editable after expense tracking is created Apr 29, 2024
Copy link

melvin-bot bot commented Apr 29, 2024

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

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

melvin-bot bot commented Apr 29, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Apr 29, 2024
@Santhosh-Sellavel
Copy link
Collaborator

@kadiealexander Please reassign a new C+ Here. Unassigning due to low availability.

@Santhosh-Sellavel Santhosh-Sellavel removed their assignment Apr 29, 2024
@Santhosh-Sellavel
Copy link
Collaborator

@allroundexperts Will take over this as C+!

@melvin-bot melvin-bot bot added the Overdue label May 1, 2024
@melvin-bot melvin-bot bot removed Help Wanted Apply this label when an issue is open to proposals by contributors Overdue labels May 2, 2024
@kadiealexander
Copy link
Contributor

@allroundexperts could you please review the existing proposals? Thanks!

@neil-marcellini
Copy link
Contributor

This is intentional and will be fixed by this PR, and handled by the related issue [App] [HOLD Web-E 41549] Allow editing distance for tracked expenses

@neil-marcellini neil-marcellini closed this as not planned Won't fix, can't repro, duplicate, stale May 4, 2024
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 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Archived in project
Development

No branches or pull requests

6 participants