zulip/zerver
Tim Abbott e2ee1951e0 storage: Fix static files storage reuse issues.
Zulip's previous model for managing static asset files via Django
pipeline had some broken behavior around upgrades.  In particular, it
was for some reason storing the information as to which static files
should be used in a memcached cache that was shared between different
deployments of Zulip.  This means that during the upgrade process,
some clients might be served a version of the static assets that does
not correspond to the server they were connected to.

We've replaced that model with using ManifestStaticFilesStorage, which
instead allows each Zulip deployment directory to have its own
complete copy of the mapping of files to static assets, as it should
be.

We have to do a little bit of hackery with the staticfiles.json path
to make this work, basically because Django expects staticfiles.json
to be under STATIC_ROOT (aka the path nginx is serving to users), but
doing that doesn't really make sense for Zulip, since that directory
is shared between different deployments.
2017-02-06 16:10:24 -08:00
..
fixtures Add handling synchronize PR event to github webhook integration. 2017-02-02 12:33:08 -08:00
lib bugdown: Disable link previews when bots send messages. 2017-02-03 17:08:23 -08:00
management i18n: Fix compilemessages processing extra files in production. 2017-02-03 17:17:23 -08:00
migrations translations: Improve some poorly-worded strings. 2017-01-28 18:04:17 -08:00
templatetags minify: Clean up unnecessary tuple/list complexity. 2017-01-19 14:51:16 -08:00
tests bugdown: Disable link previews when bots send messages. 2017-02-03 17:08:23 -08:00
tornado lint: Clean up E126 PEP-8 rule. 2017-01-23 22:06:13 -08:00
views mobile: Add an endpoint for checking compatibility. 2017-02-03 09:55:34 -08:00
webhooks webhooks: Fix spelling of GitHub webhook client name. 2017-02-05 16:26:12 -08:00
worker errors: Use hostname to report deployment. 2017-01-28 13:07:09 -08:00
__init__.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
apps.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
context_processors.py lint: Clean up E241 PEP-8 rule. 2017-01-23 21:21:14 -08:00
decorator.py Fix unnecessary traceback in authenticated_rest_api_view. 2017-01-29 12:48:10 -08:00
exceptions.py Annotate zerver.exceptions, zerver.filters, zerver.logging_handlers. 2016-06-04 22:51:18 -07:00
filters.py errors: Remove build_request_repr logic. 2017-01-29 14:18:22 -08:00
forms.py Rename models.get_realm_by_string_id to get_realm. 2017-01-04 17:12:23 -08:00
logging_handlers.py logging_handlers: Add error handling for invalid hosts. 2017-01-29 19:57:09 -08:00
middleware.py middleware: Fix recursive DisallowedHost exceptions. 2017-01-29 20:26:58 -08:00
models.py streams: Consider stream name validation logic. 2017-01-29 22:07:14 -08:00
static_header.txt Update static_header.txt with new license information. 2016-08-13 00:37:21 -07:00
storage.py storage: Fix static files storage reuse issues. 2017-02-06 16:10:24 -08:00