-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$500] Some reports are not loading and get in a loop of calling OpenReport #35620
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01b0c48a8c47035913 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
Triggered auto assignment to @puneetlath ( |
Current assignee @thesahindia is eligible for the Internal assigner, not assigning anyone new. |
I've been looking into this today but still haven't figured out the root cause |
|
@cead22, @puneetlath, @thesahindia Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@cead22, @puneetlath, @thesahindia Still overdue 6 days?! Let's take care of this! |
@iwiznia did you happen to look into this? I have no updates on this one yet |
@cead22 @puneetlath @thesahindia this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@cead22, @puneetlath, @thesahindia Huh... This is 4 days overdue. Who can take care of this? |
@cead22 is this most likely a back-end issue? |
This was triggered by a back end change (https://github.com/Expensify/Insiders/issues/8824), but the client should be able to handle that update. I haven't figured this one out yet |
📣 @kbieganowski! 📣
|
Hey @cead22, I've tried to reproduce this issue but unfortunately with no luck, removing user from the workspace and opening it from the link didn't cause mentioned issue either. Can you please provide us repro steps and recording (if possible)? |
This is a tricky one to reproduce, but the way we triggered this was by updating our database to delete some messages in some DM chats using the following query update reportactions set message = json_set(json_set(message, '$.edits[#]', message->>'$.html'), '$.html', '') where reportID = {0} and action = 'ADDCOMMENT' and message->>'$.html' is not null and message->>'$.html' != '' When opening a DM chat that got messages deleted, we get in a loop of making api requests to |
Could you please elaborate more on how I can run this query? Otherwise, I'm not able to reproduce this issue |
@kbieganowski I messaged you yesterday in new dot from my [email protected] account (https://staging.new.expensify.com/r/328657243571140). I'm going to add a lot of messages to that chat, and then I'll run that query for the chat and see if we can get you to reproduce |
@puneetlath buddy check please update reportactions set message = json_set(json_set(message, '$.edits[#]', message->>'$.html'), '$.html', '') where reportID = 328657243571140 and action = 'ADDCOMMENT' and message->>'$.html' is not null and message->>'$.html' != '' |
Looks good 👍🏾 |
Done, verification below
|
@kbieganowski I'm able to reproduce by switching to the DM report between [email protected] and [email protected]. Let me know if you can reproduce as well |
Hi @cead22, unfortunately I wasn't able to reproduce this issue in staging as well. I've also tried switching between multiple reports at fast rate and going back to mentioned one but without any luck after_query.mp4 |
@kbieganowski can you try signing out and back in? Those messages you're seeing should all be deleted. Also feel free to ping me on slack or new expensify if that's quicker |
I'm currently seeing GetOlderActions being called over and over when I switch to that chat |
Not sure if related but see #fireroom-2024-03-06-public-rooms-spamming-getolderactions |
Ha, I just posted a question in there 👍 |
It looks like the same issue that is happening here for deleted messages happens in chats with whispers, and we're going to push a change to solve the issues for whispers. I'll test again to see if I can reproduce once the fix is out to see if it fixes this issue as well |
seems plausible that this might be fixed by #37839 |
It looks like we fixed the case where we call GetOlderActions over and over, which is the case I was able to reproduce with the chat between [email protected] and [email protected]. That said, I'm still seeing this issue with reports that trigger OpenReport over and over, but I need to figure out steps to reproduce |
@cead22, @puneetlath Eep! 4 days overdue now. Issues have feelings too... |
@cead22 shall we drop this to a weekly in that case? |
This was fixed while fixing a fire. I tried reproducing with all the reports that I was able to reproduce with before and didn't manage, so closing |
Nice! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.35-0
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
Expensify/Expensify Issue URL:
Issue reported by: @cead22
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1706816577968589
Action Performed:
Expected Result:
Open the chat without any issues
Actual Result:
Loading screen appears and get in a loop of calling OpenReport
Few of the affected ReportIDs : 66604416, 65279538 and 66589491
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
2024-02-01_14-02-20.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: