Skip to content

[TRI-1575] Creating an integration with OAuth then switching to API Key makes it stuck #731

@matt-aitken

Description

@matt-aitken

To reproduce

  1. Create a SendGrid integration with just an id (no API key) and reference it in a Job.
  2. Save and check it's appeared in the dashboard
  3. You'll notice that on the integrations page it says it requires action. Don't do anything there.
  4. Then go back to your code and add apiKey: process.env.SENDGRID_API_KEY to the definition.
  5. Save so it syncs

When you go back to the dashboard and refresh, the integration is in the errored state still and is stuck. When you click it you go to a blank panel.

Solution

We need to set the setupStatus to "COMPLETE" when upserting LOCAL or AUTH_RESOLVER integration types.

TRI-1575

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions