Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tools: Skip checks in recursive management calls.
Tim Abbott9d74abee0ba0
diff --git a/zerver/lib/test_fixtures.py b/zerver/lib/test_fixtures.pyindex 81ec42de147..19ce654fba7 100644--- a/zerver/lib/test_fixtures.py+++ b/zerver/lib/test_fixtures.py@@ -103,6 +103,7 @@ class Database:"DJANGO_SETTINGS_MODULE=" + self.settings,"ZULIP_DB_NAME=" + self.database_name,"./manage.py",+ "--skip-checks",]run([*manage_py, "migrate", "--no-input"])@@ -309,6 +310,7 @@ def get_migration_status(**options: Any) -> str:no_color=options.get("no_color", False),settings=options.get("settings", os.environ["DJANGO_SETTINGS_MODULE"]),stdout=out,+ skip_checks=options.get("skip_checks", True),traceback=options.get("traceback", True),verbosity=verbosity,)diff --git a/zerver/management/commands/import.py b/zerver/management/commands/import.pyindex 1a31fab57d1..12bc3ddf4d7 100644--- a/zerver/management/commands/import.py+++ b/zerver/management/commands/import.py@@ -58,7 +58,7 @@ import a database dump from one or more JSON files."""parser.formatter_class = argparse.RawTextHelpFormatterdef do_destroy_and_rebuild_database(self, db_name: str) -> None:- call_command("flush", verbosity=0, interactive=False)+ call_command("flush", verbosity=0, skip_checks=True, interactive=False)subprocess.check_call([os.path.join(settings.DEPLOY_ROOT, "scripts/setup/flush-memcached")])@overridediff --git a/zilencer/management/commands/populate_db.py b/zilencer/management/commands/populate_db.pyindex 5c4b05afe2b..e7de46f6dd8 100644--- a/zilencer/management/commands/populate_db.py+++ b/zilencer/management/commands/populate_db.py@@ -1116,7 +1116,7 @@ class Command(ZulipBaseCommand):if not options["test_suite"]:# We populate the analytics database here for# development purpose only- call_command("populate_analytics_db")+ call_command("populate_analytics_db", skip_checks=True)threads = options["threads"]jobs: list[tuple[int, list[list[int]], dict[str, Any], int]] = []