zulip/zerver
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
..
fixtures node tests: Compare markdown using semantic equivalence. 2017-12-18 19:03:38 -05:00
lib errors: Compute deployment metadata on the right deployment. 2017-12-22 11:52:13 -05:00
management logging: Reduce `create_logger` to new `log_to_file`. 2017-12-12 17:17:08 -08:00
migrations models: Add ScheduledEmail.realm. 2017-12-19 17:46:36 -08:00
templatetags markdown processor: Exclude some files from macro substitution. 2017-11-22 10:29:07 -08:00
tests errors: Make Zulip and email paths more parallel. 2017-12-22 11:52:13 -05:00
tornado mypy: Use Python 3 type syntax in zerver/tornado/websocket_client.py. 2017-12-09 16:50:12 -08:00
views mypy: Use Python 3 type syntax in zerver/views/typing.py. 2017-12-18 11:32:52 -05:00
webhooks Add Dropbox webhook integration. 2017-12-22 10:36:21 -05:00
worker email-worker: Create EmailSendingWorker. 2017-12-20 19:36:27 -08:00
__init__.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
apps.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
context_processors.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
decorator.py logging: Reduce `create_logger` to new `log_to_file`. 2017-12-12 17:17:08 -08:00
filters.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
forms.py mypy: Swap order of `user` initialization in ZulipPasswordResetForm.save. 2017-12-23 01:22:22 +09:00
logging_handlers.py errors: Compute deployment metadata on the right deployment. 2017-12-22 11:52:13 -05:00
middleware.py mypy: Use Python 3 type syntax in zerver/middleware.py. 2017-12-11 18:43:24 -08:00
models.py mypy: Correct get*notifications_stream to return Optional[Stream]. 2017-12-23 01:22:22 +09:00
signals.py email-worker: Send login email through queue. 2017-12-20 19:36:27 -08:00
static_header.txt
storage.py mypy: Improve typing for ManifestStaticFilesStorage monkeypatch. 2017-12-08 19:00:18 -08:00