Files
zulip/zerver/migrations/0503_realm_zulip_update_announcements_level.py
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

18 lines
415 B
Python

# Generated by Django 4.2.9 on 2024-02-13 06:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("zerver", "0502_merge_20240319_2236"),
]
operations = [
migrations.AddField(
model_name="realm",
name="zulip_update_announcements_level",
field=models.PositiveIntegerField(null=True),
),
]