Multi-tenant support in Linear adapter#344
Conversation
|
@SamyPesse is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
|
hi @SamyPesse looking into this & just saw a couple of things & ty for the PR! getUserNameFromProfileUrl hardcoded to gitbook-x this needs updated or would break for others & startTyping missing return as in linear i believe they mention this somewhere on their docs user has 10 seconds to respond to a created even or the session is marked unresponsive also only one changeset file is needed major is fine! |
Oups, fixed.
fixed.
Yes, I'm wondering if the adapter should not directly post an ephemeral message "Thinking" or if we wait for the first call to |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Preserve PR's defaultClient naming and early-return pattern while adding apiUrl spread to all LinearClient instantiation sites.
* Support passing scopes as a config to the linear adapter * Changeset * Add multi-tenant support for Linear * Lint * Cleanup * Fix tests * Make organizationId mandatory * Fix * Fix fetch of comments * Start agent sessions support * Continue cleanup * Cleanup more * Simplify more * Fix * Fix fetchMessages for agent sessions * Improve streaming to linear * Fix agent raw messages * Fix tests * Lint * Simplify * Work * Remove debug logs and adapt tests * Fix organizationId * Cleanup types * Cleanup and comment * Fix webhook handling * Expose prompt context * First review pass * Rework the changeset * Improve getInstallation and expose refreshInstallation * Fix error on agent sessions coming from issue delegation --------- Co-authored-by: <dancer@users.noreply.github.com>
Summary
The Linear adapter was simply not working in its current state: Not supporting multiple workspaces when using
clientId/clientSecret; but more importantly throwing an error when trying to fetch the comments.This PR makes the Linear adapter fully work, in multi-tenant and single-tenant modes.
clientId/clientSecretclientId/clientSecret(multi-tenant mode)actor=appmode where Linear will trigger an agent session (https://linear.app/developers/agent-interaction) instead of a normal commentTest plan
Tests have been updated; but I also tested a build in my application.