-
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 2023-04-27] [HOLD for payment 2023-04-26] [$1000] The edited message doesn't update on LHN in offline mode #17212
Comments
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
Reproducible |
Triggered auto assignment to @francoisl ( |
Same behavior on the Android native app. I wonder if this is intentional |
Editing a message should be an optimistic action, so I don't think it's supposed to be intentional. |
Job added to Upwork: https://www.upwork.com/jobs/~01953a5f80d1aa943c |
Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The edited message doesn't update on LHN in offline mode What is the root cause of that problem?App/src/libs/actions/Report.js Line 826 in a177ba3
In UpdateComment API, we are setting optimisticData for ReportActions field but not for the Report field. So that the lastMessageText in the Report field in ONYX is not updated when editing offline What changes do you think we should make in order to solve the problem?If we updated the last report action, we should add optimistcData for the Report field that includes: lastActionCreated, lastActorEmail, lastMessageHtml, lastMessageText. EDITED: should ignore this suggestion because I see that we also don't add pendingAction into optimisticReport in deleteComment API and addComment API What alternative solutions did you explore? (Optional)NA ResultScreen.Recording.2023-04-11.at.15.07.23.mov |
Current assignee @francoisl is eligible for the External assigner, not assigning anyone new. |
@dukenv0307 Thank you for the proposal. Could you please consider reformatting your proposal to improve its readability ? Specifically this part :
The proposal looks good to me. Looking at the codebase All yours @francoisl C+ reviewed 🎀👀🎀 |
|
Please re-state the problem that we are trying to solve in this issue.The edited message doesn't update on LHN in offline mode What is the root cause of that problem?When the user edited an existing message, editReportComment() is called from below mentioned file: App/src/libs/actions/Report.js Line 826 in a177ba3
This function is setting up optimisticData only for ReportActions, not for Reports fields. So the last message is not updating in the Report field. What changes do you think we should make in order to solve the problem?We need to add App/src/libs/actions/Report.js Line 871 in a177ba3
and update
Video File:https://drive.google.com/file/d/1k54k7EluDa8sBIU1C78QmJtUabV6-dht/view?usp=share_link |
@kaushiktd Your proposal is a duplicate of @dukenv0307's proposal , Please make sure to follow contributing rules when proposing new proposal.
|
👍 @dukenv0307 your proposal sounds good, let's go with it. |
📣 @dukenv0307 You have been assigned to this job by @francoisl! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.1-3 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-04-26. 🎊 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.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.2-5 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-04-27. 🎊 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.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
|
@francoisl, @sonialiap, @fedirjh, @dukenv0307 Eep! 4 days overdue now. Issues have feelings too... |
It's awaiting payment. |
@dukenv0307 offer sent for fixing the issue (+ bonus for merging under 3 days) |
@priya-zha is this your Upwork profile? Confirming so that I make sure I send the offer to the correct person :) |
@sonialiap The profile that you mentioned is not mine. My profile is : https://www.upwork.com/freelancers/~011e32317dbbd489e0 |
@francoisl, @sonialiap, @fedirjh, @dukenv0307 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@dukenv0307 paid @priya-zha thanks for the link. Offer sent for reporting issue |
Thanks accepted. |
@priya-zha paid! :) |
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:
Expected Result:
The edited message should be updated on LHN on offline mode
Actual Result:
The edited message doesn't update on LHN on offline mode
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.97-2
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
error-2023-04-09_14.23.14.mp4
Recording.182.mp4
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681029679583489
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: