zulip/analytics
Zixuan James Li ca0d2f6854 decorator: Refactor decorators expecting UserProfile with ParamSpec.
Decorators like `require_server_admin_api` turns user_profile into a
positional-only parameter, requiring the callers to stop passing it as a
keyword argument.

Functions like `get_chart_data` that gets decorated by both
`require_non_guest_user` and `has_request_variables` now have accurate
type annotation during type checking, with the first two parameters
turned into positional-only, and thus the change in
`analytics.views.stats`.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2022-08-06 16:19:48 -07:00
..
lib analytics: Add Composable type annotations. 2022-07-30 06:46:34 -07:00
management actions: Split out zerver.actions.create_realm. 2022-04-14 17:14:37 -07:00
migrations typing: Use BaseDatabaseSchemaEditor in place of DatabaseSchemaEditor. 2022-05-30 14:18:53 -07:00
tests support: Correctly show Unspecified org type at /activity/support. 2022-07-29 14:56:34 -07:00
views decorator: Refactor decorators expecting UserProfile with ParamSpec. 2022-08-06 16:19:48 -07:00
__init__.py
models.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
urls.py analytics: Use user IDs to get user activity summaries. 2021-10-13 15:30:27 -07:00