Zulip 服务器和 Web 应用程序。开源团队聊天可帮助团队保持高效和专注。
Go to file
Shubham Padia bf6dc4472b models: Add is_private flag to UserMessage and add index for it.
The is_private flag is intended to be set if recipient type is
'private'(1) or 'huddle'(3), otherwise i.e if it is 'stream'(2), it
should be unset.

This commit adds a database index for the is_private flag (which we'll
need to use it). That index is used to reset the flag if it was
already set. The already set flags were due to a previous removal of
is_me_message flag for which the values were not cleared out.

For now, the is_private flag is always 0 since the really hard part of
this migration is clearing the unspecified previous state; future
commits will fully implement it actually doing something.

History: Migration rewritten significantly by tabbott to ensure it
runs in only 3 minutes on chat.zulip.org.  A key detail in making that
work was to ensure that we use the new index for the queries to find
rows to update (which currently requires the `order_by` and `limit`
clauses).
2018-07-30 15:43:55 -07:00
.circleci circleci: Add support for Ubuntu Bionic. 2018-06-01 18:02:50 -07:00
.github github: Suggest GIFs too in PR template. 2018-02-16 09:59:22 -08:00
.tx tx config: Update slug for mobile. 2018-06-17 17:32:25 -07:00
analytics models: Delete unused Subscription.notifications field. 2018-07-26 15:54:57 -07:00
confirmation confirmation: Removed unused send_email import. 2018-06-16 05:27:04 -07:00
corporate corporate: Remove unused imports (F401). 2017-11-07 16:37:04 -08:00
docs models: Add is_private flag to UserMessage and add index for it. 2018-07-30 15:43:55 -07:00
frontend_tests settings_user: Add modal for user info and roles form. 2018-07-30 13:48:36 -07:00
pgroonga pgroonga: Upgrade to PGroonga 2 API. 2018-05-31 13:00:34 -07:00
puppet api: Stop using API keys for Django->Tornado authentication. 2018-07-30 12:28:31 -07:00
requirements thumbor: Fix missing virtualenv-clone package in dependencies. 2018-07-30 11:55:16 -07:00
scripts models: Add is_private flag to UserMessage and add index for it. 2018-07-30 15:43:55 -07:00
static search pills: Backspace should remove a search pill with typeahead open. 2018-07-30 14:33:06 -07:00
stubs billing: Add mypy stubs to stripe imports. 2018-07-26 16:31:32 -07:00
templates register: Update Zulip production server installation link. 2018-07-30 11:43:09 -07:00
tools Extract search_util.js module. 2018-07-30 11:25:32 -07:00
zerver models: Add is_private flag to UserMessage and add index for it. 2018-07-30 15:43:55 -07:00
zilencer billing: Add mypy stubs to stripe imports. 2018-07-26 16:31:32 -07:00
zproject api: Stop using API keys for Django->Tornado authentication. 2018-07-30 12:28:31 -07:00
zthumbor docs: Add some basic subsystem documentation for thumbnailing. 2018-07-30 13:20:54 -07:00
.codecov.yml Try to avoid codecov spam. 2017-12-29 07:23:26 -05:00
.editorconfig Editing (minor): Add .pyi to .editorconfig. 2017-12-18 07:35:58 -05:00
.eslintignore zulip_ops: Delete the long-disused stats1.zulip.net config and its dependencies. 2017-08-15 17:30:31 -07:00
.eslintrc.json Extract search_util.js module. 2018-07-30 11:25:32 -07:00
.gitattributes gitattributes: Treat .ogg files as binary. 2018-04-27 09:59:19 -07:00
.gitignore mypy: Add basic support for invoking dmypy to run-mypy. 2018-05-21 22:41:08 -07:00
.gitlint lint: Allow revert commit messages in gitlint. 2018-02-13 09:21:01 -08:00
.isort.cfg tornado: Fix logging of tornado activity level. 2018-04-17 15:59:01 -07:00
.npmignore Add proxy notes to new README.dev.md troubleshooting section. 2016-03-29 21:54:05 -07:00
.stylelintrc stylelint: Add more stylistic rules to lock down CSS a bit tighter. 2018-07-27 00:15:58 -07:00
.travis.yml travis: Disable most suites in favor of CircleCI! 2018-01-31 11:10:03 -08:00
CODE_OF_CONDUCT.md repository: Add CODE_OF_CONDUCT.md. 2017-06-14 18:43:08 -07:00
CONTRIBUTING.md documentation: Migrate all CZO stream links to new stream URL style 2018-05-24 15:15:34 -07:00
Dockerfile-dev Move Dockerfile to Dockerfile-dev. 2017-09-25 12:32:33 -07:00
Dockerfile-postgresql docker: Add PGroonga support to Postgresql Dockerfile. 2018-05-23 11:53:32 -07:00
LICENSE docs: Move license declaration from README.md to LICENSE. 2017-11-14 16:04:23 -08:00
manage.py manage.py: Catch issue with users running manage.py as the wrong user. 2018-07-30 12:34:48 -07:00
mypy.ini billing: Add mypy stubs to stripe imports. 2018-07-26 16:31:32 -07:00
package.json yarn: Remove duplicate clipboard dependency. 2018-07-27 00:12:05 -07:00
README.md README: Document support for Debian and Bionic. 2018-07-01 01:47:03 -07:00
Vagrantfile Vagrantfile: Fix typo in spelling of problems. 2018-06-01 11:58:09 -07:00
version.py version: Bump PROVISION_VERSION for py packages upgrade. 2018-07-30 10:09:19 -07:00
yarn.lock yarn: Remove duplicate clipboard dependency. 2018-07-27 00:12:05 -07:00

Zulip overview

Zulip is a powerful, open source group chat application that combines the immediacy of real-time chat with the productivity benefits of threaded conversations. Zulip is used by open source projects, Fortune 500 companies, large standards bodies, and others who need a real-time chat system that allows users to easily process hundreds or thousands of messages a day. With over 300 contributors merging over 500 commits a month, Zulip is also the largest and fastest growing open source group chat project.

CircleCI Build Status Travis Build Status Coverage Status Mypy coverage docs Zulip chat Twitter

Getting started

Click on the appropriate link below. If nothing seems to apply, join us on the Zulip community server and tell us what's up!

You might be interested in:

You may also be interested in reading our blog or following us on twitter. Zulip is distributed under the Apache 2.0 license.