-
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-08-28] [$1000] When in editing mode, the edited message does not dynamically update between the main chat and sub-thread #22368
Comments
Triggered auto assignment to @sophiepintoraetz ( |
Bug0 Triage Checklist (Main S/O)
|
This is not reproducible on v1.3.39-5 @tranvantoan-qn? (I'm on staging) 2023-07-11_13-02-18.mp4 |
Hi @sophiepintoraetz |
@tranvantoan-qn if there are many steps, please can you make sure that they are fully captured in the reproduction steps? |
Yes, each step and its explanation is fully captured in the attached video above I post the video here again 251550670-3a6600c7-3f53-44d9-b806-00fa944ac66d.mp4 |
Let me upload the correct video but please can you confirm which steps aren't being completed - I am well aware of the video in the master GH. |
Hi @sophiepintoraetz I checked your video carefully and I have identified a step that you missed:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.When in editing mode, the edited message does not dynamically update between the main chat and sub-thread What is the root cause of that problem?In this follow code, we always get value from draft without checking if the message is edited App/src/pages/home/report/ReportActionItemMessageEdit.js Lines 86 to 94 in 702d8e2
What changes do you think we should make in order to solve the problem?Add a condition to check if the message is edited and published, we should get that value and use it as draft. const [draft, setDraft] = useState(() => {
if (props.draftMessage === props.action.message[0].html) {
// We only convert the report action message to markdown if the draft message is unchanged.
const parser = new ExpensiMark();
return parser.htmlToMarkdown(props.draftMessage).trim();
} else {
if (props.action.message[0].isEdited === true) {
return Str.htmlDecode(props.action.message[0].html);
} else {
// We need to decode saved draft message because it's escaped before saving.
return Str.htmlDecode(props.draftMessage);
}
}
}); What alternative solutions did you explore? (Optional)N/A |
Hi @sophiepintoraetz |
Unfortunately, I've had some other priorities so I'll get to this when I can! |
@sophiepintoraetz Huh... This is 4 days overdue. Who can take care of this? |
Job added to Upwork: https://www.upwork.com/jobs/~01ee387cbb35240fa6 |
📣 @mollfpr 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @tranvantoan-qn 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
Waiting on a PR review from @youssef-lr |
Left a minor comment on the PR! |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.55-8 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-08-28. 🎊 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.
For reference, here are some details about the assignees on this issue:
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:
|
Payouts due: Issue Reporter: $250 @tranvantoan-qn - Paid Eligible for 50% #urgency bonus? N |
Bump @mollfpr! |
Sorry for the delay!
No offending PR. We haven't implemented the sync between parent and child on the report action draft.
The regression step should be enough.
|
Payment released, regression test added. |
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:
The pending edit text should be updated to Y (since the message ID is still the same)
Actual Result:
Pending edit text still showing as the old text - X
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.37-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
Message.not.synced.mp4
Recording.1185.mp4
Expensify/Expensify Issue URL:
Issue reported by: @tranvantoan-qn
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688569312112949
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: