zulip/zerver
Tim Abbott 8e5b0351b3 alert_words: Fix case-sensitivity of alert words.
Previously, alert words were case-insensitive in practice, by which I
mean the Markdown logic had always been case-insensitive; but the data
model was not, so you could create "duplicate" alert words with the
same words in different cases.  We fix this inconsistency by making
the database model case-insensitive.

I'd prefer to be using the Postgres `citext` extension to have
postgres take care of case-insensitive logic for us, but that requires
installing a postgres extension as root on the postgres server, which
is a pain and perhaps not worth the effort to arrange given that we
can achieve our goals with transaction when adding alert words.

We take advantage of the migrate_alert_words migration we're already
doing for all users to effect this transition.

Fixes #12563.
2020-04-27 11:31:51 -07:00
..
data_import python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
lib alert_words: Fix case-sensitivity of alert words. 2020-04-27 11:31:51 -07:00
management pointer: Remove unread debugging management commands. 2020-04-26 22:37:41 -07:00
migrations alert_words: Fix case-sensitivity of alert words. 2020-04-27 11:31:51 -07:00
openapi pypi: Upgrade zulip/zulip-bots dependencies to version 0.7.0. 2020-04-23 17:41:47 -07:00
templatetags python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
tests alert_words: Fix case-sensitivity of alert words. 2020-04-27 11:31:51 -07:00
tornado python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
views home: Don't use pointer to compute furthest_read_time. 2020-04-26 22:41:52 -07:00
webhooks webhooks: Use Gitlab project web_url over repo homepage. 2020-04-24 17:50:47 -07:00
worker python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
__init__.py
apps.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
context_processors.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
decorator.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
filters.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
forms.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
logging_handlers.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
middleware.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
models.py alert_words: Fix case-sensitivity of alert words. 2020-04-27 11:31:51 -07:00
signals.py emails: Translate from_name of account security emails. 2020-02-18 17:45:33 -08:00