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 2024-11-11] [HOLD for payment 2024-11-07] [$125] Expensify Card - Unable to proceed with empty Address line 2 field when adding missing details #51654

Closed
4 of 8 tasks
lanitochka17 opened this issue Oct 29, 2024 · 25 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 29, 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: 9.0.55-1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: applausetester+khcategory17@applause.expensifail.com
Issue reported by: Applause - Internal Team

Action Performed:

Precondition:

  • User has assigned themselves a physical card
  • User personal details have not been added
  1. Go to staging.new.expensify.com
  2. Go to workspace chat
  3. Click Add missing details
  4. Proceed to address step
  5. Enter address while leaving Address line 2 field empty
  6. Click Next

Expected Result:

User should be able to proceed when Address line 2 field is empty (production behavior)

Actual Result:

User is unable to proceed when Address line 2 field is empty

Workaround:

Unknown

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6649174_1730198790308.20241029_184246.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021851264059586500401
  • Upwork Job ID: 1851264059586500401
  • Last Price Increase: 2024-10-29
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @garrettmknight
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Oct 29, 2024
Copy link

melvin-bot bot commented Oct 29, 2024

Triggered auto assignment to @Beamanator (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Oct 29, 2024

💬 A slack conversation has been started in #expensify-open-source

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.

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-collect - Release 2

@NJ-2020
Copy link
Contributor

NJ-2020 commented Oct 29, 2024

Regression PR: #51231

It's because we will show the field required error for all step fields

const validate = useCallback(
(values: FormOnyxValues<typeof ONYXKEYS.FORMS.PERSONAL_DETAILS_FORM>): FormInputErrors<typeof ONYXKEYS.FORMS.PERSONAL_DETAILS_FORM> => {
const errors = ValidationUtils.getFieldRequiredErrors(values, STEP_FIELDS);

const STEP_FIELDS = [INPUT_IDS.ADDRESS_LINE_1, INPUT_IDS.ADDRESS_LINE_2, INPUT_IDS.CITY, INPUT_IDS.STATE, INPUT_IDS.ZIP_POST_CODE, INPUT_IDS.COUNTRY];

And we also check it again for the required fields here
const addressRequiredFields = [INPUT_IDS.ADDRESS_LINE_1, INPUT_IDS.CITY, INPUT_IDS.COUNTRY, INPUT_IDS.STATE] as const;
addressRequiredFields.forEach((fieldKey) => {
const fieldValue = values[fieldKey] ?? '';
if (ValidationUtils.isRequiredFulfilled(fieldValue)) {
return;
}
errors[fieldKey] = translate('common.error.fieldRequired');
});

Instead of passing STEP_FIELDS we can pass addressRequiredFields here

const errors = ValidationUtils.getFieldRequiredErrors(values, STEP_FIELDS);
const addressRequiredFields = [INPUT_IDS.ADDRESS_LINE_1, INPUT_IDS.CITY, INPUT_IDS.COUNTRY, INPUT_IDS.STATE] as const;

Alternatively, we can revert this variable to the old one to fix this issue

const validate = useCallback(
(values: FormOnyxValues<typeof ONYXKEYS.FORMS.PERSONAL_DETAILS_FORM>): FormInputErrors<typeof ONYXKEYS.FORMS.PERSONAL_DETAILS_FORM> => {
const errors = ValidationUtils.getFieldRequiredErrors(values, STEP_FIELDS);

const errors: FormInputErrors<typeof ONYXKEYS.FORMS.PERSONAL_DETAILS_FORM> = {};

@hungvu193
Copy link
Contributor

cc @burczu it look like it came from our PR

@Beamanator
Copy link
Contributor

Ping'd @burczu in slack, when they comment here I can assign them 👍

@burczu
Copy link
Contributor

burczu commented Oct 29, 2024

Ok, I confirm this is regression from #51231 and as @NJ-2020 pointed out, this line should just not be changed:

const errors = ValidationUtils.getFieldRequiredErrors(values, STEP_FIELDS); 

Please assign me and I'll prepare a fix.

@hungvu193
Copy link
Contributor

Thank you @burczu

@Beamanator Beamanator added the Bug Something is broken. Auto assigns a BugZero manager. label Oct 29, 2024
Copy link

melvin-bot bot commented Oct 29, 2024

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

@Beamanator
Copy link
Contributor

Beamanator commented Oct 29, 2024

Thanks @burczu 🙏

Assigning Bug b/c I believe we should pay @NJ-2020 at least something for helping us find the fix quick, right @garrettmknight ? 🙏

@garrettmknight garrettmknight added the External Added to denote the issue can be worked on by a contributor label Oct 29, 2024
@melvin-bot melvin-bot bot changed the title Expensify Card - Unable to proceed with empty Address line 2 field when adding missing details [$250] Expensify Card - Unable to proceed with empty Address line 2 field when adding missing details Oct 29, 2024
Copy link

melvin-bot bot commented Oct 29, 2024

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

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

melvin-bot bot commented Oct 29, 2024

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

@garrettmknight garrettmknight 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 Oct 29, 2024
@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Oct 29, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Hourly KSv2 labels Oct 29, 2024
@burczu
Copy link
Contributor

burczu commented Oct 29, 2024

The PR with the fix is ready: #51662

@garrettmknight garrettmknight changed the title [$250] Expensify Card - Unable to proceed with empty Address line 2 field when adding missing details [$125] Expensify Card - Unable to proceed with empty Address line 2 field when adding missing details Oct 29, 2024
Copy link

melvin-bot bot commented Oct 29, 2024

Upwork job price has been updated to $125

@hungvu193
Copy link
Contributor

That was quick 🚀. I'm on it

@garrettmknight
Copy link
Contributor

@NJ-2020 just sent you an offer for finding this one quick.

@NJ-2020
Copy link
Contributor

NJ-2020 commented Oct 29, 2024

Thank you @garrettmknight @Beamanator

Offer accepted

Beamanator added a commit that referenced this issue Oct 29, 2024
…dress-line-required-issue

[CP Staging] [#51654] - second address line required issue
OSBotify pushed a commit that referenced this issue Oct 29, 2024
…dress-line-required-issue

[CP Staging] [#51654] - second address line required issue

(cherry picked from commit 12db47b)

(CP triggered by Beamanator)
@Beamanator
Copy link
Contributor

Confirmed fixed on staging! Marking NAB - but won't close till we pay out @NJ-2020 👍

@Beamanator Beamanator added Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review DeployBlockerCash This issue or pull request should block deployment labels Oct 30, 2024
@garrettmknight
Copy link
Contributor

@NJ-2020 has been paid, closing.

Copy link

melvin-bot bot commented Oct 30, 2024

@garrettmknight @Beamanator Be sure to fill out the Contact List!

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Oct 31, 2024
@melvin-bot melvin-bot bot changed the title [$125] Expensify Card - Unable to proceed with empty Address line 2 field when adding missing details [HOLD for payment 2024-11-07] [$125] Expensify Card - Unable to proceed with empty Address line 2 field when adding missing details Oct 31, 2024
Copy link

melvin-bot bot commented Oct 31, 2024

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

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

  • @burczu does not require payment (Contractor)
  • @hungvu193 requires payment through NewDot Manual Requests
  • @NJ-2020 requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Oct 31, 2024

@hungvu193 @garrettmknight The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Nov 4, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-11-07] [$125] Expensify Card - Unable to proceed with empty Address line 2 field when adding missing details [HOLD for payment 2024-11-11] [HOLD for payment 2024-11-07] [$125] Expensify Card - Unable to proceed with empty Address line 2 field when adding missing details Nov 4, 2024
Copy link

melvin-bot bot commented Nov 4, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.56-9 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 2024-11-11. 🎊

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

  • @burczu does not require payment (Contractor)
  • @hungvu193 requires payment through NewDot Manual Requests
  • @NJ-2020 requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Nov 4, 2024

@hungvu193 @garrettmknight The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

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 Weekly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants