zulip/zerver/lib
Wyatt Hoodes 9c68a97472 import/export: Use separate analytics.json for analytics data.
This helps keep the realm.json small and easy to process; previously,
almost the entire size of that file was the analytics data.

We implement this by refactoring the analytics Config objects into a
separate subroutine that writes to a separate file, plus the
corresponding import code.

Manual testing was performed by exporting the 'analytics' realm, and
importing back to a newly created 'test' realm.  The 'test' realm was
then exported and the json files were inspected.  The data appeared
consistent with no abnormalities.

Fixes: #11220.
2019-02-04 10:59:24 -08:00
..
bugdown bugdown: Remove unused imports. 2019-02-02 17:25:22 -08:00
url_preview preview: Hash cache keys for preview urls. 2018-10-14 09:28:57 -07:00
webhooks zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
__init__.py
actions.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
addressee.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
alert_words.py
api_test_helpers.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
attachments.py
avatar.py python: Clean up various if False blocks. 2018-12-17 11:14:47 -08:00
avatar_hash.py
bot_config.py
bot_lib.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
bot_storage.py python: Stop importing Length from the wrong file. 2019-02-02 17:09:10 -08:00
bulk_create.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
cache.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
cache_helpers.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
camo.py camo: Add endpoint to handle camo requests. 2019-01-04 10:27:04 -08:00
ccache.py
context_managers.py
create_user.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
db.py python: Remove unnecessary NonBinaryStr TypeVar. 2018-11-27 11:44:09 -08:00
debug.py mypy: Set local_partial_types = True. 2018-05-21 22:41:00 -07:00
dev_ldap_directory.py dev_ldap: Add custom profile data. 2019-01-29 16:01:30 -08:00
digest.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
domains.py
email_mirror.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
emoji.py emoji: Move `EMOTICON_CONVERSIONS` mapping to build_emoji infra. 2018-07-23 12:35:08 -07:00
error_notify.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
events.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
exceptions.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
export.py import/export: Use separate analytics.json for analytics data. 2019-02-04 10:59:24 -08:00
feedback.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
fix_unreads.py
generate_test_data.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
hotspots.py signup: Copy hotspots when importing settings. 2018-06-16 08:50:49 -07:00
html_diff.py
i18n.py i18n: Pass translation data in page_params. 2018-05-30 08:57:26 -07:00
import_realm.py import/export: Use separate analytics.json for analytics data. 2019-02-04 10:59:24 -08:00
initial_password.py
integrations.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
json_encoder_for_html.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
logging_util.py
management.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
mdiff.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
mention.py markdown: Add _@**Name** syntax for silent mentions. 2019-01-16 16:01:06 -08:00
message.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
migrate.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
mobile_auth_otp.py mobile: Make otp_encrypt_api_key accept API keys. 2018-08-08 16:45:40 -07:00
name_restrictions.py signup: Add opayq.com to disposable domain whitelist. 2018-08-13 10:56:47 -07:00
narrow.py topic -> subject: Extract get_topic_from_message_info(). 2018-11-14 23:24:06 -08:00
notifications.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
onboarding.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
openapi.py Minimize race conditions for reading zulip.yaml. 2018-09-12 11:07:20 -07:00
outgoing_webhook.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
parallel.py
profile.py
push_notifications.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
queue.py requirements: Upgrade pika from 0.12.0 to 0.13.0. 2019-01-31 10:04:07 -08:00
rate_limiter.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
realm_icon.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
realm_logo.py settings: Add support for customizing the top-left logo. 2018-12-18 12:44:52 -08:00
redis_utils.py
remote_server.py zilencer: Add client-size rate limiting of analytics upload. 2019-02-02 11:51:22 -08:00
request.py requirements: Upgrade pyflakes. 2019-02-01 07:26:13 -08:00
request.pyi extract_recipients: Support user IDs. 2019-01-08 19:08:49 -03:30
response.py
rest.py report: Allow error-reporting views from unauthed users. 2018-12-16 15:44:48 -08:00
retention.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
send_email.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
sessions.py sessions: Suppress coverage error until we can debug. 2018-12-01 10:08:57 -08:00
soft_deactivation.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
sqlalchemy_utils.py mypy: Set local_partial_types = True. 2018-05-21 22:41:00 -07:00
statistics.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
storage.py python: Remove now-unnecessary str_utils library. 2018-11-27 11:57:54 -08:00
stream_recipient.py
stream_subscription.py
stream_topic.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
streams.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
subdomains.py Enable pycodestyle W605 (invalid escape sequence). 2018-07-03 16:54:46 +02:00
test_classes.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
test_data.source.txt
test_fixtures.py test_fixtures: Fix bug with run_db_migrations for test platform. 2018-07-09 14:17:53 +05:30
test_helpers.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
test_runner.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
tex.py Enable pycodestyle W605 (invalid escape sequence). 2018-07-03 16:54:46 +02:00
thumbnail.py camo: Add endpoint to handle camo requests. 2019-01-04 10:27:04 -08:00
timeout.py
timestamp.py
timezone.py
topic.py topics: Fix messages_for_topic to use iexact matching. 2019-01-24 17:55:15 -08:00
topic_mutes.py Extract topic_match_sa() helper. 2018-11-07 10:03:53 -08:00
type_debug.py
types.py extract_recipients: Support user IDs. 2019-01-08 19:08:49 -03:30
unminify.py unminify: Clean up unnecessary repetition of webpack:/// URLs. 2018-08-03 15:56:40 -07:00
upload.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
url_encoding.py topic -> subject: Extract get_topic_from_message_info(). 2018-11-14 23:24:06 -08:00
user_agent.py user_agent: Use re.X to make the regex a little more readable. 2018-12-05 14:58:13 -08:00
user_groups.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
user_status.py user status: Add "status_text" support in the backend. 2019-01-24 09:46:35 -08:00
users.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
utils.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
validator.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
video_calls.py zoom: Fix handling of 201 status codes from zoom API. 2019-01-16 15:37:06 -08:00
widget.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00
zcommand.py zcommand: Fix broken switch mode message. 2018-08-08 11:29:49 -07:00
zephyr.py python: Remove now-unnecessary str_utils library. 2018-11-27 11:57:54 -08:00