Closed izarutskaya closed 3 months ago
Triggered auto assignment to @twisterdotcom (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.
Triggered auto assignment to @flodnv (DeployBlockerCash
), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
:wave: 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:
We think this issue might be related to the #vip-vsb.
vip-vsb is on hold at the moment, so I don't think we can call this a deploy blocker or hourly.
Job added to Upwork: https://www.upwork.com/jobs/~0146cdf4505cc0858f
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (External
)
Hmm… page appears for a moment then task detail opens
We have the logic to trigger Onyx.connect in
Then set isFirstConnectionRef.current = false
and shouldGetCachedValueRef.current = true;
in here
When isFirstConnectionRef=false and shouldGetCachedValueRef=true, the new value is get from cache
at that time, it's undefined
-> reportMetadata is undefined
-> The skeleton is shown
We already said that
If `newValueRef.current` is `undefined` it means that the cache doesn't have a value for that key yet.
If `newValueRef.current` is `null` or any other value it means that the cache does have a value for that key
So we should use the initialValue if we're trying to get value from cache, but it's undefined
add the following code below this logic
if(!isFirstConnectionRef.current && newValueRef.current === undefined){
newValueRef.current = options?.initialValue
}
Hmm… page appears for a moment then task detail opens
The "Hmm…" page appears due to incorrect or incomplete conditions being evaluated for rendering the task detail. Specifically, the current implementation does not adequately handle cases where a valid report ID exists, causing the system to default to the "Not Found" page.
The original condition for showing the "Not Found" page is maintained but is evaluated only if the valid report ID check does not succeed. https://github.com/Expensify/App/blob/43d464315cfc72b1191083203ad9cd879cdf2cf1/src/pages/home/ReportScreen.tsx#L404
Valid Report ID Check Added: Introduced a preliminary check to validate if the currentReportIDFormRoute is a valid report ID using ReportUtils.isValidReportIDFromPath. This ensures that valid report IDs are recognized correctly.
if (currentReportIDFormRoute && ReportUtils.isValidReportIDFromPath(currentReportIDFormRoute)) {
return false;
}
video:- screen-capture.webm
How are these proposals @eVoloshchak?
This bug was reproducible a couple of days ago, but I can't reproduce it anymore with the latest main
@dominictb, @kaushiktd, could you please double check this is still reproducible for you?
Hmmm, I can't reproduce this bug
@eVoloshchak Yesterday morning, the code I pulled was still reproducing the error. However, the new code no longer reproduces it.
Okay, let's close! Thanks everyone for the input anyway.
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v9.0.8-1 Reproducible in staging?: Y Reproducible in production?: N If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4729138 Email or phone of affected tester (no customers): applausetester+jpcategory_1@applause.expensifail.com Logs: https://stackoverflow.com/c/expensify/questions/4856 Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
Task detail opens without Hmm… page
Actual Result:
Hmm… page appears for a moment then task detail opens
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
https://github.com/user-attachments/assets/c630e778-bd45-403d-a3c3-d52b44999bb2
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @eVoloshchak