Implement several pipeline improvements

* Build docker image to run tests in
* Collect backend coverage reports
* Update dependencies
This commit is contained in:
Georg Krause 2021-05-28 09:39:27 +00:00
parent 584471969e
commit 1ef252e29d
7 changed files with 41 additions and 25 deletions

View file

@ -461,7 +461,9 @@ class PreserveSomeDataCollector(Collector):
def related_objects(self, related, *args, **kwargs):
qs = super().related_objects(related, *args, **kwargs)
if related.name == "outbox_activities":
# We can only exclude the actions if these fields are available, most likely its a
# model.Activity than
if hasattr(related, "type") and hasattr(related, "creation_date"):
# exclude the delete activity can be broadcasted properly
qs = qs.exclude(type="Delete", creation_date__gte=self.creation_date)