This PR mainly changed the published, deprecated and release_category kwargs from various method to Lightblue class properties. The reason to do this is that otherwise, we would need to pass them down the method calls in almost every method in Lightblue to get them to image.resolve_content_sets() method. Using the attributes, the resolve_content_sets method can use them from Lightblue class instance.
The way how Lightblue class works by default remains the same, but it is now possible to write code like this to get the list of unpublished images to rebuild:
This PR mainly changed the
published,deprecatedandrelease_categorykwargs from various method to Lightblue class properties. The reason to do this is that otherwise, we would need to pass them down the method calls in almost every method in Lightblue to get them to image.resolve_content_sets() method. Using the attributes, the resolve_content_sets method can use them from Lightblue class instance.The way how Lightblue class works by default remains the same, but it is now possible to write code like this to get the list of unpublished images to rebuild:
See https://pagure.io/freshmaker/pull-request/195 for alternative way.