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-10-18] [HOLD for payment 2023-09-20] [$500] BUG: [distance] Tapping date on iOS confirmation screen crashes the app #26719

Closed
1 of 6 tasks
neil-marcellini opened this issue Sep 4, 2023 · 40 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 Weekly KSv2

Comments

@neil-marcellini
Copy link
Contributor

neil-marcellini commented Sep 4, 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 settings> preferences> language> choose spanish.
  2. Click green plus, request money, distance
  3. Enter start and finish addresses
  4. Click next
  5. Click the date field

Expected Result:

You are navigated to the date selector page

Actual Result:

The app crashes

Workaround:

None

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:
Reproducible in staging?: yes
Reproducible in production?:
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:

date-crash.MP4

Expensify/Expensify Issue URL:
Issue reported by: @ahmedGaber93 originally, and @JmillsExpensify
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693773862316259 and https://expensify.slack.com/archives/C05DWUDHVK7/p1693858687755119

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01410dc76d9aff99d8
  • Upwork Job ID: 1698795084385435648
  • Last Price Increase: 2023-09-04
  • Automatic offers:
    • situchan | Contributor | 26532576
    • ahmedGaber93 | Reporter | 26532579
    • mkhutornyi | Contributor | 26532619
Issue OwnerCurrent Issue Owner: @anmurali
@neil-marcellini neil-marcellini added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 4, 2023
@neil-marcellini neil-marcellini self-assigned this Sep 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 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

@neil-marcellini neil-marcellini added the External Added to denote the issue can be worked on by a contributor label Sep 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

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

@melvin-bot melvin-bot bot changed the title BUG: [distance] Tapping date on iOS confirmation screen crashes the app [$500] BUG: [distance] Tapping date on iOS confirmation screen crashes the app Sep 4, 2023
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

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

@ahmedGaber93
Copy link
Contributor

ahmedGaber93 commented Sep 4, 2023

@neil-marcellini
I report this issue yesterday in slack expensify-bugs channel here https://expensify.slack.com/archives/C049HHMV9SM/p1693773862316259
can you check which is reported first? Because the attached Slack conversation not opened with me.

@neil-marcellini
Copy link
Contributor Author

Oh thanks I missed that, I'll update the description with your report.

@JmillsExpensify
Copy link

Taking this one from Anu as part of wave5.

@mkhutornyi
Copy link
Contributor

Proposal

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

Native app crashes on Date picker page when language is set to Spanish

What is the root cause of that problem?

The crash happens from moment.js library
ref: facebook/react-native#1629 (comment)

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

import moment/locale/es anywhere in the app. I think lib/actions/App.js is the suitable place.
ref: facebook/react-native#1629 (comment)

@neil-marcellini neil-marcellini assigned situchan and unassigned cubuspl42 Sep 6, 2023
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 6, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 6, 2023

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

Offer link
Upwork job

@neil-marcellini
Copy link
Contributor Author

@situchan jumped in as the C+ from Slack and since he got this moving I'm going to have him take it over.

@neil-marcellini
Copy link
Contributor Author

We both like the proposal from @mkhutornyi and Situ verified that it fixes the issue. Please raise a PR soon.

@melvin-bot
Copy link

melvin-bot bot commented Sep 6, 2023

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

@parasharrajat
Copy link
Member

parasharrajat commented Sep 6, 2023

Hold on here. We are going to remove the moment soon #19810. I don't think we should be doing this change unless it is going to stay.

@neil-marcellini
Copy link
Contributor Author

Ah ok good call out. So maybe we should consider replacing the use of moment here with some other library in line with the replacement plan on that issue?

That being said, it's most important to fix the crash now and we can always replace the use of moment.js later.

@situchan
Copy link
Contributor

situchan commented Oct 2, 2023

@neil-marcellini seems like moment will be fully removed soon - #19810 (comment)

@melvin-bot melvin-bot bot added the Overdue label Oct 5, 2023
@neil-marcellini
Copy link
Contributor Author

neil-marcellini commented Oct 5, 2023

This is still reproducible. While we could wait for moment.js to be removed fully, I think we should re-implement the fix that was accidentally reverted. Having the whole app crash when using this feature in Spanish is pretty bad. @mkhutornyi would you please put up a PR today?

RPReplay_Final1696524243.mov

@melvin-bot melvin-bot bot removed the Overdue label Oct 5, 2023
@mkhutornyi
Copy link
Contributor

This is still reproducible. While we could wait for moment.js to be removed fully, I think we should re-implement the fix that was accidentally reverted. Having the whole app crash when using this feature in Spanish is pretty bad. @mkhutornyi would you please put up a PR today?

RPReplay_Final1696524243.mov

sure

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 6, 2023

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

  • when @mkhutornyi got assigned: 2023-09-06 19:03:54 Z
  • when the PR got merged: 2023-10-06 18:50:51 UTC
  • days elapsed: 21

On to the next one 🚀

@neil-marcellini
Copy link
Contributor Author

^ that's incorrect, he did that within 3 days of being requested.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Oct 11, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-09-20] [$500] BUG: [distance] Tapping date on iOS confirmation screen crashes the app [HOLD for payment 2023-10-18] [HOLD for payment 2023-09-20] [$500] BUG: [distance] Tapping date on iOS confirmation screen crashes the app Oct 11, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 11, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 11, 2023

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

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

melvin-bot bot commented Oct 11, 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:

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

@melvin-bot melvin-bot bot added the Overdue label Oct 19, 2023
@neil-marcellini
Copy link
Contributor Author

@situchan please fill out the checklist

@melvin-bot melvin-bot bot removed the Overdue label Oct 19, 2023
@situchan
Copy link
Contributor

situchan commented Oct 19, 2023

  • The PR that introduced the bug has been identified. Link to the PR: Datetime polyfill, removed moment.tz.guess() #26248
  • 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: Datetime polyfill, removed moment.tz.guess() #26248 (comment)
  • 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: N/A
  • Determine if we should create a regression test for this bug.
  • 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.

Regression Test Proposal

  1. Go to Settings > Preferences > Language > Choose Spanish
  2. Click FAB > Request money > Select Distance tab
  3. Enter start and finish addresses
  4. Click Next
  5. Click the date field
  6. Verify that app doesn't crash and date picker shows

We may not need regression test for this because this bug is specific to momentjs library which will be removed soon.
And there's already comment in code to avoid regression.

// Do not remove this import until moment package is fully removed.
// Issue - https://github.com/Expensify/App/issues/26719
import 'moment/locale/es';

@melvin-bot melvin-bot bot added the Overdue label Oct 30, 2023
@neil-marcellini
Copy link
Contributor Author

Yeah I don't think we need the regression test.

@melvin-bot melvin-bot bot removed the Overdue label Oct 31, 2023
@melvin-bot melvin-bot bot added the Overdue label Nov 9, 2023
@neil-marcellini
Copy link
Contributor Author

@anmurali if you would please pay this then I think it's done.

@melvin-bot melvin-bot bot removed the Overdue label Nov 9, 2023
@anmurali
Copy link

Everyone's paid.

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

No branches or pull requests

10 participants