migration: Rename 'populate_db' Client to 'ZulipDataImport'.

This commit:

* Creates a migration to rename any existing Client with
name="populate_db" to "ZulipDataImport".
* Updates populate_db.py to use ZulipDataImport for new
message creation

These changes should make code to identify imported messages
considerably more readable.

Fixes #33909.
This commit is contained in:
userAdityaa
2025-04-15 22:46:56 +05:30
committed by Tim Abbott
parent 9577dc9da7
commit 354a16fb0a
6 changed files with 50 additions and 10 deletions

View File

@@ -56,6 +56,8 @@ def create_internal_realm() -> None:
# just ensures these get low IDs in production, and in development
# avoids an extra database write for the first HTTP request in
# most tests.
#
# These are currently also present in DATA_IMPORT_CLIENTS.
get_client("Internal")
get_client("website")
get_client("ZulipMobile")