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-07-22] [HOLD for payment 2024-07-17] [$125] [Search v1] Crash when opening search page #44396
@m-natarajan Please try cleaning your Onyx cache, rerun then app and tell us if this fixes the problem. This solution worked for my case.
If yes then I believe this should not be a big problem, unfortunately we're still in development mode for the Search features so small bumps like this one might happen.
Please re-state the problem that we are trying to solve in this issue.
App Crash when opening search page
What is the root cause of that problem?
We are accessing shouldShowCategoryColumn without using optional chaining operator. This causes a crash sometimes if the network is slow and SearchResults object has not fully loaded.
We should use optionalChaining when accessing this property:
If yes then I believe this should not be a big problem, unfortunately we're still in development mode for the Search features so small bumps like this one might happen.
Agree, but I think we should add optional chaining as a sanity check for scenarios like these, so the app doesn't crash!
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:
[@luacmartins] The PR that introduced the bug has been identified. Link to the PR:
[@luacmartins] 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:
[@luacmartins] 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:
[@neonbhai] Determine if we should create a regression test for this bug.
[@neonbhai] 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.
[@stephanieelliott / @kadiealexander] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
changed the title [-][HOLD for payment 2024-07-17] [$125] [Search v1] Crash when opening search page[/-][+][HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [$125] [Search v1] Crash when opening search page[/+]on Jul 15, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-8 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:
[@luacmartins] The PR that introduced the bug has been identified. Link to the PR:
[@luacmartins] 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:
[@luacmartins] 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:
[@neonbhai] Determine if we should create a regression test for this bug.
[@neonbhai] 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.
[@stephanieelliott / @kadiealexander] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Activity
melvin-bot commentedon Jun 25, 2024
Triggered auto assignment to @stephanieelliott (
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.MelvinBot commentedon Jun 25, 2024
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989
Kicu commentedon Jun 25, 2024
@m-natarajan Please try cleaning your Onyx cache, rerun then app and tell us if this fixes the problem. This solution worked for my case.
If yes then I believe this should not be a big problem, unfortunately we're still in development mode for the Search features so small bumps like this one might happen.
CC @luacmartins for visibility
neonbhai commentedon Jun 25, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
App Crash when opening search page
What is the root cause of that problem?
We are accessing
shouldShowCategoryColumnwithout using optional chaining operator. This causes a crash sometimes if the network is slow andSearchResultsobject has not fully loaded.We should use optionalChaining when accessing this property:
What changes do you think we should make in order to solve the problem?
We will use optionalChaining when acessing
shouldShowCategoryColumnin these places:App/src/libs/SearchUtils.ts
Line 141 in 2f688ad
App/src/libs/SearchUtils.ts
Line 188 in 2f688ad
App/src/components/SelectionList/SearchTableHeader.tsx
Line 56 in 2f688ad
Additionally
We will optionalChaining when accessing
shouldShowTagColumnandshouldShowTaxColumnhere:App/src/libs/SearchUtils.ts
Line 142 in 2f688ad
App/src/libs/SearchUtils.ts
Line 189 in 2f688ad
App/src/components/SelectionList/SearchTableHeader.tsx
Line 61 in 2f688ad
App/src/libs/SearchUtils.ts
Line 143 in 2f688ad
App/src/libs/SearchUtils.ts
Line 190 in 2f688ad
App/src/components/SelectionList/SearchTableHeader.tsx
Line 66 in 2f688ad
neonbhai commentedon Jun 25, 2024
Agree, but I think we should add optional chaining as a sanity check for scenarios like these, so the app doesn't crash!
[-]Crash when opening search page[/-][+][Search v1] Crash when opening search page[/+][-][Search v1] Crash when opening search page[/-][+][$250] [Search v1] Crash when opening search page[/+]32 remaining items
melvin-bot commentedon Jul 10, 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:
[-][HOLD for payment 2024-07-17] [$125] [Search v1] Crash when opening search page[/-][+][HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [$125] [Search v1] Crash when opening search page[/+]melvin-bot commentedon Jul 15, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-8 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-22. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jul 15, 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:
melvin-bot commentedon Jul 19, 2024
@luacmartins, @stephanieelliott, @neonbhai Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
stephanieelliott commentedon Jul 22, 2024
Summarizing payment on this issue:
Upwork job is here: https://www.upwork.com/jobs/~0102a0367add306853