Skip to content

[HOLD for payment 2024-11-13] [$250] Clicking " Please sign in again" does nothing in "Session Expired" page #51546

Closed

Description

@m-natarajan

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:
Reproducible in staging?: needs reproduction
Reproducible in production?: needs reproduction
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @carlosmiceli
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1729880182560339

Action Performed:

  1. Have a " Your Session has Expired" screen
  2. Click on "Please sign in again"

Expected Result:

User is taken to sign in screen

Actual Result:

Nothing happens

Workaround:

unknown

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Screenshot 2024-10-25 at 3 14 04 PM

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021851043610237148822
  • Upwork Job ID: 1851043610237148822
  • Last Price Increase: 2024-10-28
  • Automatic offers:
    • aimane-chnaif | Reviewer | 104689909
    • NJ-2020 | Contributor | 104689912
Issue OwnerCurrent Issue Owner: @CortneyOfstad

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 28, 2024
  2. MelvinBot commented on Oct 28, 2024

    @MelvinBot
    Contributor

    This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

  3. melvin-bot commented on Oct 28, 2024

    @melvin-bot

    Triggered auto assignment to @CortneyOfstad (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  4. NJ-2020 commented on Oct 28, 2024

    @NJ-2020
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Clicking " Please sign in again" does nothing in "Session Expired" page

    What is the root cause of that problem?

    We should use goBack() function instead of navigate(), same like what we do here:

    Navigation.isNavigationReady().then(() => {
    // We must call goBack() to remove the /transition route from history
    Navigation.goBack();
    Navigation.navigate(ROUTES.HOME);

    because it will remove the transition route from the history
    if (!NativeModules.HybridAppModule) {
    Session.clearSignInData();
    Navigation.navigate();
    return;
    }

    Because if we use navigate, the transition history still persists which keeps showing the session expired page
    <RootStack.Screen
    name={NAVIGATORS.BOTTOM_TAB_NAVIGATOR}
    options={defaultScreenOptions}
    component={NativeModules.HybridAppModule ? SessionExpiredPage : SignInPage}
    />
    <RootStack.Screen
    name={SCREENS.TRANSITION_BETWEEN_APPS}
    options={defaultScreenOptions}
    component={LogInWithShortLivedAuthTokenPage}
    />

    What changes do you think we should make in order to solve the problem?

    We should use goBack instead of navigate

    onPress={() => {
        if (!NativeModules.HybridAppModule) {
            Session.clearSignInData();
            Navigation.goBack();
            return;
        }
        NativeModules.HybridAppModule.closeReactNativeApp(true, false);
    }}

    OR

    onPress={() => {
        if (!NativeModules.HybridAppModule) {
            Session.clearSignInData();
            Navigation.isNavigationReady().then(() => {
                Navigation.goBack();
    
                // OPTIONAL: Navigation.navigate(ROUTES.SIGN_IN_MODAL);
            });
            return;
        }
        NativeModules.HybridAppModule.closeReactNativeApp(true, false);
    }}

    Result

    Screen.Recording.2024-10-27.at.18.29.28.mov

    What alternative solutions did you explore? (Optional)

  5. added
    retest-weeklyApply this label if you want this issue tested on a Weekly basis by Applause
    and removed
    retest-weeklyApply this label if you want this issue tested on a Weekly basis by Applause
    on Oct 28, 2024
  6. CortneyOfstad commented on Oct 28, 2024

    @CortneyOfstad
    Contributor

    I am not able to recreate, so going to see if the C+ can recreate based on the SO linked above

  7. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Oct 28, 2024
  8. melvin-bot commented on Oct 28, 2024

    @melvin-bot
  9. changed the title [-]Clicking " Please sign in again" does nothing in "Session Expired" page[/-] [+][$250] Clicking " Please sign in again" does nothing in "Session Expired" page[/+] on Oct 28, 2024
  10. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Oct 28, 2024
  11. 23 remaining items

  12. NJ-2020 commented on Nov 4, 2024

    @NJ-2020
    Contributor

    Ohh, thank you @aimane-chnaif

  13. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed on Nov 6, 2024
  14. changed the title [-][$250] Clicking " Please sign in again" does nothing in "Session Expired" page[/-] [+][HOLD for payment 2024-11-13] [$250] Clicking " Please sign in again" does nothing in "Session Expired" page[/+] on Nov 6, 2024
  15. melvin-bot commented on Nov 6, 2024

    @melvin-bot

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

  16. melvin-bot commented on Nov 6, 2024

    @melvin-bot

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

    For reference, here are some details about the assignees on this issue:

  17. melvin-bot commented on Nov 6, 2024

    @melvin-bot

    @aimane-chnaif @CortneyOfstad The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  18. aimane-chnaif commented on Nov 6, 2024

    @aimane-chnaif
    Contributor

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production
    • 2b. Reported on staging (deploy blocker)
    • 2c. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
    • [Contributor] 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: https://github.com/Expensify/App/pull/48007/files#r1830232657

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    Regression Test Proposal Template
    • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

      Link to issue:

    Regression Test Proposal

    Precondition:

    N/A

    Test:

    1. Sign in on OD
    2. Click support > Concierge
    3. Copy the transition link and close the tab
    4. Logout on ND
    5. Wait for 1 or 2 minute to wait until the auth token expired
    6. Paste the transition link on ND
    7. Click the "Please sign in again".
    8. Verify that it got redirected to the sign in page

    Do we agree 👍 or 👎

  19. CortneyOfstad commented on Nov 12, 2024

    @CortneyOfstad
    Contributor

    Thank you @aimane-chnaif!

  20. CortneyOfstad commented on Nov 13, 2024

    @CortneyOfstad
    Contributor

    Payment Summary

    @NJ-2020 — paid $250 via Upwork
    @aimane-chnaif — paid $250 via Upwork

    Regression Test

    https://github.com/Expensify/Expensify/issues/443985

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorNeeds ReproductionReproducible steps needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions