Skip to content

[FEATURE] Throw blocking configurationError for Linear webhooks #14876

@malexanderlim

Description

@malexanderlim

As of 12/5/2024, creating and managing webhooks requires admin permissions for Linear.

We need to update our triggers to ensure that users are notified earlier, before they attempt to deploy a webhook.

  1. Use an alert prop with error setting if user is not an admin - "You must have an admin role to create or manage webhooks. See the Linear documentation for details."
  2. Throw a blocking configurationError if a user attempts to configure a webhook, without having an admin role.
  3. Update both linear_app (API Key) and linear (OAuth)
  "query": `{ 
    user(id: "me") {
      admin
    }
  }`

The above graphQL query should return a boolean for the admin field which we can then use to throw the config error.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions