zulip/zerver/lib
Greg Price a34c01780f errors: Compute deployment metadata on the right deployment.
When I added this "Deployed code" feature to the error reporting,
I apparently hadn't worked out enough of how this code works to
realize that `notify_server_error` may be in a different process,
at a different time and potentially even on a different machine
from the actual error being reported.

Given that architecture, all the data about the error must be computed
in `AdminNotifyHandler`, before sending the report through the queue,
or else it risks being wrong.  The job of `notify_server_error` and
friends is only to format the data and send it off.  So, move the
implementation of this feature in order to do that.

(@showell added some "nocoverage" directives here for code that
is hard to test (exceptions being thrown, deployment files not
existing) and that was originally part of a file that didn't
require 100% coverage)
2017-12-22 11:52:13 -05:00
..
bugdown logging: Rename AdminZulipHandler to AdminNotifyHandler. 2017-12-22 11:52:13 -05:00
url_preview zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
webhooks zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
__init__.py
actions.py settings: Show local time instead of UTC in invitations tab. 2017-12-20 07:08:46 -05:00
addressee.py mypy: Account for Optional variables in addressee.py. 2017-12-23 01:22:22 +09:00
alert_words.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
attachments.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
avatar.py mypy: Use Python 3 type syntax in zerver/lib/avatar.py. 2017-12-18 11:32:52 -05:00
avatar_hash.py zerver/lib: Use Python 3 syntax for typing for several files. 2017-11-28 17:02:24 -08:00
bot_config.py zerver/lib: Use Python 3 syntax for typing for several files. 2017-11-28 17:02:24 -08:00
bot_lib.py embedded bots: Consistently use 'storage' instead of 'state.' 2017-11-27 21:05:34 -08:00
bot_storage.py zerver/lib: Use python 3 syntax for typing. 2017-11-28 17:15:14 -08:00
bulk_create.py bulk_create: Fix buggy logic for generating recipients_by_email. 2017-11-21 21:07:32 -08:00
cache.py zerver/lib: Use python 3 syntax for typing. 2017-11-28 17:15:14 -08:00
cache_helpers.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
camo.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
ccache.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
context_managers.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
create_user.py mypy: Amend tos_version parameter of create_user_profile to be Optional. 2017-12-23 01:22:22 +09:00
db.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
debug.py debug: Add facility to dump tracemalloc snapshots. 2017-11-28 15:52:07 -08:00
digest.py models: Add ScheduledEmail.realm. 2017-12-19 17:46:36 -08:00
domains.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
email_mirror.py requirements: Upgrade mypy to 0.560. 2017-12-20 18:09:36 -08:00
emoji.py mypy: Adjust 2 emoji.py functions to allow for strict-optional. 2017-12-23 01:22:22 +09:00
error_notify.py errors: Compute deployment metadata on the right deployment. 2017-12-22 11:52:13 -05:00
events.py mypy: Use Python 3 type syntax in `zerver/lib/events.py`. 2017-12-22 08:17:00 -05:00
exceptions.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
export.py settings: Add setting for SYSTEM_BOT_REALM. 2017-11-27 14:46:07 -08:00
feedback.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
fix_unreads.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
generate_test_data.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
hotspots.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
html_diff.py mypy: Remove type: ignores that are unnecessary with new mypy. 2017-11-25 10:06:28 -08:00
i18n.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
initial_password.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
integrations.py integrations: Rename HUBOT_INTEGRATIONS_LEGACY. 2017-12-22 10:38:47 -05:00
json_encoder_for_html.py mypy: Fix annotations for json_encoder_for_html. 2017-11-22 01:32:46 -08:00
logging_util.py errors: Show what logger and source code the message comes from. 2017-12-22 11:52:13 -05:00
management.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
mdiff.py testing: Add nice diffs to markdown python tests. 2017-12-18 19:03:38 -05:00
mention.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
message.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
migrate.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
mobile_auth_otp.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
name_restrictions.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
narrow.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
notifications.py missed-message-worker: Send email through email_senders. 2017-12-20 19:36:27 -08:00
onboarding.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
outgoing_webhook.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
parallel.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
profile.py mypy: Improve typing to profile.py & remove FuncT from decorator.py. 2017-10-29 17:10:13 -07:00
push_notifications.py push notifs: Simplify content-truncation code slightly. 2017-12-18 15:32:56 -08:00
queue.py rabbitmq: Do a better job of retrying failed connections. 2017-11-29 16:56:29 -08:00
rate_limiter.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
realm_icon.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
redis_utils.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
request.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
request.pyi mypy: Improve typing of request.pyi (REQ). 2017-11-04 20:26:03 -07:00
response.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
rest.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
retention.py zerver/lib: Use python 3 syntax for typing. 2017-11-28 17:15:14 -08:00
send_email.py models: Add ScheduledEmail.realm. 2017-12-19 17:46:36 -08:00
sessions.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
soft_deactivation.py logging: Reduce `create_logger` to new `log_to_file`. 2017-12-12 17:17:08 -08:00
sqlalchemy_utils.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
statistics.py zerver/lib: Use Python 3 syntax for typing for several files. 2017-11-28 17:02:24 -08:00
str_utils.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:45:52 -08:00
stream_recipient.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
stream_subscription.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
stream_topic.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
streams.py subs: Fix clearing unread counts when leaving private streams. 2017-11-29 14:40:08 -08:00
subdomains.py Convert EmailAuthBackend and LDAPAuthBackend to accept a realm. 2017-11-21 18:23:50 -08:00
test_classes.py tests: Refactor the method for encoding credentials. 2017-12-18 09:24:09 -05:00
test_data.source.txt test_data.source.txt: Replace postmodernism generator text with a play. 2017-08-23 13:00:39 -07:00
test_fixtures.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
test_helpers.py invitations: Remove custom_body. 2017-12-11 19:23:54 -08:00
test_runner.py mypy: Use more specific type for _replacement_destroy_test_db. 2017-12-08 19:00:18 -08:00
tex.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
timeout.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
timestamp.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
timezone.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
topic_mutes.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
type_debug.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
unminify.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
upload.py upload: Fix typo in animated GIF error message. 2017-11-24 09:08:38 -08:00
user_agent.py zerver/lib: Use python 3 syntax for typing. 2017-11-18 16:09:04 -08:00
user_groups.py user_groups: Fix reporting of empty user groups. 2017-11-29 16:13:55 -08:00
users.py bulk_get_users: Edit the cache keys to make them more unique. 2017-11-27 14:41:31 -08:00
utils.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
validator.py check_short_string: Verify string before checking length. 2017-11-10 16:37:43 -08:00