mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 09:39:24 +02:00
Implement several pipeline improvements
* Build docker image to run tests in * Collect backend coverage reports * Update dependencies
This commit is contained in:
parent
584471969e
commit
1ef252e29d
7 changed files with 41 additions and 25 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue