Skip to content

db: add method to list Bitbucket Projects permissions sync jobs

Warren Gifford requested to merge ao/list-bb-worker-jobs into main

Created by: sashaostrikov

This is a first part of finishing off the https://github.com/sourcegraph/sourcegraph/issues/36453 which adds a more generic way of getting jobs from the database:

  • We get full entities as is instead of a trimmed versions which final structure is TBD
  • We probably miss some required options
  • ProjectKey and Status are not slices, but single values -- will be updated in next commit
  • Only the test checking the query itself is written, more real test with fetching data from DB will be added as soon as output (endpoint response) structure is finalised

Part of https://github.com/sourcegraph/sourcegraph/issues/36453

Test plan

Unit test added, all existing tests should pass

Merge request reports

Loading