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-07-10] [$250] Subscription - "common.error.pleaseCompleteForm" is shown when submitting empty survey #44075

Closed
4 of 6 tasks
kbecciv opened this issue Jun 20, 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. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Jun 20, 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.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
@kbecciv kbecciv added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jun 20, 2024
Copy link

melvin-bot bot commented Jun 20, 2024

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

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.

@kbecciv
Copy link
Author

kbecciv commented Jun 20, 2024

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

@neonbhai
Copy link
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"

@etCoderDysto
Copy link
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)

@carlosmiceli
Copy link
Contributor

carlosmiceli commented Jun 20, 2024

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

@carlosmiceli carlosmiceli added External Added to denote the issue can be worked on by a contributor Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API Hourly KSv2 labels Jun 20, 2024
@melvin-bot melvin-bot bot changed the title Subscription - "common.error.pleaseCompleteForm" is shown when submitting empty survey [$250] Subscription - "common.error.pleaseCompleteForm" is shown when submitting empty survey Jun 20, 2024
Copy link

melvin-bot bot commented Jun 20, 2024

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

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

melvin-bot bot commented Jun 20, 2024

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

@cretadn22
Copy link
Contributor

Proposal

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

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

What is the root cause of that problem?

message="common.error.pleaseCompleteForm"

We don't use translate function

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

We need to update to

                    message={translate('common.error.pleaseCompleteForm')}

After applying the above change, I see that we have a minor error in Spanish message (there are two dot in the end of message)

Ảnh chụp Màn hình 2024-06-20 lúc 22 43 38

We also need to remove one dot in the end of error message to display the correct error like in English translation

pleaseCompleteForm: 'Por favor complete el formulario de arriba para continuar..',

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 20, 2024
Copy link

melvin-bot bot commented Jun 20, 2024

📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Jun 20, 2024

📣 @neonbhai 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@cretadn22
Copy link
Contributor

@carlosmiceli I believe there's also an issue with the Spanish message that needs to be corrected, as outlined in my proposal.

@melvin-bot melvin-bot bot added the Weekly KSv2 label Jun 20, 2024
@mallenexpensify mallenexpensify added the Bug Something is broken. Auto assigns a BugZero manager. label Jun 20, 2024
Copy link

melvin-bot bot commented Jun 20, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 20, 2024
@mallenexpensify
Copy link
Contributor

No BZ on here so I added one. (then realized I should have just assigned myself before adding the label).

If there's a minor improvement that @cretadn22 suggests that @neonbhai can add to the PR, please do so and we can compensate @cretadn22 $50 for the help. (we don't have a documented process for this because it's an edge case).

Copy link

melvin-bot bot commented Jun 28, 2024

@carlosmiceli, @MitchExpensify, @alitoshmatov, @neonbhai Whoops! This issue is 2 days overdue. Let's get this updated quick!

@neonbhai
Copy link
Contributor

PR deployed to staging 3 days ago, not overdue

Copy link

melvin-bot bot commented Jul 2, 2024

@carlosmiceli, @MitchExpensify, @alitoshmatov, @neonbhai Still overdue 6 days?! Let's take care of this!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 3, 2024
@melvin-bot melvin-bot bot 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 Jul 3, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 3, 2024
Copy link

melvin-bot bot commented Jul 3, 2024

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

Copy link

melvin-bot bot commented Jul 3, 2024

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:

Copy link

melvin-bot bot commented Jul 3, 2024

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:

@MitchExpensify
Copy link
Contributor

MitchExpensify commented Jul 4, 2024

Payment summary:

@cretadn22
Copy link
Contributor

@MitchExpensify Should I get 50$ as mentioned here

@MitchExpensify
Copy link
Contributor

Updated, thanks @cretadn22 !

@alitoshmatov
Copy link
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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 10, 2024
@MitchExpensify
Copy link
Contributor

Paid and contracts ended

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. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

8 participants