Added fedora messaging to listen on AMQP cbs/koji notifications for issue #114 (auto close issues)
Refactor project structure to make it run in MQTT and AMQP modes in separated instances (MQTT and AMQP directories).
Now issues will contain a new tag: “package_name.centos_version”. This is to facilitate the filtering of a package for a specific centos version when auto closing an issue. E.g., if we have issues for same package but different centos versions.
pagure.io API doesn’t have a way to filter issues that contains only both specified tags, for example, if I want to get an issue for dnf and c8s version it will be returned all issues that have either dnf tag or c8s tag and not only issues that contains both tags.
Changed c8s for c9s as the base image in the Dockerfile
Project constants are in a separated file (constants.py)
This PR also solves issue #124: Changed SQLite functions and encapsulated into classes to avoid passing db connection on each function/method as parameter. Also implemented sqslite3.Row for better readability, now accessing values with name = package['name'] instead of name = package[1]
Note: Setup and MQTT logic keeps the same, just moved to different directory.
Changes:
Added fedora messaging to listen on AMQP cbs/koji notifications for issue #114 (auto close issues)
Refactor project structure to make it run in MQTT and AMQP modes in separated instances (MQTT and AMQP directories).
Now issues will contain a new tag: “package_name.centos_version”. This is to facilitate the filtering of a package for a specific centos version when auto closing an issue. E.g., if we have issues for same package but different centos versions.
pagure.io API doesn’t have a way to filter issues that contains only both specified tags, for example, if I want to get an issue for dnf and c8s version it will be returned all issues that have either dnf tag or c8s tag and not only issues that contains both tags.
Changed c8s for c9s as the base image in the Dockerfile
Project constants are in a separated file (constants.py)
This PR also solves issue #124: Changed SQLite functions and encapsulated into classes to avoid passing db connection on each function/method as parameter. Also implemented sqslite3.Row for better readability, now accessing values with name = package['name'] instead of name = package[1]
Note: Setup and MQTT logic keeps the same, just moved to different directory.