Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
2.99k stars 2.5k forks source link

[Wave Collect][Xero] Fix disconnect Xero #41657

Closed mananjadhav closed 1 week ago

mananjadhav commented 1 week ago

Details

The disconnect Xero wasn't working as expected. Fixed the Xero disconnect. Also we don't need the failureData for the API call so removed it.

Fixed Issues

$ https://github.com/Expensify/App/issues/39726 PROPOSAL:

Tests

Pre-requisite:

  1. Go to workspace having Xero account that's already synced.
  2. Click on the three dots menu and ensure you can see Disconnect button.
  3. Click on the Disconnect button should show you confirmation modal.
  4. Click on Disconnect and you should see the Xero option shows the menu button.
  5. Go to your corresponding workspace, and ensure that policy_policyID?.connections is {}.

Offline tests

QA Steps

PR Author Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/3069065/216954cd-e3ca-4bbe-86a6-2cdcb3ddf20b
Android: mWeb Chrome https://github.com/Expensify/App/assets/3069065/05cacbd1-4724-4d57-8793-d6198e22928e
iOS: Native https://github.com/Expensify/App/assets/3069065/cd829028-a86b-4209-a5d4-dc31cbfec9af
iOS: mWeb Safari https://github.com/Expensify/App/assets/3069065/75c9d5b5-bce4-407b-965a-c2c37e22d7bc
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/3069065/c69d42ea-9819-4a08-b4ac-9d5e0c4b3efa
MacOS: Desktop https://github.com/Expensify/App/assets/3069065/453216d6-b169-4df6-be51-e522db60a6a4
melvin-bot[bot] commented 1 week ago

@fedirjh Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

lakchote commented 1 week ago

Reviewer Checklist

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/21549771/b5b9bcc8-b51d-4200-a29f-117182519223
MacOS: Desktop
OSBotify commented 1 week ago

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

OSBotify commented 1 week ago

🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.71-6 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