mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +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:
 | 
			
		||||
        fields = [
 | 
			
		||||
            "cover",
 | 
			
		||||
            "dueComplete",
 | 
			
		||||
            "idAttachmentCover",
 | 
			
		||||
            "pos",
 | 
			
		||||
        ]
 | 
			
		||||
 
 | 
			
		||||
@@ -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",
 | 
			
		||||
        ]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user