Skip to content
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-11-01] [$1000] Web - LHN still displays "Deleted message" although we deleted comment and its thread completely #23450

Closed
1 of 6 tasks
kbecciv opened this issue Jul 23, 2023 · 102 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Jul 23, 2023

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:

  1. Go to any chat report
  2. Type a comment
  3. Click "Reply on thread" context menu of this comment
  4. Type a reply in that thread
  5. Remove the parent comment of that thread
  6. Verify that the LHN is displays "Deleted message" in original chat report, and in original chat report, we can still see the comment in step 2, with marked as deleted message
  7. Delete the reply comment in step 4
  8. Go to the original chat report, the comment in step 2 is disappear

Expected Result:

LHN should show the latest visible message.

Actual Result:

LHN still displays "Deleted message" although we deleted comment and its thread completely, and the comment is already disappear in the chat.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.43-7
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

Screen.Recording.2023-07-22.at.06.46.55.mov
Recording.3854.mp4

Expensify/Expensify Issue URL:
Issue reported by: @hoangzinh
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689983918865759

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01746b90b47c15e650
  • Upwork Job ID: 1694864004183359488
  • Last Price Increase: 2023-09-15
  • Automatic offers:
    • hoangzinh | Reporter | 26781400
    • rojiphil | Contributor | 27299208
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 23, 2023

Triggered auto assignment to @johncschuster (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Jul 23, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@s-alves10
Copy link
Contributor

s-alves10 commented Jul 24, 2023

It looks like this is an intentional behavior, but I think this is an inconsistency.

@dukenv0307
Copy link
Contributor

hold #19722

@hoangzinh
Copy link
Contributor

It looks like this is an intentional behavior, but I think this is an inconsistency. This is from the PR

This issue is closely related to #23401, and I think we should fix in one issue

I'm unsure if This issue is closely related to #23401, because in #23401, we only delete the main/original comment of a thread. While in this issue, we delete both original comment + comment in thread.

@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@johncschuster
Copy link
Contributor

@cead22 / @marcaaron it looks like you are both assigned the above-linked issue. Can you investigate whether the linked PR caused a regression?

@melvin-bot melvin-bot bot removed the Overdue label Jul 26, 2023
@marcaaron
Copy link
Contributor

See my comment here @johncschuster #19722 (comment)

@johncschuster
Copy link
Contributor

Awesome. Thanks, @marcaaron! In that case, should we put this one on hold and wait until #19722 has been resolved to see if this behavior is still an issue, or are you confident #19722 will resolve this issue? If yes, I would close this issue.

@hoangzinh
Copy link
Contributor

Although I think they're different issues, and we don't know what is the new approach to fix #19722 there. But If we think they're almost same, I think it's better if we put this card in on-hold for #19722. So we don't need to reopen this issue again if someone report a new duplicated issue.

@marcaaron
Copy link
Contributor

Tbh I'm only involved because I am the deployer this week and something loosely related needed to be reverted to unblock the deploy. I would suggest seeking out and asking the original authors who introduced the regression directly.

@marcaaron
Copy link
Contributor

HOLD does sound like a reasonable plan to me though since deleting the comment thread is not that critical of an action that people will take and doesn't have a great effect on the biz.

@s-alves10
Copy link
Contributor

#19722 (comment)

@melvin-bot melvin-bot bot added the Overdue label Jul 31, 2023
@rojiphil

This comment was marked as outdated.

@rojiphil
Copy link
Contributor

Proposal

Updated proposal to include steps (4) and (5) for handling display of deleted parent action in report screen and few other corner cases.

@johncschuster
Copy link
Contributor

@flodnv @rushatgabhane @dukenv0307, it looks like the PR linked to this issue may have caused a regression. Can you investigate that and leave a comment here so we know how best to handle this issue? Should we close it in favor of #19722?

@melvin-bot melvin-bot bot removed the Overdue label Jul 31, 2023
@rushatgabhane
Copy link
Member

@johncschuster yes we can hold this issue on #19722 and make it weekly or something

@johncschuster johncschuster changed the title Web - LHN still displays "Deleted message" although we deleted comment and its thread completely [HOLD on #19722] Web - LHN still displays "Deleted message" although we deleted comment and its thread completely Aug 2, 2023
@melvin-bot melvin-bot bot added the Overdue label Aug 2, 2023
@johncschuster
Copy link
Contributor

Sweet! Thanks, @rushatgabhane!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production labels Oct 25, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Web - LHN still displays "Deleted message" although we deleted comment and its thread completely [HOLD for payment 2023-11-01] [$1000] Web - LHN still displays "Deleted message" although we deleted comment and its thread completely Oct 25, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 25, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Oct 25, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.90-2 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-11-01. 🎊

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Oct 25, 2023

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:

  • [@allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
  • [@allroundexperts] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@allroundexperts] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@allroundexperts] Determine if we should create a regression test for this bug.
  • [@allroundexperts] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@johncschuster] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Nov 1, 2023
