mirror of https://github.com/zulip/zulip.git
dcae35196c
To estimate the annual recurring revenue for remote server and remote realm CustomerPlans, we prefetch the current license ledger as part of the CustomerPlan query. Also adds a select related to the remote realm audit log query so that we don't go to the database for the remote realm ID. With the test added in the previous commit, the query count for the remote activity view goes from 27 to 11, as we are no longer hitting the database multiple times for every current plan or for every remote realm with audit log data. Refactors get_customer_plan_renewal_amount so that a license ledger is always passed and make_end_of_cycle_updates_if_needed does not need to be called. |
||
---|---|---|
.. | ||
__init__.py | ||
test_activity_views.py | ||
test_counts.py | ||
test_fixtures.py | ||
test_stats_views.py | ||
test_support_views.py |