Skip to content

[bug] Linear workflow statuses do not resync after rename or create #5216

Open

Description

@honki12345

Describe the bug

Linear workflow status definitions are synced into Superset during the Linear initial sync, but later Linear workflow changes are not reflected in Superset.

Observed behavior:

  • Linear status was renamed from In Progress to In impl.
  • A new Linear status In plan was added.
  • Linear now has Todo, In plan, In impl, In Review in the active workflow.
  • Superset still returns/shows the stale status set: Todo, In Progress, In Review; In plan is missing.

This is not only a desktop cache issue. task.statuses.list against the Superset API returns the stale status rows, so the source task_statuses data is not being refreshed after the Linear workflow changes.

Code pointers

  • apps/api/src/app/api/integrations/linear/jobs/initial-sync/route.ts:73 calls syncWorkflowStates() as part of performInitialSync().
  • apps/api/src/app/api/integrations/linear/jobs/initial-sync/syncWorkflowStates.ts:44-64 has the correct upsert logic for Linear workflow states by (organizationId, externalProvider, externalId).
  • apps/api/src/app/api/integrations/linear/webhook/route.ts:126-131 only processes Issue webhook payloads.
  • apps/api/src/app/api/integrations/linear/webhook/route.ts:169-176 explicitly skips issue updates whose state is not already in task_statuses and has a TODO to trigger workflow-state sync.

Expected behavior

Superset should refresh Linear-backed task_statuses when Linear workflow states are created, renamed, reordered, recolored, or when an issue webhook references a previously unseen Linear state.

At minimum, there should be a manual resync path that runs syncWorkflowStates() for the connected organization without requiring disconnect/reconnect.

Actual behavior

Superset keeps the stale status rows from initial sync. New statuses are unavailable in the task UI/API, renamed statuses keep their old names, and issue webhooks for unseen states can be skipped.

Suggested fix

  • Handle Linear workflow state webhook events if Linear sends them for the app.
  • On an Issue create/update webhook, if issue.state.id is missing from task_statuses, run syncWorkflowStates() for the connection and retry the status lookup before skipping.
  • Add a manual Linear resync endpoint/mutation for workflow states so users can repair stale status definitions without reconnecting the integration.

Notes

A local desktop cache hotfix can make the current machine display the correct names temporarily, but it does not repair the Superset API source of truth.

Activity

  1. added a commit that references this issue on Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions