flexiodata / flexio-web-app

Flex.io Web App
https://www.flex.io/app
MIT License
5 stars 2 forks source link

BUG: Onboarding: connection parent_eid doesn't populate for OAuth connections created in onboarding #585

Open alwillia opened 4 years ago

alwillia commented 4 years ago

When connecting to an OAuth-type connection in the onboarding, the parent_eid of the newly created OAuth connection needs to be set to the eid of the function mount. Parent_eids for OAuth-type connections created from New->Mount and New->Integration in the function area are set properly.

  1. Go to the onboarding (https://www.flex.io/app/start)
  2. Select the producthunt integration and complete the onboarding
  3. Go to the connections area and examine the API call that returns the connection info
  4. Look for the producthunt connection; parent_eid is empty
dzwillia commented 4 years ago

Let's look at this together. They're showing up for me.

Do this:

  1. Press F12 to open your dev tools; go to the network tab and clear the list
  2. Go to the onboarding (https://www.flex.io/app/start)
  3. Select the Shopify integration and complete the onboarding
  4. If you look at the network calls, you'll see that things happen in this order: i. the Shopify OAuth connection is created (without a parent_eid) ii. the function mount connection is created iii. the Shopify OAuth connection is updated with the parent_eid of the function mount

When I went to the connections area and refreshed, it showed up with the proper parent_eid.