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

[$500] Web-Bank Account-Error message disappears when navigate back to Company information page #34193

Closed
5 of 6 tasks
lanitochka17 opened this issue Jan 9, 2024 · 29 comments
Closed
5 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Internal Requires API changes or must be handled by Expensify staff Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Jan 9, 2024

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.23-0
Reproducible in staging?: Y
Reproducible in production?: Unable to check prod
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:

Issue found when executing PR #33865

Action Performed:

  1. Go to Workspace > Bank account > Connect manually
  2. Enter routing and account number >> Continue
  3. Enter emojis in Legal business name, Company address and City fields
  4. Verify that Invalid errors show for these fields
  5. Navigate back to Connect bank account page
  6. Click Continue

Expected Result:

Error messages Company information page should remain when user navigates back there

Actual Result:

Error message disappears when navigate back to Company information page

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • Windows: Chrome
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6337125_1704834699463.Recording__1722.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01aac2f98317031f8d
  • Upwork Job ID: 1745116901033091072
  • Last Price Increase: 2024-01-31
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Jan 9, 2024
Copy link
Contributor

github-actions bot commented Jan 9, 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.

Copy link

melvin-bot bot commented Jan 9, 2024

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

@AndrewGable
Copy link
Contributor

This does not happen on production from my testing, so it seems like a legit deploy blocker if we want to block on it.

@AndrewGable
Copy link
Contributor

@grgia @parasharrajat @tienifr - Would we like to move forward with a fix or revert?

@thienlnam
Copy link
Contributor

thienlnam commented Jan 10, 2024

I don't think this needs to be a blocker - I'm not sure if it ever retained the error if you navigate to a different page since I can reproduce on production with a different field error

This is what happens on production with a different error (not emojis). We have the same outcome

295448886-0974abfa-e2dc-4608-8b09-c6ef334c860a.mov

@thienlnam thienlnam removed the DeployBlockerCash This issue or pull request should block deployment label Jan 10, 2024
@parasharrajat
Copy link
Member

parasharrajat commented Jan 10, 2024

I don't think #33865 is responsible for this issue in any way. We just added another validation for emoji. Error handling logic was not touched.

Also, this is how the form works for now where we are saving drafts. A possible solution can be to prevent saving drafts when there is an error on the field i.e. Only save drafts when the value passes validation. This is a feature change.

Or do nothing. Pressing submit will trigger the validation again.

@AndrewGable AndrewGable added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. and removed Hourly KSv2 labels Jan 10, 2024
Copy link

melvin-bot bot commented Jan 10, 2024

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

@AndrewGable AndrewGable added the External Added to denote the issue can be worked on by a contributor label Jan 10, 2024
@melvin-bot melvin-bot bot changed the title Web-Bank Account-Error message disappears when navigate back to Company information page [$500] Web-Bank Account-Error message disappears when navigate back to Company information page Jan 10, 2024
Copy link

melvin-bot bot commented Jan 10, 2024

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

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

melvin-bot bot commented Jan 10, 2024

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

@AndrewGable
Copy link
Contributor

Adding @kevinksullivan to figure out if/how we want to fix this!

@abdulrahuman5196
Copy link
Contributor

Thank you. Do let me know if we want to fix this issue.

Copy link

melvin-bot bot commented Jan 16, 2024

@AndrewGable, @kevinksullivan, @abdulrahuman5196 Huh... This is 4 days overdue. Who can take care of this?

@AndrewGable
Copy link
Contributor

@kevinksullivan any thoughts?

@melvin-bot melvin-bot bot removed the Overdue label Jan 16, 2024
@AndrewGable AndrewGable added Weekly KSv2 and removed Daily KSv2 labels Jan 19, 2024
@melvin-bot melvin-bot bot removed the Overdue label Jan 19, 2024
@DylanDylann
Copy link
Contributor

DylanDylann commented Jan 22, 2024

Proposal

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

  • Web-Bank Account-Error message disappears when navigate back to Company information page

What is the root cause of that problem?

  • Once we navigate back to Company information page, the validate function is not called (because there is no blur, submit actions, ... that will trigger the validate function), so the error message disappears. (Need to confirm the expected behavior here)

There is an additional bug:

  • When we navigate back to Company information page, then focus on Company address, then focus on Phone number, only the Company address is validated, and the Legel business name is not validated.
  • RCA: We only validate the input that we have touched, in this case, the Legal business name was not touched before, so it is not validated.

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

  • This change will fix the There is an additional bug that I mentioned above.
  • We have a logic that will set the initial value for the inputs below:
    const [inputValues, setInputValues] = useState(() => ({...draftValues}));
  • So, with the input having an empty initial value, we should treat it as being touched. Do it by updating the above to:
        const [inputValues, setInputValues] = useState(() => {
            const draftValuesKeys = _.keys(draftValues);
            draftValuesKeys.forEach((key) => {
                if (draftValues[key]) {
                    setTouchedInput(key);
                }
            });
            return {...draftValues};
        });
  • Then

What alternative solutions did you explore? (Optional)

  • NA

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jan 22, 2024
Copy link

melvin-bot bot commented Jan 24, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Jan 24, 2024
@abdulrahuman5196
Copy link
Contributor

Adding @kevinksullivan to figure out if/how we want to fix this!

@kevinksullivan Could you kindly check on this?

@melvin-bot melvin-bot bot removed the Overdue label Jan 28, 2024
Copy link

melvin-bot bot commented Jan 30, 2024

@AndrewGable @kevinksullivan @abdulrahuman5196 this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Jan 30, 2024
Copy link

melvin-bot bot commented Jan 31, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Feb 1, 2024

@AndrewGable, @kevinksullivan, @abdulrahuman5196 Whoops! This issue is 2 days overdue. Let's get this updated quick!

Copy link

melvin-bot bot commented Feb 5, 2024

@AndrewGable, @kevinksullivan, @abdulrahuman5196 Still overdue 6 days?! Let's take care of this!

Copy link

melvin-bot bot commented Feb 6, 2024

@AndrewGable @kevinksullivan @abdulrahuman5196 this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:

  • Decide whether any proposals currently meet our guidelines and can be approved as-is today
  • If no proposals meet that standard, please take this issue internal and treat it as one of your highest priorities
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

@melvin-bot melvin-bot bot added Internal Requires API changes or must be handled by Expensify staff and removed 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 labels Feb 6, 2024
Copy link

melvin-bot bot commented Feb 6, 2024

Current assignee @abdulrahuman5196 is eligible for the Internal assigner, not assigning anyone new.

Copy link

melvin-bot bot commented Feb 7, 2024

@AndrewGable, @kevinksullivan, @abdulrahuman5196 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

Copy link

melvin-bot bot commented Feb 9, 2024

@AndrewGable, @kevinksullivan, @abdulrahuman5196 10 days overdue. I'm getting more depressed than Marvin.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Feb 14, 2024
Copy link

melvin-bot bot commented Feb 14, 2024

This issue has not been updated in over 14 days. @AndrewGable, @kevinksullivan, @abdulrahuman5196 eroding to Weekly issue.

@melvin-bot melvin-bot bot removed the Overdue label Feb 14, 2024
@DylanDylann
Copy link
Contributor

@kevinksullivan Please help check this comment once you have a chance

@abdulrahuman5196
Copy link
Contributor

Bump @kevinksullivan / @AndrewGable

@kevinksullivan
Copy link
Contributor

Sorry I missed this. But I don't think this is worth fixing, as these patterns are being changed to one-be-one in other projects as is. Going to close this out.

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. Engineering Internal Requires API changes or must be handled by Expensify staff Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants