Open izarutskaya opened 1 week ago
Triggered auto assignment to @bfitzexpensify (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 @cristipaval (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:
@bfitzexpensify I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.
We think this issue might be related to the #vip-vsb.
Removing a blocker label as it does the work and user is not blocker and this is mainly ui issue cc @thienlnam
@allroundexperts @shubham1206agra @s77rt this might be related to https://github.com/Expensify/App/pull/39956 your PR
This was a known issue that we discussed during PR review as well. @shubham1206agra mentioned that it was happening on prod as well.
Yeah, we're not entirely sure why this is happening - going to open up externally so someone can investigate
Job added to Upwork: https://www.upwork.com/jobs/~01072100fbd6058c80
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (External
)
App shows skeleton when saving track expense edit for the second time onward.
When building the modified expense report action here, we're not setting optimistic previousReportActionID
to the reportActionID
of the latest report action.
So when we get the continuous report action list here, it fails to navigate further because previousReportActionID
is empty and is not equal to the next report action.
So in here we're able to get only 1 report action which is the newly added modified expense, so hasCreatedAction
here will be false (even though we do have the created report action).
In here, we're checking hasCreatedAction
in order to avoid calling getOlderActions
unnecessarily. In this case hasCreatedAction
is false
so it will still trigger getOlderActions
, leading to the Skeleton loading.
When building the modified expense report action here, set the optimistic previousReportActionID
to the reportActionID
of the latest report action.
Above, we can optionally check other modified expense/system report action case to make sure the same issue doesn't happen.
Another solution:
Here, early return the sortedReportActions
if id
is not provided. I think the continuous report action list retrieval is only relevant for linked comment case (where id
will be provided). If it's not linked comment like in this case, we can just use the sortedReportActions
.
if (!id) {
return sortedReportActions;
}
@thienlnam Maybe this is a BE issue, as we don't set previousReportActionID anywhere in FE.
IMO we should set it, optimistic data should be consistent with BE data, it's simple and fixes this issue well
@thienlnam Maybe this is a BE issue, as we don't set previousReportActionID anywhere in FE.
@thienlnam Can you confirm this? Do we still fix this from FE.
Yeah right now we don't modify previousReportActionID anywhere in the FE. I'm guessing this is because an optimistic and actual reportActionID do not correspond so we're always trying to load a previous reportActionID that doesn't exist.
We should have a larger discussion about adding this in the FE to solve issues like this. We've talked about it briefly. This is also something that might not be a problem if we handled this correctly in the BE
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
Going to make this internal now, unless we have a strong reason to start adding the previousReportActionID in the FE
Current assignee @mananjadhav is eligible for the Internal assigner, not assigning anyone new.
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: 1.4.65-0 Reproducible in staging?: Y Reproducible in production?: N Logs: https://stackoverflow.com/c/expensify/questions/4856 Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
App will not show skeleton when saving track expense edit for the second time.
Actual Result:
App shows skeleton when saving track expense edit for the second time onward.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
https://github.com/Expensify/App/assets/115492554/f16ac6b0-17e1-4aa1-8e0f-e1b630a066e0
View all open jobs on GitHub
Upwork Automation - Do Not Edit