Skip to content
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 for payment 2023-10-13] Chat - Chat history not loading after returning from offline #26143

Closed
6 tasks
lanitochka17 opened this issue Aug 29, 2023 · 27 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@lanitochka17
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Start staging.new.expensify.com or Expensify App
  2. Log into any account that has chats with a long history
  3. Open this chat
  4. Go Offline
  5. Scroll through cached chat history
  6. Go online without leaving the chat

Expected Result:

Chat history should load after going online

Actual Result:

Chat history not loading after returning from offline

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • Windows / Chrome
  • MacOS / Desktop

Version Number: 1.3.58-0

Reproducible in staging?: Yes

Reproducible in production?: No

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

Chat-History-not-load-after-offline.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Aug 29, 2023
@OSBotify
Copy link
Contributor

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@melvin-bot
Copy link

melvin-bot bot commented Aug 29, 2023

Triggered auto assignment to @marcaaron (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@luacmartins luacmartins self-assigned this Aug 29, 2023
@luacmartins
Copy link
Contributor

I can reproduce this issue. However, it seems to have the same root cause as #26181 where the ReconnectApp format is incorrect for ReportActions.

@luacmartins
Copy link
Contributor

FWIW that's an issue in the API and is not a blocker for App deploy.

@luacmartins
Copy link
Contributor

I'm gonna close this issue in favor of #26181

@chiragsalian
Copy link
Contributor

Resolved on staging with a web-E CP. Closing issue. If it persists feel free to reopen.

@lanitochka17
Copy link
Author

Issue reproducible on Build 1.3.63-0
OnePlus 9 PRO/Android 13.1

Record_2023-09-05-08-17-34.mp4

@lanitochka17 lanitochka17 reopened this Sep 5, 2023
@melvin-bot melvin-bot bot added the Overdue label Sep 5, 2023
@luacmartins
Copy link
Contributor

I think we can move this to a daily

@melvin-bot melvin-bot bot removed the Overdue label Sep 5, 2023
@luacmartins luacmartins added Daily KSv2 and removed Hourly KSv2 labels Sep 5, 2023
@luacmartins
Copy link
Contributor

@lanitochka17 can you still reproduce this issue? It doesn't seem to be that widespread

@lanitochka17
Copy link
Author

lanitochka17 commented Sep 11, 2023

@luacmartins Issue is still reproduce on latest build 1.3.67-1

bfv.mp4

@marcaaron
Copy link
Contributor

@luacmartins gonna jump off this one since it seems like you've got more context on the issue than me at this point, but lmk if you need anything here.

@marcaaron marcaaron removed their assignment Sep 12, 2023
@luacmartins
Copy link
Contributor

luacmartins commented Sep 14, 2023

Ok, I took a look at this and the problem isL

  1. ReadOldestAction fails
  2. We call SaveResponseInOnyx but response is undefined
  3. We return early here and never process failureData.
  4. Which means isLoadingMoreReportActions is never set to false here
  5. And we never call ReadOldestAction again, because we return early here

@melvin-bot melvin-bot bot added the Overdue label Sep 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2023

@luacmartins Eep! 4 days overdue now. Issues have feelings too...

@luacmartins
Copy link
Contributor

Discussing solutions in the PR

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Overdue Daily KSv2 Weekly KSv2 labels Oct 3, 2023
@melvin-bot melvin-bot bot changed the title Chat - Chat history not loading after returning from offline [HOLD for payment 2023-10-13] Chat - Chat history not loading after returning from offline Oct 6, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 6, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Oct 6, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.78-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-10-13. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Oct 12, 2023
@luacmartins luacmartins added the Bug Something is broken. Auto assigns a BugZero manager. label Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

Triggered auto assignment to @adelekennedy (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@luacmartins
Copy link
Contributor

Adding Bug label to process payment for PR review - #27650

@melvin-bot melvin-bot bot removed the Overdue label Oct 16, 2023
@adelekennedy
Copy link

adelekennedy commented Oct 16, 2023

@luacmartins confirm the below is correct?

Payouts due:

PR review Contributor+: $500 @situchan (Upwork)

Eligible for 50% #urgency bonus? N

Upwork

@luacmartins
Copy link
Contributor

@adelekennedy yes, that's correct!

@adelekennedy
Copy link

Sent offer

@melvin-bot melvin-bot bot added the Overdue label Oct 19, 2023
@adelekennedy
Copy link

payment made!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

7 participants