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-07-28] [$1000] Web - "(edited)" shows up when user clicks on the show message button on a deleted first thread message #21707

Closed
1 of 6 tasks
kbecciv opened this issue Jun 27, 2023 · 35 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 Engineering Internal Requires API changes or must be handled by Expensify staff

Comments

@kbecciv
Copy link

kbecciv commented Jun 27, 2023

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:

  1. Send a message from account A to account B
  2. Hover over the sent message on account B and click on reply in thread and send a message as a thread reply
  3. Hover over the first thread message and click on the flag icon
  4. Go to account A and go to the original chat where the thread started off and delete the first message where the thread reply is on
  5. Go to account B and select a severity from the panel. For eg. "Intimidation"
  6. Click on the show message button on the first message

Expected Result:

User should see [Deleted message] after clicking on the show message button.

Actual Result:

"(edited)" shows up when user clicks on the show message button.

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.33.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: Any additional supporting documentation

2023-06-23.18.09.28.1.mp4
Recording.5195.mp4

Expensify/Expensify Issue URL:
Issue reported by: @Nathan-Mulugeta
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687533238591329

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0131a4c134074c1f4f
  • Upwork Job ID: 1674819820477284352
  • Last Price Increase: 2023-06-30
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 27, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 27, 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

FlagComment API returns parentReportAction with isEdited=true, isDeletedParentAction=false. Calling OpenReport API again returns isEdited=true, isDeletedParentAction=true. This is the main reason. Looks like should be fixed in the backend

@jeet-dhandha
Copy link
Contributor

Is there a way I can help with the API ? @kbecciv

@melvin-bot melvin-bot bot added the Overdue label Jun 29, 2023
@CortneyOfstad
Copy link
Contributor

I was able to recreate this on my side as well. Getting some eyes on this

@melvin-bot melvin-bot bot removed the Overdue label Jun 30, 2023
@CortneyOfstad CortneyOfstad added the External Added to denote the issue can be worked on by a contributor label Jun 30, 2023
@melvin-bot melvin-bot bot changed the title Web - "(edited)" shows up when user clicks on the show message button on a deleted first thread message [$1000] Web - "(edited)" shows up when user clicks on the show message button on a deleted first thread message Jun 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 30, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0131a4c134074c1f4f

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 30, 2023

Current assignee @CortneyOfstad is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jun 30, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (External)

@CortneyOfstad
Copy link
Contributor

Heading OoO for the week (back July 10) so re-assigning this in the meantime 👍

@CortneyOfstad CortneyOfstad removed their assignment Jun 30, 2023
@CortneyOfstad CortneyOfstad added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Jun 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 30, 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 Jun 30, 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

@melvin-bot melvin-bot bot added the Overdue label Jul 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 3, 2023

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

@eVoloshchak
Copy link
Contributor

Not overdue, looks like this need to be fixed on the back end

@melvin-bot melvin-bot bot removed the Overdue label Jul 4, 2023
@eVoloshchak
Copy link
Contributor

Is there a way I can help with the API ?
@jeet-dhandha, I think contributors can work only on the front end part of the app

@johncschuster johncschuster added the Internal Requires API changes or must be handled by Expensify staff label Jul 6, 2023
@melvin-bot melvin-bot bot added the Overdue label Jul 12, 2023
@luacmartins
Copy link
Contributor

luacmartins commented Jul 12, 2023

We're still having this issue even after the API update. That's because we store reportAction when FlagCommentPage renders, but it's never updated for threads since props.reportActions points to the reportActions of the thread report and not parent report. I'm gonna look into a solution for this soon.

@melvin-bot melvin-bot bot removed the Overdue label Jul 12, 2023
@luacmartins
Copy link
Contributor

Actually, since the report action was deleted, I don't think we should be able to flag it at all - see this line. I'm wondering if we need to do anything here at all. What do you think @dangrous?

@dangrous
Copy link
Contributor

So yeah, the flag won't go through on a deleted message - but if the flag pane is already open, I believe it should just silently fail (there's a lot of discussion about that in this issue, we ultimately decided that was best). The message itself, though, should be updated to its usual status - in this case, [Deleted message]. So if it's NOT currently doing that, we should make sure it does.

@luacmartins
Copy link
Contributor

luacmartins commented Jul 13, 2023

I believe it should just silently fail

Yea, this sounds good. I'll work on a fix for showing [Deleted message]. Thanks for confirming!

@melvin-bot
Copy link

melvin-bot bot commented Jul 20, 2023

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

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 21, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Web - "(edited)" shows up when user clicks on the show message button on a deleted first thread message [HOLD for payment 2023-07-28] [$1000] Web - "(edited)" shows up when user clicks on the show message button on a deleted first thread message Jul 21, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 21, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 21, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.43-7 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-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:

  • @eVoloshchak does not require payment (Eligable for Manual Requests)

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 Jul 21, 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:

  • [@eVoloshchak] The PR that introduced the bug has been identified. Link to the PR:
  • [@eVoloshchak] 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:
  • [@eVoloshchak] 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:
  • [@eVoloshchak] Determine if we should create a regression test for this bug.
  • [@eVoloshchak] 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:

@johncschuster
Copy link
Contributor

@eVoloshchak bump on the checklist above

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 27, 2023
@eVoloshchak
Copy link
Contributor

  • The PR that introduced the bug has been identified. Link to the PR: This was a bug on back end

  • 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: N/A

  • 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: Not sure an additional discussion is needed here, this was an enge case missed during review, not much we could add to our processes

  • Determine if we should create a regression test for this bug.
    Ideally, we want to test both cases: this issue and steps from Silently fail flagComment request if reportAction has been deleted #22831.
    Both of these cases are similar
    Is it easy to test for this bug? No, requires multiple accounts to test
    Is the bug related to an important user flow? Yes
    Is it an impactful bug? No

    I think we shouldn't create a regression test for this. The bug isn't impactful and doesn't affect user experience, while being not easy to test

@johncschuster
Copy link
Contributor

Thanks, @eVoloshchak!

I think we shouldn't create a regression test for this. The bug isn't impactful and doesn't affect user experience, while being not easy to test

@luacmartins what are your thoughts on the above? Do you agree?

@luacmartins
Copy link
Contributor

I agree. This is an edge case scenario that doesn't prevent the user from using the App.

@johncschuster
Copy link
Contributor

Summary of payment:

External issue reporter - @Nathan-Mulugeta - $250
Internal engineer fixed the issue
Contributor+ that helped on the issue and/or PR - @eVoloshchak - $1000 (will request through NewDot)

@johncschuster
Copy link
Contributor

Working on issuing the bug report payment to Nathan in the above-linked issue.

@johncschuster
Copy link
Contributor

Payment has been issued to @Nathan-Mulugeta on #23967 🎉

@johncschuster
Copy link
Contributor

@JmillsExpensify

Summary of payment:

External issue reporter - @Nathan-Mulugeta - $250 (Paid via Upwork)
Internal engineer fixed the issue
Contributor+ that helped on the issue and/or PR - @eVoloshchak - $1000 (will request through NewDot)

@JmillsExpensify
Copy link

Reviewed details for @eVoloshchak. These details are accurate based on summary from Business Reviewer and are now approved for payment in NewDot.

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 Engineering Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

9 participants