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

[$1000] Flag as offensive option show for their own comment in offline mode #22286

Closed
6 tasks done
kavimuru opened this issue Jul 5, 2023 · 20 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Reviewing Has a PR in review

Comments

@kavimuru
Copy link

kavimuru commented Jul 5, 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. go to offline
  2. go to any chat
  3. send any message
  4. hover on that message

Expected Result:

Flag as offensive option should not show for own comment

Actual Result:

Flag as offensive shows for own comment

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?

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

Version Number: v1.3.37-1
Reproducible in staging?: y
Reproducible in production?: n
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-05.at.6.12.49.PM.mov
Recording.1169.mp4

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01517ea79f1ae718c6
  • Upwork Job ID: 1678677924567666688
  • Last Price Increase: 2023-07-11
@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 5, 2023
@esh-g
Copy link
Contributor

esh-g commented Jul 5, 2023

Proposal

Please re-state the problem

Flag as offensive option show for their own comment in offline mode

What is the root cause of that problem?

This is a regression of the PR: #21874
We can see the line below:

!loginList.includes(reportAction.actorEmail) &&

Here we are checking if the reportAction.actorEmail is present in the user login methods. But when offline, the optimistic report action doesn't have reportAction.actorEmail because that was removed in this PR: #21771

What changes do you think we should make to solve this problem?

Instead of checking each login method, we can just check the accountID because actorAccountD is present for optimistic chat report. Just like we do in canEditReportAction

reportAction.actorAccountID === currentUserAccountID &&

What other approach did you explore?

None

@melvin-bot
Copy link

melvin-bot bot commented Jul 5, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 5, 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

@OSBotify
Copy link
Contributor

OSBotify commented Jul 5, 2023

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@melvin-bot
Copy link

melvin-bot bot commented Jul 5, 2023

Triggered auto assignment to @iwiznia (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@iwiznia
Copy link
Contributor

iwiznia commented Jul 5, 2023

Reverted the PR that caused this

@luacmartins
Copy link
Contributor

luacmartins commented Jul 5, 2023

Since we're reverting this, I'm gonna close the PR I had to fix undefined logins/displayNames

@iwiznia
Copy link
Contributor

iwiznia commented Jul 5, 2023

@iwiznia
Copy link
Contributor

iwiznia commented Jul 5, 2023

Tested it and the bug is gone

@iwiznia iwiznia closed this as completed Jul 5, 2023
@gadhiyamanan
Copy link
Contributor

reporting bonus is pending
Cc: @iwiznia @laurenreidexpensify

@gadhiyamanan
Copy link
Contributor

bump @iwiznia @laurenreidexpensify ^^

@iwiznia
Copy link
Contributor

iwiznia commented Jul 10, 2023

cc @laurenreidexpensify on the above

@laurenreidexpensify laurenreidexpensify added Daily KSv2 External Added to denote the issue can be worked on by a contributor labels Jul 11, 2023
@melvin-bot melvin-bot bot changed the title Flag as offensive option show for their own comment in offline mode [$1000] Flag as offensive option show for their own comment in offline mode Jul 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01517ea79f1ae718c6

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

melvin-bot bot commented Jul 11, 2023

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

@laurenreidexpensify laurenreidexpensify removed External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Jul 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

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

@laurenreidexpensify
Copy link
Contributor

@gadhiyamanan pls apply https://www.upwork.com/jobs/~01517ea79f1ae718c6 and I will issue bonus thanks

@gadhiyamanan
Copy link
Contributor

@laurenreidexpensify applied, thanks!

@francoisl
Copy link
Contributor

francoisl commented Jul 11, 2023

To clarify, we just need to handle payment at this point and this is no longer a deploy blocker, right? Going to remove the label.

@francoisl francoisl removed the DeployBlockerCash This issue or pull request should block deployment label Jul 11, 2023
@gadhiyamanan
Copy link
Contributor

@laurenreidexpensify offer accepted, thanks!

@laurenreidexpensify
Copy link
Contributor

@gadhiyamanan has been paid 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

9 participants