mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 12:54:58 +00:00
trello: Ignore dueComplete field.
It's possible that this is a new name for the "due"
field, but it's not totally clear.
In the exception we saw in the field:
payload['action']['data']['old']['dueComplete'] = False
payload['action']['data']['card']['dueComplete'] = True
This commit is contained in:
@@ -137,6 +137,7 @@ class TrelloHookTests(WebhookTestCase):
|
|||||||
def test_ignoring_card_updates(self) -> None:
|
def test_ignoring_card_updates(self) -> None:
|
||||||
fields = [
|
fields = [
|
||||||
"cover",
|
"cover",
|
||||||
|
"dueComplete",
|
||||||
"idAttachmentCover",
|
"idAttachmentCover",
|
||||||
"pos",
|
"pos",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -102,10 +102,12 @@ def get_proper_action(payload: Mapping[str, Any], action_type: str) -> Optional[
|
|||||||
return ARCHIVE
|
return ARCHIVE
|
||||||
if old_data.get('closed') and card_data.get('closed') is False:
|
if old_data.get('closed') and card_data.get('closed') is False:
|
||||||
return REOPEN
|
return REOPEN
|
||||||
# we don't support events for when a card is moved up or down
|
# 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)
|
# 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 = [
|
ignored_fields = [
|
||||||
"cover",
|
"cover",
|
||||||
|
"dueComplete",
|
||||||
"idAttachmentCover",
|
"idAttachmentCover",
|
||||||
"pos",
|
"pos",
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user