Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.36k stars 2.79k forks source link

[$500] [HOLD for payment 2023-09-21] In split bill confirmation page Row stay selected even if we deselect it #27341

Closed kavimuru closed 1 year ago

kavimuru commented 1 year ago

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


Action Performed:

  1. Goto any group chat report
  2. Click on + to open options and select Spill bill
  3. Enter amount and go to next
  4. In the participants list try to deselect any participant
  5. Observe it stays selected with the checked icon

    Expected Result:

    Participants row should gets toggled on select/deselect

Actual Result:

Participant row stays selected

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

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

Version Number: v1.3.69-0 Reproducible in staging?: y Reproducible in production?: n 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

https://github.com/Expensify/App/assets/43996225/85686e4f-914f-4c7c-8243-a5437124c7cc

https://github.com/Expensify/App/assets/43996225/df924169-5545-4c80-9d55-3f88fa3a9d61

Expensify/Expensify Issue URL: Issue reported by: @Pujan92 Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694608070230219

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~011bd3267bf049749b
  • Upwork Job ID: 1704694115582894080
  • Last Price Increase: 2023-09-21
melvin-bot[bot] commented 1 year ago

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

melvin-bot[bot] commented 1 year ago

Bug0 Triage Checklist (Main S/O)

kavimuru commented 1 year ago

Proposal from @Pujan92

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

In Split bill participants confirmation page the participant styles stays selected even though we deselect it

What is the root cause of that problem?

It is a regression from https://github.com/Expensify/App/pull/26501 where we applied a new condition for deciding isSelected here option.name === item.searchText. For this page, both values are undefined and it makes the conditional value true. https://github.com/Expensify/App/blob/1baf33af3ba8e603b9cdae7ae8a99cfb5ffb2e63/src/components/OptionsList/BaseOptionsList.js#L180 cc: @rezkiy37

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

Before comparing both values we may need to check any of the value availability so we do not end up with comparing undefined values. (!_.isEmpty(option.name) && option.name === item.searchText)

OSBotify commented 1 year ago

:wave: 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[bot] commented 1 year ago

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

rezkiy37 commented 1 year ago

Hi, I’m Michael (Mykhailo) from Callstack and I would like to work in this issue, because I am the author of the broken PR.

rezkiy37 commented 1 year ago

The PR already reviewing internally, public review gonna be soon.

melvin-bot[bot] commented 1 year ago

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

melvin-bot[bot] commented 1 year ago

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.3.69-2 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-09-21. :confetti_ball:

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

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

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

melvin-bot[bot] commented 1 year ago

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:

zanyrenney commented 1 year ago

Only payment due is: @Pujan92 for reporting bonus.

melvin-bot[bot] commented 1 year ago

Job added to Upwork: https://www.upwork.com/jobs/~011bd3267bf049749b

melvin-bot[bot] commented 1 year ago

Current assignee @zanyrenney is eligible for the External assigner, not assigning anyone new.

melvin-bot[bot] commented 1 year ago

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

zanyrenney commented 1 year ago

no more people needed, just added external for upwork job

zanyrenney commented 1 year ago

@Pujan92 invited you for reporting bonus - https://www.upwork.com/jobs/~011bd3267bf049749b

Pujan92 commented 1 year ago

@Pujan92 invited you for reporting bonus - https://www.upwork.com/jobs/~011bd3267bf049749b

Thanks @zanyrenney , Accepted!

zanyrenney commented 1 year ago

offer is pending @Pujan92

Pujan92 commented 1 year ago

Sorry, just accepted.

zanyrenney commented 1 year ago

Paid! Thanks for your work here @Pujan92

Pujan92 commented 1 year ago

Again sorry @zanyrenney , I got paid more, it should be $50 so I refunded $200. Hope you recieved it as I am doing refund for the first time.