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

@@ -1017,6 +1017,7 @@ class SlackImporter(ZulipTestCase):
) = slack_workspace_to_realm(
"testdomain", realm_id, user_list, "test-realm", "./random_path", {}
)
test_zerver_realmdomain = [
{"realm": realm_id, "allow_subdomains": False, "domain": "testdomain", "id": realm_id}
]