@rojiphil
Copy link
Contributor

rojiphil commented Nov 3, 2023

If no regressions arise, payment will be issued on 2023-11-01. 🎊

@johncschuster
Gentle bump on payments here

@melvin-bot melvin-bot bot added the Overdue label Nov 6, 2023
Copy link

melvin-bot bot commented Nov 6, 2023

@rojiphil, @johncschuster, @chiragsalian, @allroundexperts Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@johncschuster
Copy link
Contributor

johncschuster commented Nov 7, 2023

Payment Summary:

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉 (Comment)

@rojiphil requires payment offer (Contributor) - $1500 - PAID
@allroundexperts does not require payment (Eligible for Manual Requests) - $1500
@hoangzinh requires payment offer (Reporter) - $250 - PAID

@melvin-bot melvin-bot bot removed the Overdue label Nov 7, 2023
@johncschuster
Copy link
Contributor

@hoangzinh can you accept the offer on Upwork? I'll get payment issued to you once that's done.

@hoangzinh
Copy link
Contributor

Accepted. Thanks @johncschuster

@melvin-bot melvin-bot bot added the Overdue label Nov 13, 2023
Copy link

melvin-bot bot commented Nov 14, 2023

@rojiphil, @johncschuster, @chiragsalian, @allroundexperts Huh... This is 4 days overdue. Who can take care of this?

@johncschuster
Copy link
Contributor

I've issued payment to @hoangzinh. @allroundexperts, can you complete the BZ checklist when you get a moment? Thank you!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 14, 2023
Copy link

melvin-bot bot commented Nov 20, 2023

@rojiphil, @johncschuster, @chiragsalian, @allroundexperts Eep! 4 days overdue now. Issues have feelings too...

@allroundexperts
Copy link
Contributor

Checklist

  1. I think this logic has been touched too many times and its hard to find the exact PR causing the issue.
  2. N/A
  3. A Slack discussion is not needed IMO. I can't think of any addition to the checklist that could have avoided this.
  4. A regression test would be an overkill since this is such an edge case. However, If the team disagrees, then the following are the test steps.

Regression Test

  1. Go to any chat report and type a comment.
  2. Click "Reply on thread" context menu of this comment.
  3. Type a reply in that thread
  4. Remove the parent comment of that thread
  5. Verify that the LHN is displays "Deleted message" in original chat report, and in original chat report, we can still see the comment in step 2, with marked as deleted message
  6. Delete the reply comment in step 4
  7. Verify that in LHN, the latest message is shown instead of the text Deleted message.

Do we 👍 or 👎 ?

@melvin-bot melvin-bot bot removed the Overdue label Nov 20, 2023
@chiragsalian
Copy link
Contributor

I personally would prefer if we add that as a regression test step. Because if this breaks again its easier to fix if its found sooner vs later.

@JmillsExpensify
Copy link

$1,500 payment approved for @allroundexperts based on this comment.

@melvin-bot melvin-bot bot added the Overdue label Nov 24, 2023
Copy link

melvin-bot bot commented Nov 27, 2023

@rojiphil, @johncschuster, @chiragsalian, @allroundexperts Eep! 4 days overdue now. Issues have feelings too...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests