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 2025-02-06] [$250] Clicking link to invalid room > another report > then back to invalid room link leads to infinite skeleton loading screen #55085
Version Number: 9.0.83-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers):agexptest+pr0801@gmail.com Issue reported by: Applause - Internal Team Component:
Please re-state the problem that we are trying to solve in this issue.
LHN shows blank row when opening a invalid room link
What is the root cause of that problem?
When a report with a random ID, e.g., r/6546545, is opened, the backend returns the report.errorFields.notFound property. In this case, the report is not displayed in the LHN because we check for the report.errorFields.notFound property to be unset.
However, when opening r/2652281908731856, for some reason the BE returns report.errorFields.createChat with the value Auth OpenReport returned an error instead of report.errorFields.notFound. This scenario bypasses the above checks, causing this issue.
What changes do you think we should make in order to solve the problem?
Ideally, we should investigate why the backend returns report.errorFields.createChat and whether it could instead return report.errorFields.notFound. If that is not possible, we can add a check similar to this one to verify the required properties
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
This is a UI bug; no tests are needed.
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
we could fix this issue by removing the report from Onyx, or implementing a similar solution like this
changed the title [-] LHN - LHN shows blank row when opening a invalid room link[/-][+][$250] LHN - LHN shows blank row when opening a invalid room link[/+]on Jan 13, 2025
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Activity
melvin-bot commentedon Jan 10, 2025
Triggered auto assignment to @mallenexpensify (
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.mohit6789 commentedon Jan 10, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
shows blank row when opening a invalid room link
What is the root cause of that problem?
We create the LHN option even though reportID is not valid here
What changes do you think we should make in order to solve the problem?
To fix issue we can return null if reportID is not valid so empty row will not created. We can add below check here
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA as this is bug
What alternative solutions did you explore? (Optional)
andriivitiv commentedon Jan 10, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
LHN shows blank row when opening a invalid room link
What is the root cause of that problem?
When a report with a random ID, e.g.,
r/6546545, is opened, the backend returns thereport.errorFields.notFoundproperty. In this case, the report is not displayed in the LHN because we check for thereport.errorFields.notFoundproperty to be unset.App/src/libs/SidebarUtils.ts
Lines 130 to 131 in dfb4385
App/src/libs/SidebarUtils.ts
Lines 135 to 137 in dfb4385
However, when opening
r/2652281908731856, for some reason the BE returnsreport.errorFields.createChatwith the valueAuth OpenReport returned an errorinstead ofreport.errorFields.notFound. This scenario bypasses the above checks, causing this issue.What changes do you think we should make in order to solve the problem?
Ideally, we should investigate why the backend returns
report.errorFields.createChatand whether it could instead returnreport.errorFields.notFound. If that is not possible, we can add a check similar to this one to verify the required propertiesApp/src/libs/SidebarUtils.ts
Line 120 in dfb4385
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Unit/UI tests to ensure that reports with missing
reportID, and possibly alsotypeandreportNameproperties are not displayed.huult commentedon Jan 13, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
LHN shows blank row when opening a invalid room link
What is the root cause of that problem?
When we open the report that is not found, the back-end returns errorFields for createChat.
and store this report to Onyx
In the sidebar, we have not handled the createChat errorFields case yet, which is why this issue occurs.
What changes do you think we should make in order to solve the problem?
To resovle this issue we just update case
createChaterror some thing like that:App/src/libs/SidebarUtils.ts
Line 121 in b416e25
Update to
POC
Screen.Recording.2025-01-14.at.00.06.15.mov
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
This is a UI bug; no tests are needed.
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
we could fix this issue by removing the report from Onyx, or implementing a similar solution like this
App/src/pages/home/ReportScreen.tsx
Line 441 in 42be56a
useEffect(() => { if (!shouldShowNotFoundPage || report?.reportID || !report?.errorFields?.createChat) { return; } Report.deleteReport(reportIDFromRoute); }, [report, reportIDFromRoute, shouldShowNotFoundPage]);melvin-bot commentedon Jan 13, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021878923123358968660
[-] LHN - LHN shows blank row when opening a invalid room link[/-][+][$250] LHN - LHN shows blank row when opening a invalid room link[/+]melvin-bot commentedon Jan 13, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts (
External)34 remaining items
mallenexpensify commentedon Feb 5, 2025
paying tomorrow
mallenexpensify commentedon Feb 6, 2025
Contributor: @daledah paid $250 via Upwork
Contributor+: @allroundexperts due $250 via Upwork
mallenexpensify commentedon Feb 6, 2025
@allroundexperts can you fill out the BZ checklist plz
mvtglobally commentedon Feb 8, 2025
Issue not reproducible during KI retests. (First week)
melvin-bot commentedon Feb 10, 2025
@nkuoch, @mallenexpensify, @allroundexperts, @daledah Whoops! This issue is 2 days overdue. Let's get this updated quick!
mallenexpensify commentedon Feb 10, 2025
Made @allroundexperts the issue owner, can you fill out the BZ checklist plz?
allroundexperts commentedon Feb 11, 2025
On it today
allroundexperts commentedon Feb 11, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] 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/39377/files#r1951676351
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/469493
Regression Test Proposal
Precondition:
Test:
Verify that "Hmm... it's not here" page is displayed
Do we agree 👍 or 👎
mallenexpensify commentedon Feb 12, 2025
Thanks @allroundexperts , test case created, closing
JmillsExpensify commentedon Jun 13, 2025
$250 approved for @allroundexperts