-
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 for payment 2023-03-14] [$2000] Editing status doesn't sync correctly between tabs. #15284
Comments
Triggered auto assignment to @greg-schroeder ( |
Bug0 Triage Checklist (Main S/O)
I repro'd on both prod and staging: 2023-02-20_13-21-49.mp4
|
Job added to Upwork: https://www.upwork.com/jobs/~01e4c499136c20d7f1 |
Current assignee @greg-schroeder is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
Triggered auto assignment to @cristipaval ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When a draft is cleared on one tab, it removes the "drafted message" indicator. What is the root cause of that problem?The reason for the "drafted message" indicator to remain absent on the other tab is because of how we check whether the "drafted message" icon has to displayed. This check is in updateComment method of ReportActionCompose class in ReportActionCompose.js. // Indicate that draft has been created. // The draft has been deleted. What changes do you think we should make in order to solve the problem?The check, for whether draft is being created, should be updated to something like this: // Indicate that draft has been created. Result is attached: Proposal.15284.movWhat alternative solutions did you explore?No other solution is necessary. |
ProposalPlease re-state the problem that we are trying to solve in this issue.We are trying to synchronize draft status between tabs. What is the root cause of that problem?When we type something into the composer whether on the 1st or 2nd tab, the What changes do you think we should make in order to solve the problem?I think what we need to do here is to synchronize the draft comment instead. When we type something into the composer on the 1st tab, then the composer text on the 2nd tab needs to be updated. So, when we delete the draft on the 1st tab, the composer text on the 2nd tab will also be deleted. There will be no case for unsynchronized draft icon. So, how to do that? We are saving the draft with Onyx and already connect it here. App/src/pages/home/report/ReportActionCompose.js Lines 736 to 738 in 660e389
We need to update the
I think we can also do the same with edit composer if we want to. Here is the result. Screen.Recording.2023-02-20.at.19.52.56.mov |
Proposal There is lots of deprecated library . I will add new library and resolve all bugs one by one. I have submitted the same proposal in Upwork and I am sure this can be done in 2-3 days |
📣 @crusaderkarthik! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Format:
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Report draft status/flag not being set unless the composer is cleared first. What is the root cause of that problem?The report draft status ( What changes do you think we should make in order to solve the problem?Instead of relaying on the old text to be empty (not to trigger unnecessary function calls) we can relay on the
What alternative solutions did you explore? (Optional)None |
@osofus, great job on finding the root cause, the proposal resolves the issue. I found what feels like an issue: the Screen.Recording.2023-02-22.at.22.01.56.mov |
📣 @eVoloshchak! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Format:
|
Hi, @crusaderkarthik! |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
I think @bernhardoj's proposal is the best, syncing the draft comment on all tabs will eliminate this issue, as well as the issue I was describing above. |
PR is ready for review. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.79-0 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-03-14. 🎊 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:
|
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
|
Thank you @eVoloshchak ! I think this one is on you now, @greg-schroeder |
I wonder if Melvin is not ok or I am missing something. He removes and instantly adds back the |
@cristipaval, yeah, I noticed this in other issues too. |
I apologize, I was out unexpectedly and I'm working on catching up. Will take care of this ASAP |
Sorry again for the delay while I was out - offers sent to @hungvu193, @eVoloshchak, @bernhardoj. I'll take care of this ASAP |
I get "This offer is not available anymore". |
Okay let's try this again @bernhardoj - I'm sending it again now. |
Accepted! |
Paid |
Added regression test https://github.com/Expensify/Expensify/issues/271583 |
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:
Editing status should sync correctly between tabs, so the editing icon should appear in the second tab
Actual Result:
Editing status does not sync, edit icon does not appear
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
MacOS / Chrome / Safari
Version Number: 1.2.74-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
Notes/Photos/Videos:
Recording.1557.mp4
Screen.Recording.2023-02-18.at.18.03.18.mov
Expensify/Expensify Issue URL:
Issue reported by: @hungvu193
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1676718924677029
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: