You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$1000] Flag as offensive option show for their own comment in offline mode #22286
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
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
👋 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:
Identify the pull request that introduced this issue and revert it.
Activity
esh-g commentedon 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:
App/src/libs/ReportUtils.js
Line 2113 in f9a8529
Here we are checking if the
reportAction.actorEmailis present in the user login methods. But when offline, the optimistic report action doesn't havereportAction.actorEmailbecause that was removed in this PR: #21771What changes do you think we should make to solve this problem?
Instead of checking each login method, we can just check the
accountIDbecauseactorAccountDis present for optimistic chat report. Just like we do incanEditReportActionApp/src/libs/ReportUtils.js
Line 205 in f9a8529
What other approach did you explore?
None
melvin-bot commentedon Jul 5, 2023
Triggered auto assignment to @laurenreidexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jul 5, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)OSBotify commentedon Jul 5, 2023
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
StagingDeployCashdeploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:melvin-bot commentedon Jul 5, 2023
Triggered auto assignment to @iwiznia (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.iwiznia commentedon Jul 5, 2023
Reverted the PR that caused this
12 remaining items
melvin-bot commentedon Jul 11, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01517ea79f1ae718c6
melvin-bot commentedon Jul 11, 2023
Current assignee @laurenreidexpensify is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jul 11, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav (
External)laurenreidexpensify commentedon Jul 11, 2023
@gadhiyamanan pls apply https://www.upwork.com/jobs/~01517ea79f1ae718c6 and I will issue bonus thanks
gadhiyamanan commentedon Jul 11, 2023
@laurenreidexpensify applied, thanks!
francoisl commentedon 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.
gadhiyamanan commentedon Jul 12, 2023
@laurenreidexpensify offer accepted, thanks!
laurenreidexpensify commentedon Jul 18, 2023
@gadhiyamanan has been paid 👍