We used old deprecated /advisory/ Errata endpoint to get data about advisory. This did not contain all the data we need - for example list of fixed CVEs in advisory. This PR switches to /api/v1/erratum, which is the latest supported Errata API.
The ErrataAdvisoryStateChangedEvent and ErrataAdvisoryRPMsSignedEvent both stored attributes of ErrataAdvisory to their own attributes and we later used them to create ErrataAdvisory again in some places. This was useless and hard to maintain. Instead, this PR creates ErrataBaseEvent which is common base class for Errata related events and it takes ErrataAdvisory directly. This makes adding new attributes to ErrataAdvisory easier, because we don't have to change the Events at all in this case.
The cve_list was added to ErrataAdvisory as new attribute.
/advisory/Errata endpoint to get data about advisory. This did not contain all the data we need - for example list of fixed CVEs in advisory. This PR switches to/api/v1/erratum, which is the latest supported Errata API.ErrataAdvisoryStateChangedEventandErrataAdvisoryRPMsSignedEventboth stored attributes ofErrataAdvisoryto their own attributes and we later used them to create ErrataAdvisory again in some places. This was useless and hard to maintain. Instead, this PR createsErrataBaseEventwhich is common base class for Errata related events and it takesErrataAdvisorydirectly. This makes adding new attributes toErrataAdvisoryeasier, because we don't have to change the Events at all in this case.cve_listwas added toErrataAdvisoryas new attribute.