Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

trello: Ignore dueComplete field.

Steve Howell1a011b2adbaa
diff --git a/zerver/webhooks/trello/tests.py b/zerver/webhooks/trello/tests.py
index bababc84b94..985f3cdc867 100644
--- a/zerver/webhooks/trello/tests.py
+++ b/zerver/webhooks/trello/tests.py
@@ -137,6 +137,7 @@ class TrelloHookTests(WebhookTestCase):
def test_ignoring_card_updates(self) -> None:
fields = [
"cover",
+ "dueComplete",
"idAttachmentCover",
"pos",
]
diff --git a/zerver/webhooks/trello/view/card_actions.py b/zerver/webhooks/trello/view/card_actions.py
index ce8cd4b8dcd..750b9e312a3 100644
--- a/zerver/webhooks/trello/view/card_actions.py
+++ b/zerver/webhooks/trello/view/card_actions.py
@@ -102,10 +102,12 @@ def get_proper_action(payload: Mapping[str, Any], action_type: str) -> Optional[
return ARCHIVE
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 (pos), or when the cover changes (cover)
+ # We don't support events for when a card is moved up or down
+ # within a single list (pos), or when the cover changes (cover).
+ # We also don't know if "dueComplete" is just a new name for "due".
ignored_fields = [
"cover",
+ "dueComplete",
"idAttachmentCover",
"pos",
]