zulip/zerver/models
Prakhar Pratyush 118a7e8d9d zulip_updates: Send zulip updates based on zulip_update_*_level.
This commit adds a management command that will run regularly
as a cron job to send zulip updates to realms based on their
current and latest zulip_update_announcements_level.

For realms with:
* level = None: Send a group DM to admins notifying them about
this new feature & suggestion to set the stream accordingly.

* level = 0:
  * If stream is still not configured, wait for a week
    before setting their level to latest level. They will
    miss updates until their configure the stream.
  * If stream is configured, send updates.

* level > 0: Send one message/update per level & increase
  the level by 1 till the latest level.

Fixes #28604.
2024-03-20 11:48:06 -07:00
..
__init__.py models: Extract zerver.models.lookups. 2023-12-16 22:08:44 -08:00
alert_words.py models: Extract zerver.models.alert_words. 2023-12-16 22:08:44 -08:00
bots.py models: Extract zerver.models.bots. 2023-12-16 22:08:44 -08:00
clients.py models: Extract zerver.models.clients. 2023-12-16 22:08:44 -08:00
constants.py
custom_profile_fields.py settings: Reorder custom profile field types. 2024-01-21 12:51:53 -08:00
drafts.py models: Extract zerver.models.drafts. 2023-12-16 22:08:44 -08:00
groups.py models: Extract zerver.models.groups. 2023-12-16 22:08:44 -08:00
linkifiers.py models: Extract zerver.models.linkifiers. 2023-12-16 22:08:44 -08:00
lookups.py models: Extract zerver.models.lookups. 2023-12-16 22:08:44 -08:00
messages.py ruff: Fix DJ012 Order of model's inner classes, methods, and fields. 2024-01-29 10:41:54 -08:00
muted_users.py models: Extract zerver.models.muted_users. 2023-12-16 22:08:44 -08:00
onboarding_steps.py models: Extract zerver.models.onboarding_steps. 2023-12-16 22:08:44 -08:00
prereg_users.py models: Extract zerver.models.prereg_users. 2023-12-16 22:08:44 -08:00
presence.py models: Extract zerver.models.presence. 2023-12-16 22:08:44 -08:00
push_notifications.py models: Extract zerver.models.push_notifications. 2023-12-16 22:08:44 -08:00
realm_audit_logs.py zilencer: Flip realm_locally_deleted when realm re-appears during sync. 2024-02-24 08:52:11 -08:00
realm_emoji.py models: Extract zerver.models.realm_emoji. 2023-12-16 22:08:44 -08:00
realm_playgrounds.py models: Extract zerver.models.realm_playgrounds. 2023-12-16 22:08:44 -08:00
realms.py zulip_updates: Send zulip updates based on zulip_update_*_level. 2024-03-20 11:48:06 -07:00
recipients.py models: Extract zerver.models.recipients. 2023-12-16 22:08:44 -08:00
scheduled_jobs.py models: Extract zerver.models.scheduled_jobs. 2023-12-16 22:08:44 -08:00
streams.py models: Extract zerver.models.streams. 2023-12-16 22:08:44 -08:00
user_activity.py models: Extract zerver.models.user_activity. 2023-12-16 22:08:44 -08:00
user_topics.py models: Extract zerver.models.user_topics. 2023-12-16 22:08:44 -08:00
users.py ruff: Fix RUF021 Parenthesize when chaining `and` and `or` together. 2024-03-01 09:30:04 -08:00