#475 Filter out images based on the content_set
Merged by gnaponie. Opened by gnaponie.
gnaponie/freshmaker FACTORY-5434  into  master

Download 475.patch

Freshmaker queries Lightblue to get images containing affected RPMs
installed from a particular content_set. At the same time Freshmaker
asks to Lightblue also all the images with enabled the
auto_rebuild_tags tag (when not enabled the rebuilds of images in
this repository are disabled).
This gets done only because the Lightblue query will be easier and
cleaner this way. But because of that some images returned by that
query will not have the correct content_sets, for this reason we
need to filter out images based on the content_sets.

Signed-off-by: Giulia Naponiello gnaponie@redhat.com

@jkaluza @lucarval @qwan @cqi PTAL

It would be a little bit more efficient to only convert content_sets once in this method.

I bet if something goes wrong, we'd want to know the content sets for the image, and the content sets we care about. Can we log those?

Maybe because its content_sets are not related to requested content_sets?

rebased onto 74b02a903ce94960d878d78f13d5f7f6b0ce2742

Rebased. @jkaluza @lucarval could you please check again?

:thumbsup:

Commit 6947e2eb fixes this pull-request

Pull-Request has been merged by gnaponie

Pull-Request has been merged by gnaponie

Metadata