Skip to content

[HOLD for payment 2024-07-10] [$250] Subscription - "common.error.pleaseCompleteForm" is shown when submitting empty survey #44075

Closed

Description

@kbecciv

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: 1.4.86-0
Reproducible in staging?: y
Reproducible in production?: n
Issue found when executing PR: #43367
Issue reported by: Applause - Internal team

Action Performed:

  1. Log in to ND with Gmail account.
  2. Go to staging.new.expensify.com/settings/subscription
  3. Disable auto-renew toggle.
  4. Click Submit without selecting anything.

Expected Result:

Proper error message will be displayed.

Actual Result:

"common.error.pleaseCompleteForm" is shown.

Workaround:

n/a

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

Bug6519286_1718879890831.20240620_123641.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c24a0e46790d2f26
  • Upwork Job ID: 1803808097528280767
  • Last Price Increase: 2024-06-20
  • Automatic offers:
    • alitoshmatov | Reviewer | 102813104
    • neonbhai | Contributor | 102813106
Issue OwnerCurrent Issue Owner: @MitchExpensify

Activity

  1. added
    DeployBlockerCash
    DeployBlocker
    on Jun 20, 2024
  2. melvin-bot commented on Jun 20, 2024

    @melvin-bot

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

  3. github-actions commented on Jun 20, 2024

    @github-actions
    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.
  4. kbecciv commented on Jun 20, 2024

    @kbecciv
    Author

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

  5. neonbhai commented on Jun 20, 2024

    @neonbhai
    Contributor

    Proposal

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

    Subscription - "common.error.pleaseCompleteForm" is shown when submitting empty survey

    What is the root cause of that problem?

    We don't use translate to pass the correct message here:

    message="common.error.pleaseCompleteForm"

    Hence just the string is rendered

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

    We will use the translate hook to refer to the correct message here:

    message="common.error.pleaseCompleteForm"

  6. etCoderDysto commented on Jun 20, 2024

    @etCoderDysto
    Contributor

    Proposal

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

    "common.error.pleaseCompleteForm" is shown as an error message

    What is the root cause of that problem?

    In FeedBackSurvey component we are passing 'common.error.pleaseCompleteForm' key as a value to message prop instead of calling translate method with the key to fetch the error message from en.ts and es.ts.

    <FormAlertWithSubmitButton
    isAlertVisible={shouldShowReasonError}
    onSubmit={handleSubmit}
    message="common.error.pleaseCompleteForm"

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

    Pass translate('common.error.pleaseCompleteForm') to message prop here

    What alternative solutions did you explore? (Optional)

  7. carlosmiceli commented on Jun 20, 2024

    @carlosmiceli
    Contributor

    Can't reproduce in prod, but it seems to be a new feature to show subscription inside ND.

  8. added
    External
    and removed
    DeployBlockerCash
    DeployBlocker
    Hourly
    on Jun 20, 2024
  9. 25 remaining items

  10. added
    Weekly
    Awaiting Payment
    on Jul 3, 2024
  11. changed the title [-][$250] Subscription - "common.error.pleaseCompleteForm" is shown when submitting empty survey[/-] [+][HOLD for payment 2024-07-10] [$250] Subscription - "common.error.pleaseCompleteForm" is shown when submitting empty survey[/+] on Jul 3, 2024
  12. removed
    Reviewing
    on Jul 3, 2024
  13. melvin-bot commented on Jul 3, 2024

    @melvin-bot

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

  14. melvin-bot commented on Jul 3, 2024

    @melvin-bot

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

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

  15. melvin-bot commented on Jul 3, 2024

    @melvin-bot

    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:

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

    @MitchExpensify
    Contributor

    Payment summary:

  17. cretadn22 commented on Jul 5, 2024

    @cretadn22
    Contributor

    @MitchExpensify Should I get 50$ as mentioned here

  18. MitchExpensify commented on Jul 5, 2024

    @MitchExpensify
    Contributor

    Updated, thanks @cretadn22 !

  19. alitoshmatov commented on Jul 6, 2024

    @alitoshmatov
    Contributor
    • The PR that introduced the bug has been identified. Link to the PR: feat: Subscription settings UI #42990
    • 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: https://github.com/Expensify/App/pull/42990/files#r1667441580
    • 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: No need
    • Determine if we should create a regression test for this bug: No need since it is about hardcoded error message which is easily noticeable
  20. added
    Daily
    and removed
    Weekly
    on Jul 10, 2024
  21. MitchExpensify commented on Jul 10, 2024

    @MitchExpensify
    Contributor

    Paid and contracts ended

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineeringExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions