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-11-30] [$125] Deeplink access of user notify me page and back opens wrong page #30629

Closed
6 tasks done
kbecciv opened this issue Oct 31, 2023 · 33 comments
Closed
6 tasks done
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Oct 31, 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!


Version Number: 1.3.81.3
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: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697014098088459

Action Performed:

  1. Open the app
  2. Open any user report
  3. Click on header and click on notify me
  4. Copy the URL and paste in any report
  5. (For devices without access to URL like native app, we will need to perform step 1 to 4 in device with URL access) Click on the URL
  6. Click on back and observe that instead of opening user details page, it opens room settings and displays user as room

Expected Result:

App should navigate back to user profile on back from notification preference page

Actual Result:

App navigates back to room settings instead of user profile on back from notification preference page when accessed by deep link

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Android: Native
Screen_Recording_20231011_140427_New.Expensify.1.mp4
Android: mWeb Chrome
android.chrome.click.on.URL.and.back.wrong.page.mp4
iOS: Native
RPReplay_Final1697047170.1.MP4
iOS: mWeb Safari
ios.safari.click.on.URL.and.back.wrong.page.mov
MacOS: Chrome / Safari
windows.chrome.back.from.notification.preference.not.working.mp4
double.slashes.not.handled.in.URL.mp4
MacOS: Desktop
mac.desktop.back.is.wrong.notify.me.mov

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0169068d72e6fa963b
  • Upwork Job ID: 1719332158598991872
  • Last Price Increase: 2023-11-07
  • Automatic offers:
    • ishpaul777 | Contributor | 27600164
    • dhanashree-sawant | Reporter | 27600166
@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 31, 2023
@melvin-bot melvin-bot bot changed the title Deeplink access of user notify me page and back opens wrong page [$500] Deeplink access of user notify me page and back opens wrong page Oct 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 31, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 31, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0169068d72e6fa963b

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

melvin-bot bot commented Oct 31, 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
Copy link

melvin-bot bot commented Oct 31, 2023

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

@kbecciv kbecciv changed the title [$500] Deeplink access of user notify me page and back opens wrong page [$125] Deeplink access of user notify me page and back opens wrong page Oct 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 31, 2023

Upwork job price has been updated to $125

@ishpaul777
Copy link
Contributor

ishpaul777 commented Oct 31, 2023

Proposal

Problem

Deeplink access of user notify me page and back opens wrong page

Root Cause

This happens because in Notification pref. page, when back button is clicked we navigate user to report settings page not user profile page

Solution

Instead of linking to a report details we should check if the report is 1:1 DM and in that case navigate user to user details.

what we can do is use the utility isOneOnOneChat from your PR and create a new utility goBackToDetailsPage and use the same in notification page when user select a option or click the back icon.

/**
 * Goback to the details page of a given report
 *
 * @param {Object} report
 */
function goBackToDetailsPage(report){
    if (isOneOnOneChat(report)) {
        Navigation.goBack(ROUTES.PROFILE.getRoute(report.participantAccountIDs[0]));
    } else if (report.reportID) {
        Navigation.goBack(ROUTES.REPORT_SETTINGS.getRoute(report.reportID))
    }
};

@bernhardoj
Copy link
Contributor

After this PR is merged, we can just use ReportUtils.navigateToDetailsPage

@melvin-bot melvin-bot bot added the Overdue label Nov 2, 2023
Copy link

melvin-bot bot commented Nov 3, 2023

@adelekennedy, @robertKozik Whoops! This issue is 2 days overdue. Let's get this updated quick!

@robertKozik
Copy link
Contributor

@bernhardoj Do you want to write the proposal for it?

@melvin-bot melvin-bot bot removed the Overdue label Nov 3, 2023
@bernhardoj
Copy link
Contributor

Oh, that's actually a suggestion for @ishpaul777 proposal so we don't end up creating a redundant function.

@ishpaul777
Copy link
Contributor

@bernhardoj Please correct me if i am wrong but i think navigateToDetailsPage will navigate to the details page while we want is to goBack in navigation. Right?

Screen.Recording.2023-11-04.at.4.51.59.PM.mov

what we can do is use the utility isOneOnOneChat from your PR and create a new utility goBackToDetailsPage and use the same in notification page when user select a option or click the back icon.

@bernhardoj
Copy link
Contributor

Oh, you're right, my bad.

@robertKozik
Copy link
Contributor

isOneOnOneChat function seems more future-proof and robust for me. @ishpaul777 could you update tour original proposal with suggestions you form in later comment? After that I think the proposal will be ready to go 🚀

@ishpaul777
Copy link
Contributor

done! 🚀

PROPOSAL UPDATED

Copy link

melvin-bot bot commented Nov 7, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Nov 8, 2023
@adelekennedy
Copy link

@ishpaul777 proposal has been updated - @robertKozik will review

@melvin-bot melvin-bot bot removed the Overdue label Nov 8, 2023
@robertKozik
Copy link
Contributor

Thank you @ishpaul777! Your proposal is ready to go.

🎀 👀 🎀 C+ reviewed

@marcaaron
Copy link
Contributor

Ok so the navigation code does handle it. And we just provided the wrong "fallback". Got it. Thanks guys!

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 9, 2023
Copy link

melvin-bot bot commented Nov 9, 2023

📣 @ishpaul777 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

Copy link

melvin-bot bot commented Nov 9, 2023

📣 @dhanashree-sawant 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@marcaaron
Copy link
Contributor

@robertKozik @ishpaul777 I am going OOO this next week. If we need a new reviewer please ask in Slack! Otherwise I will look at this as soon as I return. 🤙

@melvin-bot melvin-bot bot added the Overdue label Nov 13, 2023
@robertKozik
Copy link
Contributor

@ishpaul777 how is the PR going?

@melvin-bot melvin-bot bot removed the Overdue label Nov 13, 2023
@ishpaul777
Copy link
Contributor

ishpaul777 commented Nov 13, 2023

Will raise a pr today! Sorry for delay

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Nov 13, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 23, 2023
@melvin-bot melvin-bot bot changed the title [$125] Deeplink access of user notify me page and back opens wrong page [HOLD for payment 2023-11-30] [$125] Deeplink access of user notify me page and back opens wrong page Nov 23, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 23, 2023
Copy link

melvin-bot bot commented Nov 23, 2023

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

Copy link

melvin-bot bot commented Nov 23, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.2-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-11-30. 🎊

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:

Copy link

melvin-bot bot commented Nov 23, 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:

  • [@robertKozik] The PR that introduced the bug has been identified. Link to the PR:
  • [@robertKozik] 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:
  • [@robertKozik] 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:
  • [@robertKozik] Determine if we should create a regression test for this bug.
  • [@robertKozik] 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.
  • [@adelekennedy] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Nov 30, 2023
@adelekennedy
Copy link

Payouts due:

Issue Reporter: $50 @dhanashree-sawant ( reporting bonus stopped on the 24th but this was reported on the 11th)
Contributor: $125 @ishpaul777

Upwork job is here.

@melvin-bot melvin-bot bot added the Overdue label Dec 4, 2023
@adelekennedy
Copy link

@robertKozik any steps needed for the BZ checklist or can we close?

@melvin-bot melvin-bot bot removed the Overdue label Dec 4, 2023
@robertKozik
Copy link
Contributor

Sorry for delay on my end @adelekennedy 🙇🏼 I don't think we need regression test here

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:

  • [@robertKozik] The PR that introduced the bug has been identified. Link to the PR: It's not a regression rather the not handled properly navigation case
  • [@robertKozik] 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
  • [@robertKozik] 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
  • [@robertKozik] Determine if we should create a regression test for this bug. I don't think it's needed here
  • [@robertKozik] 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. N/A

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 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

7 participants