-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-12-07] [$500] Go back from Flag as offensive
doesn't display correct report page
#30101
Comments
Flag as offensive
doesn't display correct report pageFlag as offensive
doesn't display correct report page
Job added to Upwork: https://www.upwork.com/jobs/~01bff2f94a7065c212 |
Triggered auto assignment to @Christinadobrzyn ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
Proposal from @suneoxPlease re-state the problem that we are trying to solve in this issue.Go back from What is the root cause of that problem?In the What changes do you think we should make in order to solve the problem?We should handle <HeaderWithBackButton
title={props.translate(‘reportActionContextMenu.flagAsOffensive’)}
onBackButtonPress={() => Navigation.goBack(ROUTES.REPORT_WITH_ID.getRoute(props.report.reportID))}
/> What alternative solutions did you explore? (Optional) |
@suneox's proposal seems good. quick straight forward fix. 🎀 👀 🎀 C+ reviewed. |
Triggered auto assignment to @iwiznia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@mananjadhav I am confused, I see no proposal from @suneox... did you mean to say @m-natarajan and pick this proposal? |
@iwiznia Sorry for the confusion, I should've linked the comment. @m-natarajan is from Applause and @suneox is the reporter who posted the solution on slack. |
@suneox Can you please post a comment with your proposal? So that it can be assigned. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Go back from What is the root cause of that problem?In the What changes do you think we should make in order to solve the problem?We should handle <HeaderWithBackButton
title={props.translate(‘reportActionContextMenu.flagAsOffensive’)}
onBackButtonPress={() => {
const topMostReportID = Navigation.getTopmostReportId();
if (topMostReportID) {
Navigation.goBack(ROUTES.HOME);
return;
}
Navigation.goBack();
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(props.report.reportID));
}}
/> this pattern has been applied at ReportDetailPage to avoid back multiple times keep navigation history What alternative solutions did you explore? (Optional)If we need to keep the navigation history just update it to <HeaderWithBackButton
title={props.translate(‘reportActionContextMenu.flagAsOffensive’)}
onBackButtonPress={() => Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(props.report.reportID))}
/> |
📣 @mananjadhav Please request via NewDot manual requests for the Reviewer role ($500) |
📣 @suneox 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Hi @mananjadhav the PR is ready to review |
Discussing the last comment change here. @suneox has added the following change.
I don't think it's a good idea to push a platform specific check on back button press. I checked further in the code and I don't think we're doing this. @iwiznia what do you think about this? I did another quick test (which I should've done earlier) for the profile view, it looks like we have the same behavior. So I want to go ask @Christinadobrzyn and @iwiznia, do we want to fix this across the app for other routes as well? I personally think we shouldn't as it is about fresh load of the page. |
Yeah, sounds off. @suneox can you explain the problem that prompted you to add that code? |
This comment was marked as off-topic.
This comment was marked as off-topic.
Flag as offensive
doesn't display correct report pageFlag as offensive
doesn't display correct report page
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.5-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-12-07. 🎊 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:
|
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:
|
prepping for payment Payouts due: Issue Reporter: $50 @suneox (Paid in Upwork) Eligible for 50% #urgency bonus? N - PR created Oct 24th and merged Nov 28th Upwork job is here. @mananjadhav should there be a regression test? |
Yeah I think it's best we add a regression test. We've updated the back button logic and also added some calls to Navigation. QA steps from the PR body looks fine to me. There is no offending PR, because I think we didn't consider this case. |
I've raised my request on NewDot. |
Hi @mananjadhav |
just checking @suneox @mananjadhav is there a regression from this? |
Base on PR I think no regression |
No regression here @Christinadobrzyn |
Awesome! let me know if this is ready to be closed! |
@Christinadobrzyn once it is paid out and the regression test is added we can close it. |
Oh gosh, I'm sorry I thought I paid this yesterday! Sorry to keep you waiting, paying now! |
Paid @suneox through Upwork based on this payment summary Gonna close this out! |
Thank @Christinadobrzyn and @mananjadhav I have received payment |
$500 payment approved for @mananjadhav based on this comment. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.3.87-2
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
Expensify/Expensify Issue URL:
Issue reported by: @suneox
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697654423349679
Action Performed:
Expected Result:
App should display report from
Flag as offensive
Actual Result:
App doesn't display report from
Flag as offensive
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
az_recorder_20231019_004916.mp4
iOS: Native
iOS: mWeb Safari
RPReplay_Final1697654319.MP4
MacOS: Chrome / Safari
flag-as-offensive-chrome.mp4
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: