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
[HOLD for payment 2023-10-18] [$500] Two "Flag as offensive" list opens #28863
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.77-5 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
I've reviewed all the proposals and all of them define the root cause correctly but I think the best solution (and the first one) is the one from @gadhiyamanan - I believe here the return statement is just missing in the if block - we can compare it with similar implementations of onPress method for other context menu items in the ContextMenuActions.js - they are similar so I believe calling navigate twice is intended.
changed the title [-][$500] Two "Flag as offensive" list opens[/-][+][HOLD for payment 2023-10-18] [$500] Two "Flag as offensive" list opens[/+]on Oct 11, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.80-3 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-10-18. 🎊
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:
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:
[@burczu] The PR that introduced the bug has been identified. Link to the PR:
[@burczu] 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:
[@burczu] 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:
[@burczu] Determine if we should create a regression test for this bug.
[@burczu] 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.
[@bfitzexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
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:
[@burczu] The PR that introduced the bug has been identified. Link to the PR: No regression - it was just done this way from the beginning.
[@burczu] 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
[@burczu] 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: n/a
[@burczu] Determine if we should create a regression test for this bug.
[@burczu] 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.
[@bfitzexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Activity
[-]Two "Flag as offensive" list opens[/-][+][$500] Two "Flag as offensive" list opens[/+]melvin-bot commentedon Oct 4, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01bfd52163177c5b7e
melvin-bot commentedon Oct 4, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @burczu (
External)m-natarajan commentedon Oct 4, 2023
Proposal by @gadhiyamanan
Please re-state the problem that we are trying to solve in this issue.
two Flag as offensive list open
What is the root cause of that problem?
We are navigate to flag comment two times here and here
What changes do you think we should make in order to solve the problem?
add return after hideContextMenu and navigate to flag comment
App/src/pages/home/report/ContextMenu/ContextMenuActions.js
Lines 374 to 376 in 56eda28
ayazalavi commentedon Oct 5, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Clicking on context menu item Flag as offensive opens a popover but it is not getting closed.
What is the root cause of that problem?
There is redundant call to navigate method in onPress event of the menu item
App/src/pages/home/report/ContextMenu/ContextMenuActions.js
Lines 373 to 379 in 6d86d5a
What changes do you think we should make in order to solve the problem?
We need to confirm why 2 times above callback is being called and if second callback is not necessary then remove it
App/src/pages/home/report/ContextMenu/ContextMenuActions.js
Line 378 in 6d86d5a
What alternative solutions did you explore? (Optional)
N/A
maxconnectAbhi commentedon Oct 5, 2023
# Proposal
Please re-state the problem that we are trying to solve in this issue
"Flag as offensive" list modal opens two times
What is the root cause of that problem?
Following callback is the root cause
What changes do you think we should make in order to solve the problem?
In above callback we need to remove one Navigation call
What alternative solutions did you explore? (Optional)
NA
burczu commentedon Oct 5, 2023
I've reviewed all the proposals and all of them define the root cause correctly but I think the best solution (and the first one) is the one from @gadhiyamanan - I believe here the
returnstatement is just missing in theifblock - we can compare it with similar implementations ofonPressmethod for other context menu items in theContextMenuActions.js- they are similar so I believe callingnavigatetwice is intended.🎀 👀 🎀 C+ reviewed
melvin-bot commentedon Oct 5, 2023
Triggered auto assignment to @francoisl, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
gadhiyamanan commentedon Oct 5, 2023
@m-natarajan is from QA team and he posted solution from slack
cc: @burczu @francoisl
burczu commentedon Oct 5, 2023
@gadhiyamanan Ahh... sorry, I didn't notice it! Updated!
17 remaining items
melvin-bot commentedon Oct 10, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)[-][$500] Two "Flag as offensive" list opens[/-][+][HOLD for payment 2023-10-18] [$500] Two "Flag as offensive" list opens[/+]melvin-bot commentedon Oct 11, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Oct 11, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.80-3 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-10-18. 🎊
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:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
melvin-bot commentedon Oct 11, 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:
burczu commentedon Oct 17, 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:
bfitzexpensify commentedon Oct 18, 2023
Payments complete and BZ checklist done, we're all done here, thanks everyone.