Skip to content

[TRI-1357] bug: On an integration page, the Jobs table doesn't show jobs that only use the integration for the trigger #545

@matt-aitken

Description

@matt-aitken

Describe the bug

The integration page has a table with the jobs associated with the integration. In that table only jobs that use the integration inside the run function appear. If you are just using the integration for a trigger, it won't appear in the table.

To reproduce

  1. Create this Job
//you'll need to import the client from whichever file you created it in
import { Github, events } from "@trigger.dev/github";

const github = new Github({ id: "github" });

// Sends a Slack message to a channel if a GitHub issue is left open for 24 hours
client.defineJob({
  id: "github-new-issue-reminder",
  name: "GitHub: new issue reminder",
  version: "1.0.0",
  trigger: github.triggers.repo({
    event: events.onIssueOpened,
    owner: "<your-org-name>",
    repo: "<your-repo-name>",
  }),
  run: async (payload, io, ctx) => {    
  },
});
  1. Make sure this Job code is run, by importing into the jobs index file, or importing into the api/trigger route.
  2. Run the site and the CLI dev command
  3. Got to the integrations page and connect to the GitHub integration
  4. Now click through from that page to the GItHub integration page, note how the Table doesn't show any Jobs.
    CleanShot_2023-10-04_at_12 57 17

From SyncLinear.com | TRI-1357

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions