zulip/zilencer/management/commands
Mateusz Mandera 0799ec1a43 populate_db: Limit user_profiles for private messages to zulip realm.
These are used for creating huddles and private messages (and some
UserPresence objects). It'd be really weird, and potentially create some
Messages that break our assumptions, for this to end up involving users
in multiple realms.
I believe currently this hasn't been happening, because when
this line runs, there are only users in "zulip" realm and system bots in
"zulipinternal" - but the query has been excluding bots already.

Still, this query should be explicit about grabbing users from a single
realm. This will also be helpful for the work adding the denormalized
Message.realm field - so that the realm of Message objects that get
manually created in generate_and_send_messages can be simply set to
"zulip" with confidence that it's correct.
2022-09-23 09:59:10 -07:00
..
__init__.py
add_mock_conversation.py actions: Split out zerver.actions.reactions. 2022-04-14 17:14:35 -07:00
calculate_first_visible_message_id.py management: Fix typing for management scripts. 2021-08-20 05:54:18 -07:00
compare_messages.py render_messages: Use JSON Lines format. 2021-05-20 13:12:16 -07:00
downgrade_small_realms_behind_on_payments.py billing: Downgrade small realms that are behind on payments. 2021-07-02 13:19:12 -07:00
invoice_plans.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
mark_all_messages_unread.py cache: Use getattr to access _cache. 2022-07-20 22:00:05 -07:00
populate_db.py populate_db: Limit user_profiles for private messages to zulip realm. 2022-09-23 09:59:10 -07:00
print_initial_password.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
profile_request.py profile_request: Use modern Django middleware API. 2022-01-13 21:03:22 -08:00
queue_rate.py queue_rate: Output to CSV, and run multiple prefetch values. 2021-11-16 11:48:50 -08:00
render_messages.py render_messages: Tighten function signatures with generic QuerySet. 2022-07-07 11:27:43 -07:00
rundjangoserver.py rundjangoserver: Use style_func for output filtering. 2022-08-03 17:48:21 -07:00
switch_realm_from_standard_to_plus_plan.py billing: Add command for switching plans from Standard to Plus. 2021-10-15 17:27:50 -07:00
sync_api_key.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00