mirror of https://github.com/zulip/zulip.git
02252c255a
We have two different digest schemes to make sure we keep the database up to date. There is the migration digest, which is NOT in the scope of this commit, and which already used the mechanism we use for other tools. Here we are talking about the digest for important files like `populate_db.py`. Now our scheme is more consistent with how we check file changes for other tools (as well as the aformentioned migration files). And we only write one hash file, instead of seven. And we only write the file when things have actually changed. And we are explicit about side effects. Finally, we include a couple new bot settings in the digest: INTERNAL_BOTS DISABLED_REALM_INTERNAL_BOTS NOTE: This will require a one-time transition, where we rebuild both databases (dev/test). It takes a little over two minutes for me, so it's not super painful. I bump the provision version here, even though you don't technically need it (since the relevant tools are actually using the digest files to determine if they need to rebuild the database). I figure it's just good to explicitly make this commit trigger a provision, and the user will then see the one-time migration of the hash files with a little bit less of a surprise. And I do a major bump, not a minor bump, because when we go in the reverse direction, the old code will have to rebuild the database due to the legacy hash files not being around, so, again, I just prefer it to be explicit. |
||
---|---|---|
.. | ||
data_import | ||
lib | ||
management | ||
migrations | ||
openapi | ||
templatetags | ||
tests | ||
tornado | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
models.py | ||
signals.py |