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

[$250] Clicking Take me there doesn't automatically sign user in to New Expensify #53034

Open
1 of 8 tasks
m-natarajan opened this issue Nov 23, 2024 · 27 comments
Open
1 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Nov 23, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.66-0
Reproducible in staging?: y
Reproducible in production?: y
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: @quinthar
Slack conversation (hyperlinked to channel name): Expensify-migrate

Action Performed:

  1. Submit a report to a workspace approver
  2. In OD open the report
  3. Click on "take me there"

Expected Result:

User logged in to ND with automatically signed in

Actual Result:

User is taken to login screen

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
Recording.791.mp4
Screen.Recording.2024-11-22.at.1.45.29.PM.mov

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021861182667807693472
  • Upwork Job ID: 1861182667807693472
  • Last Price Increase: 2024-12-09
Issue OwnerCurrent Issue Owner: @rojiphil
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 23, 2024
Copy link

melvin-bot bot commented Nov 23, 2024

Triggered auto assignment to @joekaufmanexpensify (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.

@joekaufmanexpensify
Copy link
Contributor

Reproduced.

@joekaufmanexpensify joekaufmanexpensify added the External Added to denote the issue can be worked on by a contributor label Nov 25, 2024
@melvin-bot melvin-bot bot changed the title Clicking Take me there doesn't automatically sign user in to New Expensify [$250] Clicking Take me there doesn't automatically sign user in to New Expensify Nov 25, 2024
Copy link

melvin-bot bot commented Nov 25, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 25, 2024
Copy link

melvin-bot bot commented Nov 25, 2024

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

@klajdipaja
Copy link
Contributor

This is an issue on the Old Dot.
Take me there button is pointing to the wrong environment url, it should point to staging.expensify.com instead it's point to new.expensify.com/expenses

@rojiphil
Copy link
Contributor

Reproduced.

@joekaufmanexpensify I too can reproduce this but only if the user has not already signed-in in ND. And if the user has already signed-in to ND, the ND will take us to the concerned report. So, this seems to be working as per the existing design.

Or are we talking about implementing a new feature here i.e. auto sign-in even when the user is not signed in?

@joekaufmanexpensify
Copy link
Contributor

@rojiphil Are you seeing somewhere that it's expected with the current design that we don't support the case of transferring you from OldDot > NewDot without explicitly signing into NewDot?

We definitely support the reverse now, so I'd think we'd support this too.

@rojiphil
Copy link
Contributor

@rojiphil Are you seeing somewhere that it's expected with the current design that we don't support the case of transferring you from OldDot > NewDot without explicitly signing into NewDot?

We definitely support the reverse now, so I'd think we'd support this too.

Yeah. I too agree that the transferring from OD > ND should be supported. I was just confirming if this was previously implemented or is a new feature.
Anyway I think we need BE support as OD must invoke the URL with auth credentials as params following which we can set the session data locally to automatically sign in.
Trigger the involvement of an internal engineer here to take this forward.
🎀👀🎀

Copy link

melvin-bot bot commented Nov 27, 2024

Triggered auto assignment to @marcaaron, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@rojiphil
Copy link
Contributor

But I think we need BE support as OD must invoke the URL with auth credentials as params following which we can set the session data locally to automatically signin.

@marcaaron But there are also references to signing in from OD here. So, curious to know if this feature is supposed to work with Hybrid Apps. What do you think?

@marcaaron
Copy link
Contributor

I was just confirming if this was previously implemented or is a new feature.

I think this is a good distinction. @joekaufmanexpensify maybe you can help figure out who has the most context around this new feature (or is it a bug)? It will be some time before I can look into this. I see it's labeled as a "HIGH" in the #migrate project (maybe someone has bandwidth).

@rojiphil
Copy link
Contributor

I was just confirming if this was previously implemented or is a new feature.

I think this is a good distinction. @joekaufmanexpensify maybe you can help figure out who has the most context around this new feature (or is it a bug)?

Thanks @marcaaron for your input.
Digging a little deeper, I think it may be as simple as launching the URL from OD with the auth credentials to solve this issue.
@joekaufmanexpensify Once we involve a context-aware BE engineer, I also think we will have a solid way forward to resolve the issue.

Copy link

melvin-bot bot commented Dec 2, 2024

📣 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 Dec 2, 2024
@joekaufmanexpensify
Copy link
Contributor

Sure, happy to figure out whether this is a bug or new feature. Discussing.

@joekaufmanexpensify
Copy link
Contributor

Sounds like the case got missed in the original implementation. We agreed in Slack we def want to handle this though.

@rojiphil
Copy link
Contributor

rojiphil commented Dec 2, 2024

Sounds like the case got missed in the original implementation. We agreed in Slack we def want to handle this though.

@joekaufmanexpensify Thanks for the clarification. Can we also involve an internal engineer who has context to this feature? More specifically, I am curious to know the feedback on the following comment:

Digging a little deeper, I think it may be as simple as launching the URL from OD with the auth credentials to solve this issue.

@melvin-bot melvin-bot bot removed the Overdue label Dec 2, 2024
@joekaufmanexpensify
Copy link
Contributor

It was @puneetlath who originally implemented it. He'll have more context if you have any questions. Though, as far as who will work on it, if Marc ends up having the bandwidth that is great, otherwise, I'll try and source another volunteer.

Just to confirm @rojiphil, this one will be an entirely backend issue?

@rojiphil
Copy link
Contributor

rojiphil commented Dec 4, 2024

Just to confirm @rojiphil, this one will be an entirely backend issue?

Looks like a BE issue to me but it depends on the feedback for the comment here.
@puneetlath What do you think?

Copy link

melvin-bot bot commented Dec 7, 2024

@rojiphil @marcaaron @joekaufmanexpensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Dec 7, 2024
Copy link

melvin-bot bot commented Dec 9, 2024

@rojiphil, @marcaaron, @joekaufmanexpensify Eep! 4 days overdue now. Issues have feelings too...

Copy link

melvin-bot bot commented Dec 9, 2024

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

@joekaufmanexpensify
Copy link
Contributor

Looks like a BE issue to me but it depends on the feedback for the comment #53034 (comment).

Got it. I think any engineer can probably confirm this. Curious if @marcaaron has thoughts on whether Roji's solution is on the right track? I also asked Puneet if he has time to take a quick look in Slack too.

@puneetlath
Copy link
Contributor

I agree, I think we need to have an internal engineer update the link to use the auth credentials.

@rojiphil
Copy link
Contributor

rojiphil commented Dec 9, 2024

Cool. Now that we have a consensus on the way ahead, I think we can make this issue as internal. Meanwhile, I am unassigning myself here but will stay subscribed if any FE work arises. Thanks.
cc @joekaufmanexpensify

@melvin-bot melvin-bot bot removed the Overdue label Dec 9, 2024
@rojiphil rojiphil removed their assignment Dec 9, 2024
@marcaaron
Copy link
Contributor

Yeah ok I see we did this: https://github.com/Expensify/Web-Expensify/pull/41884

So we just need to ... make that a short lived auth token link instead I think and this should work. Seems kind of half implemented.

@marcaaron
Copy link
Contributor

Ok repro'd and made a PR for this. Was a one line change 🥲

@joekaufmanexpensify
Copy link
Contributor

Sounds good. Thanks Marc!

@joekaufmanexpensify joekaufmanexpensify added Reviewing Has a PR in review Weekly KSv2 Internal Requires API changes or must be handled by Expensify staff and removed External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Daily KSv2 labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review Weekly KSv2
Projects
Status: First Cohort - HIGH
Development

No branches or pull requests

6 participants