-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HOLD [$500] Web - IOU - When performing a split bill in a group, the skeleton view is stuck #27200
Comments
Job added to Upwork: https://www.upwork.com/jobs/~018574fb33c023d25e |
Triggered auto assignment to @zanyrenney ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @sonialiap ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.While sending a "Split bill" request in a group, other participants see the SkeletonView stuck forever What is the root cause of that problem?When the Report is rendered on the User B side, the transaction is not yet processed, so it's not present in the BE response, and therefore – in Onyx. As a result, the transaction is App/src/components/ReportActionItem/MoneyRequestPreview.js Lines 240 to 242 in 1bad061
What changes do you think we should make in order to solve the problem?We should add the following hook inside the const isTransactionPresent = !_.isEmpty(props.transaction);
useEffect(() => {
if (isTransactionPresent) {
return;
}
Report.openReport(props.chatReportID);
}, [isTransactionPresent, props.chatReportID]); This will cause report re-fetch if a transaction is missing for the IOU Item. The dependencies of the hook will ensure it's triggered only once. Result: split_bill_skeleton.mp4What alternative solutions did you explore? (Optional) |
Proposal by: @paultsimura ProposalPlease re-state the problem that we are trying to solve in this issue.While sending a "Split bill" request in a group, other participants see the SkeletonView stuck forever What is the root cause of that problem?When the Report is rendered on the User B side, the transaction is not yet processed, so it's not present in the BE response, and therefore – in Onyx. App/src/components/ReportActionItem/MoneyRequestPreview.js Lines 240 to 242 in 1bad061
What changes do you think we should make in order to solve the problem?We should add the following hook inside the MoneyRequestPreview component:
This will cause report re-fetch if a transaction is missing for the IOU Item. The dependencies of the hook will ensure it's triggered only once. What alternative solutions did you explore? (Optional) |
This is a pusher issue #26925 (comment) pusher not sending the |
not sure why it added me as External, I would make the worst C+ 😂 unassigning myself |
@pradeepmdk @eVoloshchak if this relates to pusher, can it still be external? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@zanyrenney sorry for the delay. this could be internal only because this is a backend issue. |
Ah, okay thanks, I thought so. |
Yes @zanyrenney that sounds great actually, otherwise I would make this weekly, and put it in the back burner, so please find somebody from split bill project, and thank you |
Issue related #28713 |
hey @youssef-lr based on this comment and suggestion here we decided that engineers should fix the bugs introduced by the sprint team. I believe this one for bill split arose from wave 7 - and see a bunch of new issues from you for bill split - https://github.com/Expensify/Expensify/issues/322294 / https://expensify.slack.com/archives/C03SC9DVD/p1696512527374609 After discussing with @cead22 above, I think this one should be handled by the team who worked on bill split. Can you clarify if it's you or someone else on the team and reassign based on that please? Let me know if you have any questions about this or I am missing context on this one. Thanks! |
Making weekly though for now as not an immediate priority. |
I thinnk I might have an idea why this is happening, I think the transaction of the split bill is not being sent through pusher but only the report action. This wasn't part of TeachersUnite but I'll be happy to keep this assigned to me! |
Thank you so much @youssef-lr ! That's really helpful. Appreciate you! |
Is there an easier way for future for me to check the change and trace it back if I got it wrong here, I'd like to develop a better process for future @youssef-lr |
Honestly things are moving so fast it's hard to keep up :D, I think the most straightforward way is to ask in Slack. You'll either get a reply from whoever is responsible for those code changes or they'll get mentioned by someone else in the thread. For example, whenever I see a bug or a discussion related to Tasks I mention Jack as I'm aware that he's been leading that project. Hope this is helpful! :) |
OK figured it out while working on https://github.com/Expensify/Expensify/issues/322304, turns out we don't send the split transaction from Auth. I'll create a PR this week. |
Thank you - that would be great! |
Thank you both! |
Going to whip out a PR this week. |
This issue has not been updated in over 15 days. @eVoloshchak, @youssef-lr, @zanyrenney eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@eVoloshchak, @youssef-lr, @zanyrenney, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Group members (User B) should see the split bill amount.
Actual Result:
For the User B, the skeleton view of this action item is stuck forever until the page is refreshed or a chat is switched.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.67.1
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
stuck-skeleton-bug.mp4
Recording.4403.mp4
Expensify/Expensify Issue URL:
Issue reported by: @paultsimura
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694182124123539
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: