#2229 frontend: pagure-events: don't submit builds for disabled projects
Merged 2 years ago by praiskup. Opened 2 years ago by praiskup.
Unknown source fix-2228  into  main

@@ -67,6 +67,8 @@

      @classmethod

      def get_candidates_for_rebuild(cls, clone_url):

          rows = models.Package.query \

+             .join(models.Copr) \

+             .filter(models.Copr.deleted.is_(False)) \

              .filter(models.Package.source_type.in_(SUPPORTED_SOURCE_TYPES)) \

              .filter(models.Package.webhook_rebuild) \

              .filter(models.Package.source_json.ilike('%' + clone_url + '%'))

rebased onto 3b24430

2 years ago

Build succeeded.

(hot-fixed in production, this was breaking the event listener too much)

Commit 3b24430 fixes this pull-request

Pull-Request has been merged by praiskup

2 years ago
Metadata