zulip/zerver
Vishnu Ks 553c50ebfb messages: Add history_limited flag to messages response.
The purpose of this commit is to pass information
to the frontend whether the message response recieved
has been limited due to plan restrictions or not.

To implement this, the backend for limiting the message
history had to be rewritten as we used to fetch
only the message rows whose id was greater than
first_visible_message_id. The filtered rows gives us
no information on whether the message history was
limited or not. So the backend was rewritten to not
do any restriction of limiting the message rows while
making the query. The limiting of rows is now done in
post_process_limited_query which will also return back
the value of history_limited flag.

Tweaked by tabbott to note a few cases where the results are
incorrect.  I'm merging this despite those, because those cases don't
impact the correctness of the feature, and it may have tricky
performance implications to fix correctly.
2018-10-26 17:41:07 -07:00
..
data_import minor: Change topic for imported hipchat messages. 2018-10-25 14:16:11 -05:00
lib billing: Set message_visibility_limit to 10000 for Limited. 2018-10-26 17:10:38 -07:00
management hipchat import: Add option to mask content. 2018-10-25 08:31:01 -05:00
migrations notifications: Fix push notifications with multiple realms. 2018-10-10 16:15:52 -07:00
openapi messages: Add history_limited flag to messages response. 2018-10-26 17:41:07 -07:00
templatetags api docs: Rename webhook-walkthrough to incoming-webhooks-walkthrough. 2018-10-16 21:07:00 -07:00
tests messages: Add history_limited flag to messages response. 2018-10-26 17:41:07 -07:00
tornado tornado: Rename async_request_{restart,stop} to mention timer. 2018-10-16 15:39:10 -07:00
views messages: Add history_limited flag to messages response. 2018-10-26 17:41:07 -07:00
webhooks webhooks/github: Handle empty 'requested_reviewers' key. 2018-10-23 14:41:24 -07:00
worker queue_processors: Rewrite MissedMessageWorker to always wait. 2018-10-24 14:43:36 -07:00
__init__.py
apps.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
context_processors.py portico: Change buttons on /plans to reflect current plan. 2018-09-05 13:44:35 -07:00
decorator.py mypy: Enforce strict-optional checking of decorator.py. 2018-10-25 07:24:47 -05: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 tornado: Rename async_request_{restart,stop} to mention timer. 2018-10-16 15:39:10 -07:00
models.py billing: Set message_visibility_limit to 10000 for Limited. 2018-10-26 17:10:38 -07:00
signals.py emails: Add detection for ChromeOS User-Agents. 2018-09-21 10:41:05 -07:00
static_header.txt