zulip/zerver
arpit551 c4b5d09283 analytics: Add LoggingCount for messages read stats.
Whenever we use API queries to mark messages as read we now increment
two new LoggingCount stats, messages_read::hour and
messages_read_interactions::hour.

We add an early return in do_increment_logging_stat function if there
are no changes (increment is 0), as an optimization to avoid
unnecessary database queries.

We also log messages_read_interactions::hour Logging stat
as the number of API queries to mark messages as read.

We don't include tests for the case where do_update_pointer is called
because do_update_pointer will most likely be removed from the
codebase in the near future.
2020-06-14 21:15:27 -07:00
..
data_import python: Guard against default value mutation with read-only types. 2020-06-13 15:31:27 -07:00
lib analytics: Add LoggingCount for messages read stats. 2020-06-14 21:15:27 -07:00
management email-mirror-postfix: Handle 8-bit messages correctly. 2020-06-14 20:24:06 -07:00
migrations python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
openapi tests: Use validate_against_openapi_schema in testing. 2020-06-14 15:05:52 -07:00
templatetags python: Replace None defaults with empty collections where appropriate. 2020-06-13 15:31:27 -07:00
tests test_unread: Change flag condition in get_mobile_push_notification_ids. 2020-06-14 20:43:04 -07:00
tornado python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
views email-mirror-postfix: Handle 8-bit messages correctly. 2020-06-14 20:24:06 -07:00
webhooks webhooks/circleci: Overhaul the CircleCI integration. 2020-06-14 13:14:55 -07:00
worker email-mirror-postfix: Handle 8-bit messages correctly. 2020-06-14 20:24:06 -07:00
__init__.py
apps.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
context_processors.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
decorator.py python: Fix misuse of Optional types for optional parameters. 2020-06-13 15:31:27 -07:00
filters.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
forms.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
logging_handlers.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
middleware.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
models.py types: Convert ProfileDataElement to Python 3.6 style and total. 2020-06-13 15:37:25 -07:00
signals.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00