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 2023-12-28] [HOLD for payment 2023-12-12] [$500] BA - Last character of input fields is removed after coming back to BA form #32386

Closed
6 tasks done
lanitochka17 opened this issue Dec 1, 2023 · 20 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Reviewing Has a PR in review Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Dec 1, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.7-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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go to Settings > Workspaces
  2. Select a workspace
  3. Go to "Bank account"
  4. Click on "Connect manually"
  5. Enter the routing number and the account number
  6. Click on the arrow to go back
  7. Click on "Connect manually" again

Expected Result:

The information entered before should remain untouched

Actual Result:

The last character of the fields is being removed

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

Add any screenshot/video evidence

Bug6297783_1701458813809.bandicam_2023-12-01_14-37-08-619.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01350ef5348b72e4c8
  • Upwork Job ID: 1731701564650864640
  • Last Price Increase: 2023-12-04
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Dec 1, 2023
Copy link
Contributor

github-actions bot commented Dec 1, 2023

👋 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.

Copy link

melvin-bot bot commented Dec 1, 2023

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

@bernhardoj
Copy link
Contributor

bernhardoj commented Dec 2, 2023

Proposal

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

The last character of bank account input is removed after reopening the page.

What is the root cause of that problem?

This is a regression from #30996.

Every time the input change, we save it to the draft.

if (propsToParse.shouldSaveDraft) {
FormActions.setDraftValues(formID, {[inputKey]: value});
}

The problem is, we use value. value itself holds the current value, so the value saved is the current value, not the new value. That's why the last character is not saved to the draft.

const value = !_.isUndefined(inputValues[`${inputID}ToDisplay`]) ? inputValues[`${inputID}ToDisplay`] : inputValues[inputID];

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

We should save the new changed value to the draft by using inputValue.

onInputChange: (inputValue, key) => {

This will solve #32378 too

Copy link

melvin-bot bot commented Dec 4, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@tgolen tgolen added the Bug Something is broken. Auto assigns a BugZero manager. label Dec 4, 2023
Copy link

melvin-bot bot commented Dec 4, 2023

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

This comment was marked as off-topic.

@melvin-bot melvin-bot bot removed the Overdue label Dec 4, 2023
@tgolen tgolen added Overdue External Added to denote the issue can be worked on by a contributor labels Dec 4, 2023
@melvin-bot melvin-bot bot changed the title BA - Last character of input fields is removed after coming back to BA form [$500] BA - Last character of input fields is removed after coming back to BA form Dec 4, 2023
Copy link

melvin-bot bot commented Dec 4, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01350ef5348b72e4c8

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 4, 2023
Copy link

melvin-bot bot commented Dec 4, 2023

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

@melvin-bot melvin-bot bot removed the Overdue label Dec 4, 2023
@aimane-chnaif
Copy link
Contributor

I wonder if #30996 should be reverted since it caused multiple deploy blockers

@tgolen
Copy link
Contributor

tgolen commented Dec 4, 2023

@bernhardoj thanks for the initial investigation. Yeah, @aimane-chnaif that's a good question. It seems like there were a couple refactors and reverts of this code which caused the variable names value and inputValue to get out of sync. The more small fixes we merge without reverting, the harder it is to do a revert.

@luacmartins, your opinion here would be helpful on how you think we should proceed.

@luacmartins
Copy link
Contributor

I think we should just revert the PR since it caused multiple blockers and let the original contributor work on a fix since this is still within the regression period. Here's the revert PR - #32440

@yuwenmemon
Copy link
Contributor

Revert deployed, closing this out!

Copy link

melvin-bot bot commented Dec 4, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Hourly KSv2 labels Dec 5, 2023
@melvin-bot melvin-bot bot changed the title [$500] BA - Last character of input fields is removed after coming back to BA form [HOLD for payment 2023-12-12] [$500] BA - Last character of input fields is removed after coming back to BA form Dec 5, 2023
Copy link

melvin-bot bot commented Dec 5, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.7-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 2023-12-12. 🎊

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

Copy link

melvin-bot bot commented Dec 5, 2023

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:

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

@s77rt
Copy link
Contributor

s77rt commented Dec 5, 2023

The rest of the checklist does not apply as the PR got reverted.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Dec 6, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Dec 21, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-12-12] [$500] BA - Last character of input fields is removed after coming back to BA form [HOLD for payment 2023-12-28] [HOLD for payment 2023-12-12] [$500] BA - Last character of input fields is removed after coming back to BA form Dec 21, 2023
Copy link

melvin-bot bot commented Dec 21, 2023

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 21, 2023
Copy link

melvin-bot bot commented Dec 21, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.14-6 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 2023-12-28. 🎊

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

  • @s77rt requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Dec 21, 2023

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:

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

@s77rt
Copy link
Contributor

s77rt commented Dec 22, 2023

I don't think the checklist applies here as the offending PR got reverted.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Feb 22, 2024
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. DeployBlockerCash This issue or pull request should block deployment Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants