You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-04-05] [$500] Storybook - "Couldn't find a navigation object" error when trying to select a year #38331
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Version Number: 1.4.52.0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Please re-state the problem that we are trying to solve in this issue.
Storybook - "Couldn't find a navigation object" error when trying to select a year
What is the root cause of that problem?
We need to wrap StatePicker & DatePicker with navigation with withNavigationFallback since they use ScreenWrapper & HeaderWithBackButton which uses useWaitForNavigation.
What changes do you think we should make in order to solve the problem?
Wrap StatePicker & DatePicker with withNavigationFallback.
There might be more components which uses navigation and is used in storrybook, we might want to check for that as well.
Result
storybook_fix.mp4
Alternative
Wrap StatePicker.tsx & DatePicker.tsx with withNavigationFallback and then export.
Or Wrap ScreenWrapper.tsx & HeaderWithBackButton.tsx with withNavigationFallback and then export.
changed the title [-]Storybook - "Couldn't find a navigation object" error when trying to select a year[/-][+][$500] Storybook - "Couldn't find a navigation object" error when trying to select a year[/+]on Mar 18, 2024
changed the title [-][$500] Storybook - "Couldn't find a navigation object" error when trying to select a year[/-][+][HOLD for payment 2024-04-05] [$500] Storybook - "Couldn't find a navigation object" error when trying to select a year[/+]on Mar 29, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.57-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
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:
[@dukenv0307] The PR that introduced the bug has been identified. Link to the PR:
[@dukenv0307] 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:
[@dukenv0307] 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:
[@dukenv0307] Determine if we should create a regression test for this bug.
[@dukenv0307] 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:
The PR that introduced the bug has been identified. Link to the PR:
N/A
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:
N/A
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.
We don't need to create a regression test
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.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
melvin-bot commentedon Mar 14, 2024
Triggered auto assignment to @anmurali (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.Krishna2323 commentedon Mar 14, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Storybook - "Couldn't find a navigation object" error when trying to select a year
What is the root cause of that problem?
We need to wrap
StatePicker&DatePickerwith navigation withwithNavigationFallbacksince they useScreenWrapper&HeaderWithBackButtonwhich usesuseWaitForNavigation.App/src/stories/Form.stories.tsx
Lines 53 to 54 in d4eaf4e
What changes do you think we should make in order to solve the problem?
Wrap
StatePicker&DatePickerwithwithNavigationFallback.There might be more components which uses navigation and is used in storrybook, we might want to check for that as well.
Result
storybook_fix.mp4
Alternative
Wrap
StatePicker.tsx&DatePicker.tsxwithwithNavigationFallbackand then export.Or Wrap
ScreenWrapper.tsx&HeaderWithBackButton.tsxwithwithNavigationFallbackand then export.[-]Storybook - "Couldn't find a navigation object" error when trying to select a year[/-][+][$500] Storybook - "Couldn't find a navigation object" error when trying to select a year[/+]melvin-bot commentedon Mar 18, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01a13cfaecad01b349
melvin-bot commentedon Mar 18, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dukenv0307 (
External)19 remaining items
[-][$500] Storybook - "Couldn't find a navigation object" error when trying to select a year[/-][+][HOLD for payment 2024-04-05] [$500] Storybook - "Couldn't find a navigation object" error when trying to select a year[/+]melvin-bot commentedon Mar 29, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Mar 29, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.57-5 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-04-05. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Mar 29, 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:
dukenv0307 commentedon Apr 4, 2024
BugZero Checklist:
N/A
N/A
N/A
We don't need to create a regression test
No
anmurali commentedon Apr 17, 2024
@dukenv0307 and @tienifr have been paid.