zulip/zerver
Eeshan Garg 5ef86b6d22 webhooks/stripe: Handle customer.discount events properly.
Recent changes merged in #10877 didn't handle these events
correctly. The linkified_id function breaks for the `discount`
object in the JSON payload. A cursory glance at Stripe's docs
tells me that since a discount is associated with a customer
or a coupon, it makes sense for a `discount` object to not have
an ID that can necessarily be linked to. So, we can just link
to the associated coupon instead.
2018-11-28 14:16:33 -08:00
..
data_import hipchat: Fix typo in logging output. 2018-11-26 16:44:31 -08:00
lib bugdown: Refactor get_possible_mentions_info and related functions. 2018-11-28 14:07:52 -08:00
management python: Remove now-unnecessary str_utils library. 2018-11-27 11:57:54 -08:00
migrations python: Fix unnecessary uses of str_utils library. 2018-11-27 11:44:09 -08:00
openapi api: Add GET /user_groups documentation. 2018-11-08 22:19:30 -08:00
templatetags api docs: Rename webhook-walkthrough to incoming-webhooks-walkthrough. 2018-10-16 21:07:00 -07:00
tests bugdown: Refactor get_possible_mentions_info and related functions. 2018-11-28 14:07:52 -08:00
tornado mypy: Fix missing type annotation in tornado code. 2018-11-20 19:08:14 -08:00
views settings: Improve error message when deactivating the last user. 2018-11-27 12:49:43 -08:00
webhooks webhooks/stripe: Handle customer.discount events properly. 2018-11-28 14:16:33 -08:00
worker python: Remove now-unnecessary str_utils library. 2018-11-27 11:57:54 -08:00
__init__.py
apps.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
context_processors.py hello: Add link and label for latest Zulip release. 2018-11-19 12:00:40 -08:00
decorator.py webhooks: Notify bot owner on invalid JSON. 2018-11-20 15:59:09 -08:00
filters.py error reports: Ensure we filter API keys from query strings. 2018-10-19 15:03:14 -07:00
forms.py password reset: Deduplicate code for reset URL generation. 2018-08-23 12:06:02 -07:00
logging_handlers.py bugdown: Improve exception handler for BugdownRenderingException. 2018-07-26 09:27:55 -07:00
middleware.py sessions: Resync session middleware from Django upstream. 2018-11-14 15:16:12 -08:00
models.py python: Remove unnecessary NonBinaryStr TypeVar. 2018-11-27 11:44:09 -08:00
signals.py emails: Add one-click unsubscribe link to new login emails. 2018-11-08 14:39:33 -08:00
static_header.txt