zulip/zerver/tornado
Pragati Agrawal bd9b74436c org settings: Enable message_retention_days in org settings UI.
Since production testing of `message_retention_days` is finished, we can
enable this feature in the organization settings page. We already had this
setting in frontend but it was bit rotten and not rendered in templates.

Here we replaced our past text-input based setting with a
dropdown-with-text-input setting approach which is more consistent with our
existing UI.

Along with frontend changes, we also incorporated a backend change to
handle making retention period forever. This change introduces a new
convertor `to_positive_or_allowed_int` which only allows positive integers
and an allowed value for settings like `message_retention_days` which can
be a positive integer or has the value `Realm.RETAIN_MESSAGE_FOREVER` when
we change the setting to retain message forever.

This change made `to_not_negative_int_or_none` redundant so removed it as
well.

Fixes: #14854
2020-05-08 14:09:31 -07:00
..
__init__.py
application.py dependencies: Remove WebSockets system for sending messages. 2020-01-14 22:34:00 -08:00
autoreload.py mypy: Remove unnecessary type: ignore annotations. 2020-04-22 10:46:33 -07:00
descriptors.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
event_queue.py logging: Pass format arguments to logging. 2020-05-02 10:18:02 -07:00
exceptions.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
handlers.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
ioloop_logging.py logging: Pass format arguments to logging. 2020-05-02 10:18:02 -07:00
sharding.py dependencies: Remove WebSockets system for sending messages. 2020-01-14 22:34:00 -08:00
views.py org settings: Enable message_retention_days in org settings UI. 2020-05-08 14:09:31 -07:00