Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
trello: Ignore changes to card "cover".
Steve Howell1bbf5491a778
diff --git a/zerver/webhooks/trello/tests.py b/zerver/webhooks/trello/tests.pyindex 75f6aadca23..bababc84b94 100644--- a/zerver/webhooks/trello/tests.py+++ b/zerver/webhooks/trello/tests.py@@ -136,6 +136,8 @@ class TrelloHookTests(WebhookTestCase):def test_ignoring_card_updates(self) -> None:fields = [+ "cover",+ "idAttachmentCover","pos",]for field in fields:diff --git a/zerver/webhooks/trello/view/card_actions.py b/zerver/webhooks/trello/view/card_actions.pyindex f59b404cdbd..ce8cd4b8dcd 100644--- a/zerver/webhooks/trello/view/card_actions.py+++ b/zerver/webhooks/trello/view/card_actions.py@@ -103,9 +103,15 @@ def get_proper_action(payload: Mapping[str, Any], action_type: str) -> Optional[if old_data.get('closed') and card_data.get('closed') is False:return REOPEN# we don't support events for when a card is moved up or down- # within a single list- if old_data.get('pos'):- return None+ # within a single list (pos), or when the cover changes (cover)+ ignored_fields = [+ "cover",+ "idAttachmentCover",+ "pos",+ ]+ for field in ignored_fields:+ if old_data.get(field):+ return Noneraise UnexpectedWebhookEventType("Trello", action_type)return action_type