-
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
[Hold for payment 2024-05-30][$250] Deleted message disappear for a moment when transistioning from offline to online #39218
Comments
Triggered auto assignment to @sonialiap ( |
Current assignee @roryabraham is eligible for the DeployBlockerCash assigner, not assigning anyone new. |
👋 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:
|
The issue mentions reproducible in both so NAB right ? @roryabraham @kavimuru |
@roryabraham Please assign me as C+ here as I was C+ on the previous issue too. |
Yeah if this is reproducible in both this is not a blocker. |
Since this is not a blocker, moving to Daily |
ProposalPlease re-state the problem that we are trying to solve in this issue.Deleted message disappear for a moment when transistioning from offline to online What is the root cause of that problem?In here App/src/libs/actions/Report.ts Lines 1315 to 1316 in 99cc0b6
We haven't included ADD_COMMENT when the report action is isThreadParentMessage so as we created the report action offline (ADD_COMMENT ) the isDeletedReportAction set as true by DELETE_COMMENT of the parent message is getting reset when going online and the isDeletedReportAction is being reset to false and as the message.html is empty it will disappear and get not displayed
What changes do you think we should make in order to solve the problem?We need to add App/src/libs/actions/Report.ts Lines 1315 to 1316 in 99cc0b6
What alternative solutions did you explore? (Optional) |
@shubham1206agra what do you think of the above proposal? |
putting this on HOLD for #39432, as there's a good likelihood this will be fixed over there |
ProposalPlease re-state the problem that we are trying to solve in this issue.Deleted thread parent message disappears when go online instead of showing [Deleted message] What is the root cause of that problem?In ReportActionsList, we are filtering out any action that has a pending action of DELETE. App/src/pages/home/report/ReportActionsList.tsx Lines 188 to 194 in b0a50cb
It's not happening while offline because we include App/src/pages/home/report/ReportActionsList.tsx Lines 218 to 229 in b0a50cb
But after the comment linking, we add App/src/pages/home/ReportScreen.tsx Line 707 in b0a50cb
App/src/libs/ReportActionsUtils.ts Lines 609 to 619 in b0a50cb
What changes do you think we should make in order to solve the problem?First of all, whether we use because we don't consider the case for deleted parent action ( So, my suggestion is to include -(isOffline || reportAction.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE || reportAction.errors)
+(isOffline || ReportActionsUtils.isDeletedParentAction(reportAction) || reportAction.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE || reportAction.errors) This is enough, but if we see the above condition, it's similar to App/src/libs/ReportActionsUtils.ts Lines 500 to 502 in b0a50cb
The main difference is, |
@bernhardoj's proposal looks good. 🎀 👀 🎀 C+ Reviewed |
next step - waiting for @bernhardoj to open a PR |
Sorry for the delay, PR is ready for review cc: @shubham1206agra |
This issue has not been updated in over 15 days. @sonialiap, @roryabraham, @bernhardoj, @shubham1206agra 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! |
PR was deployed to prod a week ago. Ready to pay. |
Job added to Upwork: https://www.upwork.com/jobs/~017b4b082efdd47324 |
Current assignee @shubham1206agra is eligible for the External assigner, not assigning anyone new. |
Payment summary:
|
@sonialiap I think the issue was created before the April 6 deadline. The bounty should be $500 here. |
@shubham1206agra updated :) |
@sonialiap Accepted |
paid ✔️ |
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.57-3
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: @roryabraham
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1711665611722399?thread_ts=1711571474.268739&cid=C01GTK53T8Q
Action Performed:
Expected Result:
While waiting for the network request to process deleted message should appear
strikethrough
and thendeleted message
should appearActual Result:
While network request from offline to online processes, the message deleted from step 2 will disappear rather than showing [Deleted Message].
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: