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] Xero-LHN reports not displayed if login using xero connected a/c #45065

Closed
1 of 6 tasks
izarutskaya opened this issue Jul 9, 2024 · 17 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 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

Comments

@izarutskaya
Copy link

izarutskaya commented Jul 9, 2024

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: 9.0.5
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Go to https://staging.new.expensify.com/home
    in mweb
  2. Tap profile - workspaces- worspace
  3. Tap more features
  4. Enable accounting
  5. Connect xerox integration
  6. Sync account using 3 dots
  7. Login with same account on android

Expected Result:

User must be able to see LHN reports, if user login using xero integration connected account

Actual Result:

User sees woo-hoo all caught up message & not LHN reports, if user login using xero integration connected account

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

Bug6535977_1720450241082.vop.1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01151d0e3495d1890c
  • Upwork Job ID: 1812859931445199078
  • Last Price Increase: 2024-07-22
Issue OwnerCurrent Issue Owner: @jayeshmangwani
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 9, 2024
Copy link

melvin-bot bot commented Jul 9, 2024

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

@izarutskaya
Copy link
Author

We think this issue might be related to the #vip-vsb

@melvin-bot melvin-bot bot added the Overdue label Jul 11, 2024
Copy link

melvin-bot bot commented Jul 12, 2024

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

@muttmuure muttmuure added the External Added to denote the issue can be worked on by a contributor label Jul 15, 2024
@melvin-bot melvin-bot bot changed the title Xero-LHN reports not displayed if login using xero connected a/c [$250] Xero-LHN reports not displayed if login using xero connected a/c Jul 15, 2024
Copy link

melvin-bot bot commented Jul 15, 2024

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

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

melvin-bot bot commented Jul 15, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Jul 15, 2024
@tienifr
Copy link
Contributor

tienifr commented Jul 15, 2024

Proposal

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

User sees woo-hoo all caught up message & not LHN reports, if user login using xero integration connected account

What is the root cause of that problem?

When the user with Xero connection logs in again, Your organization requires two factor authentication error message will be returned by the back-end for OpenApp, ReconnectApp, so the data is unable to load.

We don't have handling for this case yet in the app.

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

We need to add handling for case that the user is required to enable 2FA, we should:

  • If any API endpoint returns error that matches Your organization requires two factor authentication (we can check error message, error code or another field), or if account.needsTwoFactorAuthSetup is true, redirect the user to settings/security/two-factor-auth so they can enable the 2FA.
  • In the 2FA page, disable/hide the back button so the user cannot do anything unless set up the 2FA (check account.needsTwoFactorAuthSetup to know this)
  • In that 2FA page, show a noticeable error/warning that says they need to enable the 2FA because the organization requires so
  • If the user deep links to any page and 2FA is currently required for them, also do like step 1 and navigate them to the force-2FA page
  • After the 2FA is set up, log the user out so they can sign in again with 2FA enabled.

What alternative solutions did you explore? (Optional)

In step 5, alternatively we can trigger calling OpenApp/ReconnectApp again so the data is fetched properly, and still navigate the user to the Congratulations on 2FA set up page

@jayeshmangwani
Copy link
Contributor

We need to add handling for case that the user is required to enable 2FA, we should:

@tienifr We have a similar issue #43015 here, that will force workspace admins to enable 2FA before they can use the connection.

It looks like this issue will be solved after this PR #44059 is merged. Correct me if I am wrong @c3024 @rushatgabhane.

@rushatgabhane
Copy link
Member

@jayeshmangwani yep that's right

@rushatgabhane
Copy link
Member

we should close this issue

@jayeshmangwani
Copy link
Contributor

Thanks for the confirming Rushat, @muttmuure We can close this issue in favor of #43015

Copy link

melvin-bot bot commented Jul 19, 2024

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

@melvin-bot melvin-bot bot added the Overdue label Jul 19, 2024
@jayeshmangwani
Copy link
Contributor

Not overdue. Issue can be closed, but Matt is OOO until Tuesday.

@melvin-bot melvin-bot bot removed the Overdue label Jul 20, 2024
Copy link

melvin-bot bot commented Jul 22, 2024

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

Copy link

melvin-bot bot commented Jul 23, 2024

@jayeshmangwani @muttmuure 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 Jul 23, 2024
Copy link

melvin-bot bot commented Jul 23, 2024

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

@jayeshmangwani
Copy link
Contributor

@muttmuure We can close this issue. Please check this comment whenever you get a moment.

@melvin-bot melvin-bot bot removed the Overdue label Jul 24, 2024
@muttmuure
Copy link
Contributor

Ah yes, let's close. Thanks for the bump!

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. Daily KSv2 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
Projects
Archived in project
Development

No branches or pull requests

5 participants