-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-07-05] [$1000] The title of thread in LHN still be attachment after deleting this attachment #20580
Comments
Triggered auto assignment to @alexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The title of thread in LHN still be attachment after deleting this attachment What is the root cause of that problem?Lines 1112 to 1118 in 414dc10
If the parent report action is attachment, we will return [Attachment] text immediately What changes do you think we should make in order to solve the problem?We should add a condition to check if this attachment been deleted or not
and add into the if statement like this
What alternative solutions did you explore? (Optional) |
I can't edit my original proposal. So I Post new comment to give an alternative solution What alternative solutions did you explore? (Optional)Because
ResultBoth proposal work well Screen.Recording.2023-06-12.at.19.13.16.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.The thread title in LHN does not change to Deleted Message when the parent action of attachment is deleted. What is the root cause of that problem?The title in LHN comes from Lines 337 to 339 in 0a471b0
If it's a thread and it's an attachment, we will always return [Attachment]. Lines 972 to 984 in 0a471b0
Notice that we are checking 2 things to detect whether this action is an attachment or not.
When we delete an action, both App/src/libs/actions/Report.js Lines 812 to 820 in 0a471b0
This means, the 2nd check above will return false, but the first check still returns true because What changes do you think we should make in order to solve the problem?First of all, Lines 270 to 274 in 0a471b0
App/src/libs/OptionsListUtils.js Lines 440 to 444 in 0a471b0
What alternative solutions did you explore? (Optional)Update |
This one is on my review list |
@rushatgabhane and @tylerkaraszewski - this one seems pretty similar to the GH you are assigned here: (#19913) Should we consolidate this GH into the one above? |
No update |
Tomorrow, I'll start a discussion to identify if we believe that this one is similar with #19913 |
@alexpensify this is a different issue I think. It's related to threads + deleting a message. |
Job added to Upwork: https://www.upwork.com/jobs/~01385d7c536631fa3d |
Current assignee @alexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Thank you @rushatgabhane for confirming this one is different. I've assigned the |
ProposalPlease re-state the problem that we are trying to solve in this issue.When the message is attachment and you reply in thread, title of the thread in LHN is [Attachment]. After deleting the attachment thread title should be changed to [Deleted message]. At the moment it stays unchanged. What is the root cause of that problem?Problem is in Lines 1003 to 1008 in 2b2f497
What changes do you think we should make in order to solve the problem?We should check if the message is deleted before checking it is attachment and return appropriate value.
In addition, we will avoid unnecessary check on being attachment (when the message is deleted) by moving that statement inside the demo.mp4 |
📣 @offroader! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.33-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-07-05. 🎊 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:
|
@dukenv0307 and @mollfpr - please apply to the job here: https://www.upwork.com/jobs/~01385d7c536631fa3d Tomorrow, I need to make sure we are prepared for the payment period which is set for next week. Thank you! |
Triggered auto assignment to @conorpendergrast ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
Reassigning another Required action from the 🐛 team: Please set a reminder for July 5, we have a payment to prepare in Upwork for @dukenv0307 and @mollfpr. Heads up there is an incentive bonus: #20580 (comment) and @dukenv0307 is the issue reporter. I've not factored these into the payment but they are ready with proposals here: https://www.upwork.com/jobs/~01385d7c536631fa3d Thank you! |
@alexpensify Thank you for the excellent write-up! |
Oh this was switch to Daily incorrectly. Switching back to Weekly as it's on payment hold |
I'm running out of time, will complete the checklist in the morning. |
The regression step is enough.
|
Offers sent to @mollfpr (with urgency bonus) and @dukenv0307 (with bug bounty and urgency bonus) via Upwork |
@mollfpr paid. Regression test created: https://github.com/Expensify/Expensify/issues/298631 |
@conorpendergrast - I'm back online and see that this is our current state: I appreciate your help! It looks like everyone has been paid out. Are we good to close this GH or is there any required action that I need to take here? |
Nope, @dukenv0307 hasn't been paid yet. Looks like contract has been accepted, so I'll pay that, mark it off, and will close this |
And we're all done |
Perfect, thank you! |
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:
Title in LHN still be [Deleted message]
Actual Result:
Title in LHN still be [Attachment]
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: n/a
Reproducible in staging?: n/a
Reproducible in production?: n/a
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
Screen.Recording.2023-05-27.at.21.55.46.mov
Expensify/Expensify Issue URL:
Issue reported by: @dukenv0307
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685199666223399
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: