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-09-11] [$1000] Request money - Address field shows error when saved again and it becomes empty after refresh #25686

Closed
1 of 6 tasks
lanitochka17 opened this issue Aug 22, 2023 · 26 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 22, 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!


Action Performed:

  1. Go to staging.new.expensify,com
  2. Go to + > Request money > Distance
  3. Click Start
  4. Enter an address and save
  5. Click on Start again
  6. Click Save
  7. Refresh the page

Expected Result:

In Step 6, since the address is populated, user is able to save the selection
In Step 7. the address field remains populated

Actual Result:

In Step 6, user is unable to save the selection and error 'Please select a suggested address' shows up
In Step 7. the address field is empty

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.56-2

Reproducible in staging?: Yes

Reproducible in production?: No

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

Notes/Photos/Videos: Any additional supporting documentation

Bug6173184_20230822_171058.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~012df4e765e5dc30c6
  • Upwork Job ID: 1694412987696316416
  • Last Price Increase: 2023-08-23
  • Automatic offers:
    • Pujan92 | Contributor | 26396416
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Aug 22, 2023
@OSBotify
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.

@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

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

@pradeepmdk
Copy link
Contributor

pradeepmdk commented Aug 22, 2023

Proposal

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

Request money - Address field shows error when saved again and it becomes empty after refresh(#25686 (comment))

What is the root cause of that problem?

for error message we are showing when has the value

if (!network.isOffline && waypointValue !== '') {

for refresh AddressSearch component mounted initially before setting the waypointAddress

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

if (!network.isOffline && waypointValue !== '') {

to
if (!network.isOffline && waypointValue === '') {

for a refreshing time before update the defaultValue AddressSearch component is mounted so that the value is not updated we can use the state for update the value and instead of defaultValue we can use value
we need to use onValueChange as well when user typing the value update to state

@melvin-bot melvin-bot bot added Daily KSv2 and removed Hourly KSv2 labels Aug 22, 2023
@roryabraham roryabraham added Hourly KSv2 and removed Daily KSv2 labels Aug 22, 2023
@hungvu193
Copy link
Contributor

hungvu193 commented Aug 23, 2023

Proposal

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

Request money - Address field shows error when saved again and it becomes empty after refresh

What is the root cause of that problem?

We're showing error when network is available and waypointValue is not empty which caused this issue.

if (!network.isOffline && waypointValue !== '') {
errors[`waypoint${waypointIndex}`] = 'distance.errors.selectSuggestedAddress';
}

I also agree about RCA of second issue with about proposal.

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

About the first issue, we should update the condition here to:

 if (!network.isOffline && waypointValue === '') { 
     errors[`waypoint${waypointIndex}`] = 'distance.errors.selectSuggestedAddress'; 
 } 

About the second issue, when the InputValue is empty when reloading, we should add the props shouldSaveDraft={true} to our AddressSearch component.

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot melvin-bot bot added Daily KSv2 and removed Hourly KSv2 labels Aug 23, 2023
@pradeepmdk
Copy link
Contributor

@hungvu193 I tried shouldSaveDraft but I think it will create a regression

Screen.Recording.2023-08-23.at.9.48.41.AM.mov

@thienlnam
Copy link
Contributor

I authored this regression so I'll take it

@thienlnam thienlnam removed the DeployBlockerCash This issue or pull request should block deployment label Aug 23, 2023
@thienlnam
Copy link
Contributor

thienlnam commented Aug 23, 2023

Oh, looking at the video this doesn't look like a blocker or a regression but I'll fix it regardless

@allroundexperts
Copy link
Contributor

@thienlnam Since this is not a regression / blocker, let's just allow the contributors to fix it instead? I already see a couple of strong proposals.

@thienlnam
Copy link
Contributor

The current proposals won't fix the issue in a way that doesn't add another regression but yeah we can make this external

@thienlnam thienlnam added the External Added to denote the issue can be worked on by a contributor label Aug 23, 2023
@melvin-bot melvin-bot bot changed the title Request money - Address field shows error when saved again and it becomes empty after refresh [$1000] Request money - Address field shows error when saved again and it becomes empty after refresh Aug 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 23, 2023

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

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

melvin-bot bot commented Aug 23, 2023

Triggered auto assignment to @zanyrenney (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@napster125
Copy link
Contributor

napster125 commented Aug 28, 2023

@allroundexperts, @thienlnam
Could you kindly review my proposal? I believe we can resolve this issue by utilizing the value and onValueChange attributes. However, in my opinion, my proposed solution offers greater consistency.
Your feedback on this matter would be greatly appreciated.

@thienlnam
Copy link
Contributor

Assigning @Pujan92 - they addressed the requirements first

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 29, 2023

📣 @allroundexperts Please request via NewDot manual requests for the Reviewer role ($1000)

@melvin-bot
Copy link

melvin-bot bot commented Aug 29, 2023

📣 @Pujan92 🎉 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 📖

@Pujan92
Copy link
Contributor

Pujan92 commented Aug 31, 2023

@allroundexperts PR is ready for review!

@melvin-bot
Copy link

melvin-bot bot commented Aug 31, 2023

🎯 ⚡️ Woah @allroundexperts / @Pujan92, great job pushing this forwards! ⚡️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉

  • when @Pujan92 got assigned: 2023-08-29 18:15:32 Z
  • when the PR got merged: 2023-08-31 23:40:09 UTC

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Sep 4, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Request money - Address field shows error when saved again and it becomes empty after refresh [HOLD for payment 2023-09-11] [$1000] Request money - Address field shows error when saved again and it becomes empty after refresh Sep 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Sep 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

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

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:

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 Daily KSv2 labels Sep 11, 2023
@zanyrenney
Copy link
Contributor

Payment summary

External issue reporter - N/A (reported by Applause internal team)
Contributor that fixed the issue (paid @Pujan92 $1500 for work + urgency bonus)
Contributor+ that helped on the issue and/or PR (paid with manual requests) @allroundexperts please request payment outside this! Thanks!

@melvin-bot melvin-bot bot removed the Overdue label Sep 13, 2023
@zanyrenney
Copy link
Contributor

Closing now upwork payment is complete!

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 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