zulip/zerver
Alex Vandiver d0c5389d60 gitlab: Fix event_name -> object_kind defaulting.
94457732c1 changed this from:

```py
event_name = payload.get("event_name", payload.get("object_kind")).tame(check_string)
```

...to:
```py
event_name = payload.get("event_name", payload["object_kind"]).tame(check_string)
```

Which causes a failure when `event_name` exists but `object_kind` does
not, since the default is evaluated first.

Switch to an `if` statement to clarify the fallbacks better.
2022-06-02 23:23:19 -07:00
..
actions do_delete_old_unclaimed_attachments: Consider ArchivedAttachment rows. 2022-06-02 17:32:23 -07:00
data_import typing: Apply trivial fixes to adjust edge cases in typing. 2022-05-30 12:03:51 -07:00
integration_fixtures/nagios tests: Add a test for fixtures for non-webhook integrations. 2021-04-28 08:16:51 -07:00
lib home: Get default_language info from cookie for spectator. 2022-06-01 17:08:00 -07:00
management do_delete_old_unclaimed_attachments: Consider ArchivedAttachment rows. 2022-06-02 17:32:23 -07:00
migrations typing: Add appropriate none-checks for LOCAL_UPLOADS_DIR. 2022-05-31 09:43:55 -07:00
openapi api-docs: Add changelog entry for user/stream ID narrow options. 2022-06-01 15:11:26 -07:00
tests do_delete_old_unclaimed_attachments: Consider ArchivedAttachment rows. 2022-06-02 17:32:23 -07:00
tornado response: Replace response.asynchronous attribute with new class. 2022-05-27 14:27:34 -07:00
views typing: Add assertions for authentication. 2022-05-31 09:43:55 -07:00
webhooks gitlab: Fix event_name -> object_kind defaulting. 2022-06-02 23:23:19 -07:00
worker message_send: Remove unnecessary user_ids argument. 2022-05-04 14:45:18 -07:00
__init__.py django: Upgrade Zulip to Django 3.2 LTS. 2021-05-03 08:36:22 -07:00
apps.py caching: Make sender type optional for flush_cache. 2021-07-26 14:48:07 -07:00
context_processors.py typing: Apply trivial fixes to adjust edge cases in typing. 2022-05-30 12:03:51 -07:00
decorator.py puppet: Remove typo'd cron job. 2022-05-16 14:57:21 -07:00
filters.py typing: Fix function signatures. 2021-08-20 05:54:19 -07:00
forms.py typing: Add assertions for authentication. 2022-05-31 09:43:55 -07:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py response: Replace response.asynchronous attribute with new class. 2022-05-27 14:27:34 -07:00
models.py get_old_unclaimed_attachments: Add docstring explaining the logic. 2022-06-02 17:32:23 -07:00
signals.py django: Use HttpRequest.headers. 2022-05-13 20:42:20 -07:00