#240 Use latest Errata API to get advisories and pass ErrataAdvisory directly to Errata related events.
Merged by jkaluza. Opened by jkaluza.
jkaluza/freshmaker rhba-cves  into  master

Download 240.patch
  • 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.

Looks good for me.

Commit cc010cd7 fixes this pull-request

Pull-Request has been merged by jkaluza

Pull-Request has been merged by jkaluza

Metadata