Go to file
Sahil Batra 1d3f5a0368 migrations: Fix migration to set default for can_mention_group.
This commit updates `0455_set_default_for_can_mention_group`
migration to be more efficient when running for a large number
of UserGroup objects.

Previously, we did a loop over all UserGroup objects and
then did a `bulk_update`. All this happened in a single
transaction and the transaction was being hold for
unacceptably long time for a server with large number
of user groups. Also the SQL generated by Django for
`bulk_update` took almost quadratic time to evaluate,
as the SQL had linear length "CASE" statement which was
being resolved for each row.

We instead now use ".update" so that we can write the migration
without using loop and update the objects in batches of size
1000 so that we do not hold a transaction for very long time.
This also helps in avoiding the inefficient SQL that was being
executed due to using `bulk_update`.

We also update the queries to exclude the groups that already
have `can_mention_group` set to a non-null value, as this will
help in migration completing quickly when running it more than
once.
2023-07-21 14:41:18 -07:00
.github github: Configure templates for filing issues. 2023-06-12 17:05:42 -07:00
.tx provision: Replace transifex-client with new transifex-cli. 2022-12-13 12:34:08 -08:00
.vscode vscode: Recommend remote development extension. 2021-11-03 16:03:46 -07:00
analytics python: Convert translated positional {} fields to {named} fields. 2023-07-18 15:19:07 -07:00
api_docs realm-settings: Make default_code_block_language empty string as default. 2023-07-21 18:54:02 +02:00
confirmation ruff: Fix DJ012 Order of model's inner classes, methods, and fields. 2023-04-12 17:32:38 -07:00
corporate python: Convert translated positional {} fields to {named} fields. 2023-07-18 15:19:07 -07:00
docs error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
help help: Remove "Invite users" relative help link. 2023-07-21 14:18:24 -07:00
locale i18n: Update translation data from Transifex. 2023-06-13 19:24:44 +00:00
pgroonga migrations: Import BaseDatabaseSchemaEditor from its canonical module. 2023-03-05 14:46:28 -08:00
puppet nginx: Remove gzip_disable "msie6". 2023-07-20 13:09:53 -07:00
requirements requirements: Upgrade Python requirements. 2023-07-19 16:14:59 -07:00
scripts error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
static help: Add a dedicated page on how to start a collaborative to-do list. 2023-07-17 11:17:24 -07:00
stubs/taint actions: Split out zerver.actions.message_send. 2022-04-14 17:14:34 -07:00
templates loading: Show error when spectator fails to register. 2023-07-17 10:49:45 -07:00
tools error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
var/puppeteer puppeteer_tests: Port to TypeScript. 2021-02-22 16:03:10 -08:00
web narrow: Add hotkey trigger for navigation to new topic/direct message. 2023-07-21 14:21:29 -07:00
zerver migrations: Fix migration to set default for can_mention_group. 2023-07-21 14:41:18 -07:00
zilencer populate_db: Pass realm as arg to select_related calls. 2023-07-20 10:44:39 -07:00
zproject error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
.codecov.yml
.codespellignore codespell: Fix newly found typos. 2023-04-03 22:39:21 -07:00
.editorconfig editorconfig: Restore indent_size = 2 for Markdown. 2021-08-20 23:14:37 -07:00
.eslintignore web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
.eslintrc.json eslint: Expand no-unused-vars check to all function parameters. 2023-07-02 16:16:38 -07:00
.gitattributes .gitattributes: Mark *.bmp, *.bson, *.mp3, *.pdf as binary. 2022-02-07 18:51:06 -08:00
.gitignore dependencies: Switch to pnpm. 2023-03-20 15:48:29 -07:00
.gitlint lint: Update line-length for commit message to 72 in gitlint. 2023-05-01 10:35:52 -07:00
.mailmap mailmap: Add entry for Brijmohan Siyag. 2023-05-31 08:48:02 -07:00
.npmignore
.npmrc dependencies: Switch to pnpm. 2023-03-20 15:48:29 -07:00
.prettierignore dependencies: Switch to pnpm. 2023-03-20 15:48:29 -07:00
.pyre_configuration
.readthedocs.yaml readthedocs: Add a configuration file. 2023-02-03 16:36:54 -08:00
.sonarcloud.properties
CODE_OF_CONDUCT.md docs: Rename "private message" -> "direct message". 2023-06-23 14:36:16 -07:00
CONTRIBUTING.md docs: Link to new guide on suggesting features and improvements. 2023-06-12 17:05:42 -07:00
Dockerfile-postgresql docker: Document the PostgreSQL Dockerfile build steps. 2022-04-26 18:00:00 -07:00
LICENSE license: Move copyright notice from LICENSE to NOTICE. 2021-02-05 09:28:12 -08:00
NOTICE docs: Bump copyright year. 2021-02-05 09:28:15 -08:00
README.md README: Update Ruff badge. 2023-03-21 11:46:20 -07:00
SECURITY.md SECURITY.md: Reorder and make clearer how to subscribe to announcements. 2022-01-07 15:56:26 -08:00
Vagrantfile vagrant: Add Fedora 36 support. 2022-09-08 16:12:59 -07:00
manage.py ruff: Fix SIM102 nested `if` statements. 2023-01-23 11:18:36 -08:00
package.json integrations: Add missing dependencies for screenshots. 2023-07-17 09:23:01 -07:00
pnpm-lock.yaml integrations: Add missing dependencies for screenshots. 2023-07-17 09:23:01 -07:00
prettier.config.js prettier: Disable embedded language formatting for Markdown. 2021-08-20 23:14:37 -07:00
pyproject.toml requirements: Upgrade Python requirements. 2023-07-19 16:14:59 -07:00
stylelint.config.js linter: Lint grid-area names for quotation marks. 2023-05-19 13:08:15 -07:00
tsconfig.json ts: Convert `emoji.js` to TypeScript. 2023-04-05 10:29:01 -07:00
version.py realm-settings: Make default_code_block_language empty string as default. 2023-07-21 18:54:02 +02:00

README.md

Zulip overview

Zulip is an open-source team collaboration tool with unique topic-based threading that combines the best of email and chat to make remote work productive and delightful. Fortune 500 companies, leading open source projects, and thousands of other organizations use Zulip every day. Zulip is the only modern team chat app that is designed for both live and asynchronous conversations.

Zulip is built by a distributed community of developers from all around the world, with 74+ people who have each contributed 100+ commits. With over 1000 contributors merging over 500 commits a month, Zulip is the largest and fastest growing open source team chat project.

Come find us on the development community chat!

GitHub Actions build status coverage status Mypy coverage Ruff code style: black code style: prettier GitHub release docs Zulip chat Twitter GitHub Sponsors

Getting started

You may also be interested in reading our blog, and following us on Twitter and LinkedIn.

Zulip is distributed under the Apache 2.0 license.