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-08] [HOLD for payment 2023-12-07] [HOLD for payment 2023-12-06] [$500] Web-No error message if press Save&Continue without fill anything in 2 & next idology question #32104

Closed
6 tasks done
izarutskaya opened this issue Nov 28, 2023 · 24 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. 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

@izarutskaya
Copy link

izarutskaya commented Nov 28, 2023

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


Found when executing PR: #31401

Version Number: v1.4.4-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 URL https://staging.new.expensify.com/
  2. Login with any expensifail account
  3. Go to Settings -> Wallet -> Enable Wallet
  4. Follow the flow until your reach the "Additional details" page
  5. Fill the form with following data: First name: Alberta, Last name: Bobbeth, SSN: 1234, Any other information for the rest of the fields
  6. Tap on "Save & continue"
  7. Change the SSN for 123456789 -> Tap on "Save & continue"
  8. Idology questions should appear
  9. Don't fill anything and press Save & continue -> Errors should appear
  10. Select any response -> Tap on "Save & continue"
  11. Don't fill anything for second question and press Save & continue

Expected Result:

Errors should appear when pressing Save&Continue without filling anything in all idology questions

Actual Result:

No error message when press Save&Continue without filling anything in 2 and next idology question

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

Bug6292867_1701162387966.bandicam_2023-11-28_10-54-49-442.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01645371315accf60d
  • Upwork Job ID: 1729462498357043200
  • Last Price Increase: 2023-11-28
@izarutskaya izarutskaya added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 28, 2023
@melvin-bot melvin-bot bot changed the title Web-No error message if press Save&Continue without fill anything in 2 & next idology question [$500] Web-No error message if press Save&Continue without fill anything in 2 & next idology question Nov 28, 2023
Copy link

melvin-bot bot commented Nov 28, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01645371315accf60d

Copy link

melvin-bot bot commented Nov 28, 2023

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

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

melvin-bot bot commented Nov 28, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

Copy link

melvin-bot bot commented Nov 28, 2023

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

@izarutskaya izarutskaya added the DeployBlockerCash This issue or pull request should block deployment label Nov 28, 2023
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Nov 28, 2023
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.

Copy link

melvin-bot bot commented Nov 28, 2023

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

@tienifr
Copy link
Contributor

tienifr commented Nov 28, 2023

I'm able to raise a PR ASAP if assigned

This comes from this PR.

Proposal

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

No error message when press Save&Continue without filling anything in 2 and next idology question

What is the root cause of that problem?

In this form, we're using the same inputID answer for all the questions, so when we move to the next question, the answer value in the form is still the answer of the previous question, leading to errors do not show.

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

Have different inputID for different questions based on the currentQuestionIndex

const inputID = `answer${currentQuestionIndex}`;

And use it in place of the inputID in places like here and in here

So we still have 1 form, but the questions are separate, which makes sense since all questions are different items of the form and should not share the same ID.

We should understand this as "a Form with multiple different questions", rather than "Multiple forms, each has 1 question"

What alternative solutions did you explore? (Optional)

Set a height to the Form and use key={currentQuestionIndex} so we'll have a different form per question. The form height is because otherwise the form will be rerendered each time the question changes and will cause flickering.

Or we can manually clear the answer value of the form whenever the currentQuestionIndex changes, but I prefer separate inputID of the questions as mentioned in the main solution.

@Pujan92
Copy link
Contributor

Pujan92 commented Nov 28, 2023

Proposal

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

From 2nd idology questions the error isn't shown

What is the root cause of that problem?

Seems the problem comes after this PR where the key isn't been set for FormProvider here

Reason: FormProvider component isn't reset/recreated but uses the old instance only and that leads to pass the validate function bcoz it contains the selected answer from the first idology question.

const validate = (values) => {
const errors = {};
if (!values.answer) {
errors.answer = translate('additionalDetailsStep.selectAnswer');
}

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

We need to assign key to the FormProvider to recreate its instance on the question change.

key={currentQuestion.type}

<FormProvider
formID={ONYXKEYS.WALLET_ADDITIONAL_DETAILS}
onSubmit={submitAnswers}

Result
Screen.Recording.2023-11-28.at.18.22.46.mov

@aoneahsan
Copy link

i clicked the "Enable Wallet" and it redirected me here,
trying to re-create the issue looking before submitting a proposal,

if i try to add a bank manually it does not allow for a address from pakistan, so any idea how i get to the step where it's showing this error?

Screenshot 2023-11-28 at 7 42 46 PM

@situchan
Copy link
Contributor

cc: @kowczarz @s77rt

@s77rt
Copy link
Contributor

s77rt commented Nov 28, 2023

@kowczarz Can you please raise a PR fixing this since it's still within the regression period

@kowczarz
Copy link
Contributor

Sure I will handle this tomorrow morning

@luacmartins
Copy link
Contributor

We might just revert the original PR since it seems like there's another blocker associated with it. We can then work on reintroducing the refactor and fix all the known issues.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 29, 2023
@melvin-bot melvin-bot bot changed the title [$500] Web-No error message if press Save&Continue without fill anything in 2 & next idology question [HOLD for payment 2023-12-06] [$500] Web-No error message if press Save&Continue without fill anything in 2 & next idology question Nov 29, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 29, 2023
Copy link

melvin-bot bot commented Nov 29, 2023

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

Copy link

melvin-bot bot commented Nov 29, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.4-3 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-06. 🎊

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 Nov 29, 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:

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

@c3024 c3024 removed their assignment Nov 29, 2023
@s77rt
Copy link
Contributor

s77rt commented Nov 29, 2023

The rest of the checklist does not apply here. The PR got reverted and we should merge a new one that covers this regression as well

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Nov 29, 2023
@kowczarz
Copy link
Contributor

I've just introduced a PR with a fix of the issue.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Nov 30, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-12-06] [$500] Web-No error message if press Save&Continue without fill anything in 2 & next idology question [HOLD for payment 2023-12-07] [HOLD for payment 2023-12-06] [$500] Web-No error message if press Save&Continue without fill anything in 2 & next idology question Nov 30, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 30, 2023
Copy link

melvin-bot bot commented Nov 30, 2023

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

Copy link

melvin-bot bot commented Nov 30, 2023

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

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

Copy link

melvin-bot bot commented Nov 30, 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:

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

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Dec 1, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-12-07] [HOLD for payment 2023-12-06] [$500] Web-No error message if press Save&Continue without fill anything in 2 & next idology question [HOLD for payment 2023-12-08] [HOLD for payment 2023-12-07] [HOLD for payment 2023-12-06] [$500] Web-No error message if press Save&Continue without fill anything in 2 & next idology question Dec 1, 2023
Copy link

melvin-bot bot commented Dec 1, 2023

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

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

Copy link

melvin-bot bot commented Dec 1, 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:

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

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Feb 9, 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. 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