Go to file
Mateusz Mandera a36f906d1a presence: Add history_limit_days param to the API.
This param allows clients to specify how much presence history they want
to fetch. Previously, the server always returned 14 days of history.
With the recent migration of the presence API to the much more efficient
system relying on incremental fetches via the last_update_id param added
in #29999, we can now afford to provide much more history to clients
that request it - as all that historical data will only be fetched once.

There are three endpoints involved:
- `/register` - this is the main useful endpoint for this, used by API
clients to fetch initial data and register an events queue. Clients can
pass the `presence_history_limit_days` param here.
- `/users/me/presence` - this endpoint is currently used by clients to
update their presence status and fetch incremental data, making the new
functionality not particularly useful here. However, we still add the
new `history_limit_days` param here, in case in the future clients
transition to using this also for the initial presence data fetch.
- `/` - used when opening the webapp. Naturally, params aren't passed
here, so the server just assumes a value from
`settings.PRESENCE_HISTORY_LIMIT_DAYS_FOR_WEB_APP` and returns
information about this default value in page_params.
2024-09-10 13:15:35 -07:00
.github ci: Test upgrades from Noble and 9.0. 2024-07-26 14:25:49 -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 audit-log: Move subscription event types to AuditLogEventType enum. 2024-09-09 11:50:13 -07:00
api_docs presence: Add history_limit_days param to the API. 2024-09-10 13:15:35 -07:00
confirmation migrations: Squash most confirmation migrations. 2024-08-23 17:15:35 -07:00
corporate audit-log: Move remote server event types to AuditLogEventType enum. 2024-09-09 11:50:13 -07:00
docs docs: Remove `has_request_variables` and `REQ`. 2024-09-05 16:02:12 -07:00
help help: Add missing line to Navigation section of keyboard shortcuts. 2024-09-03 20:52:16 -07:00
help-beta help-beta: Add grouping to the left sidebar. 2024-08-30 11:42:02 -07:00
locale i18n: Update translation data from Transifex. 2024-07-25 12:34:41 -07:00
patches dependencies: Upgrade JavaScript dependencies. 2024-07-16 23:25:37 -07:00
pgroonga migrations: Import BaseDatabaseSchemaEditor from its canonical module. 2023-03-05 14:46:28 -08:00
puppet kandra: We do not serve staging from staging.zulip.com:80. 2024-09-09 15:17:19 -07:00
requirements requirements: Upgrade Python requirements. 2024-08-24 19:44:39 -07:00
scripts python: Simplify with str.removeprefix, str.removesuffix. 2024-09-03 12:30:16 -07:00
static portico: Update organized conversations image on /for/business. 2024-08-23 10:20:24 -07:00
stubs/taint endpoints: Remove the has_request_variables decorator. 2024-09-05 16:02:12 -07:00
templates custom_email: Add manage_preferences block to the plaintext version. 2024-09-10 09:36:56 -07:00
tools message_edit: Ask users to delete attachments after editing. 2024-09-06 11:40:51 -07:00
var/puppeteer
web presence: Add history_limit_days param to the API. 2024-09-10 13:15:35 -07:00
zerver presence: Add history_limit_days param to the API. 2024-09-10 13:15:35 -07:00
zilencer populate_db: Rename message_type to recipient_type. 2024-09-10 12:50:28 -07:00
zproject presence: Add history_limit_days param to the API. 2024-09-10 13:15:35 -07:00
.codecov.yml
.codespellignore codespell: Fix spelling mistakes caught by codespell. 2024-05-31 14:32:33 -07:00
.editorconfig editorconfig: Use [[shell]] section for shfmt options. 2024-02-22 16:36:16 -05:00
.eslintignore web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
.eslintrc.js help-beta: Create initial starlight project. 2024-08-02 18:18:01 -07:00
.gitattributes .gitattributes: Mark *.bmp, *.bson, *.mp3, *.pdf as binary. 2022-02-07 18:51:06 -08:00
.gitignore tsconfig: Enable composite. 2024-06-09 12:08:03 -07:00
.gitlint lint: Update line-length for commit message to 72 in gitlint. 2023-05-01 10:35:52 -07:00
.mailmap mailmap: Canonicalize name for Kunal Sharma. 2024-07-25 11:23:44 -07:00
.npmignore
.npmrc dependencies: Switch to pnpm. 2023-03-20 15:48:29 -07:00
.prettierignore marked: Fix type stub to declare marked as a CommonJS module. 2024-06-08 00:26:38 -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 linter: Add check for comma after "e.g." in md files. 2024-07-05 15:36:24 -07:00
CONTRIBUTING.md docs: Update CZO links from stream to channel in docs and comments. 2024-06-11 10:44:31 -07:00
Dockerfile-postgresql docs: Fix grammar errors found by mwic. 2023-10-09 13:24:09 -07:00
LICENSE
NOTICE
README.md docs: Update Black and isort references to Ruff. 2024-07-17 18:33:21 -07:00
SECURITY.md docs: Update .html links pointing to "Upgrade Zulip" or "Modify Zulip". 2023-08-11 16:49:32 -07:00
Vagrantfile Upgrade development environment to Ubuntu 22.04. 2024-04-01 13:27:39 -07:00
manage.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
package.json dependencies: Upgrade JavaScript dependencies. 2024-08-26 07:44:14 -07:00
pnpm-lock.yaml dependencies: Upgrade JavaScript dependencies. 2024-08-26 07:44:14 -07:00
pnpm-workspace.yaml help-beta: Create initial starlight project. 2024-08-02 18:18:01 -07:00
prettier.config.js
pyproject.toml restart-server: Wait until chain reload has completed. 2024-08-29 12:12:34 -07:00
stylelint.config.js dependencies: Upgrade JavaScript dependencies. 2023-07-21 15:58:42 -07:00
tsconfig.json help-beta: Create initial starlight project. 2024-08-02 18:18:01 -07:00
version.py presence: Add history_limit_days param to the API. 2024-09-10 13:15:35 -07: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: 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.