Tim Abbott
c0d38f42f1
supervisor: Use 127.0.0.1 rather than localhost for tornado.
...
In theory these should be the same, but in misconfigured environments
(such at Travis CI) where /etc/hosts has multiple entries for
"localhost", 127.0.0.1 is safer than "localhost".
2016-05-08 17:35:50 -07:00
Vladislav Manchev
52e96915e2
check-templates: Allow HTML tag brackets inside tag attributes.
2016-05-08 16:33:03 -07:00
Preston Hansen
635828069f
Add feature to mark all in stream/topic as read with mouse.
...
Fixes #736 .
2016-05-08 09:02:46 -07:00
Tim Abbott
34fb276b7b
changelog: Add some items since the last release.
2016-05-07 20:34:14 -07:00
Tim Abbott
c5a44043a8
Cleanup changelog.md to be better documentation.
2016-05-07 20:34:06 -07:00
Tim Abbott
1c24cb32a5
Move changelog.md to docs/ and add to ReadTheDocs.
2016-05-07 20:26:44 -07:00
Tim Abbott
e5e133eccc
Update docs to reflect the elimination of /bin.
2016-05-07 19:37:06 -07:00
Tim Abbott
6e1872987d
Move bin/get-django-setting to scripts/.
2016-05-07 19:37:06 -07:00
Tim Abbott
a315849a9e
Move bin/log-management-command to scripts/lib/.
...
We're in the process of eliminating the bin/ subdirectory in favor of
the scripts/ tree, and this one isn't user-facing.
2016-05-07 19:37:06 -07:00
Tim Abbott
cb81a59e38
Move write-rabbitmq-consumers-state-file to scripts/nagios/.
2016-05-07 19:37:06 -07:00
Tim Abbott
2761c012e5
Move rabbitmq consumer checks from bots/ to scripts/nagios/.
2016-05-07 19:37:06 -07:00
Tim Abbott
be6566dc5c
nagios: Move cron_file_helper from bots/ to scripts/lib.
...
This ensures the tool is available in Zulip production deployments.
2016-05-07 19:37:06 -07:00
Tim Abbott
73b3f7a26e
settings: Fix new-style template LOADERS syntax.
2016-05-07 19:35:16 -07:00
Tim Abbott
4c7b4fcea1
requirements: Downgrade Jinja2 and MarkupSafe to match Trusty apt.
...
The moto-based tests still pass with the older version, and this will
safe some trouble when we migrate Zulip to the Jinja2 templating system.
2016-05-07 17:38:26 -07:00
Tim Abbott
d20791eb6a
docs/new-feature-tutorial: Fix typos in templates path.
2016-05-07 17:37:01 -07:00
Umair Khan
6a0c7fec72
analytics: Add `at_risk_count` to Totals row in realm summary.
...
This fixes reading from an unset value in realm_summary_table, which
is fine with the Django template engine but will be problematic with
jinja2.
2016-05-07 17:30:06 -07:00
Umair Khan
4620cd8483
settings: Migrate template settings to using TEMPLATES.
...
This is cleaner and also is necessary preparation for supporting
Jinja2.
2016-05-07 17:29:51 -07:00
Umair Khan
a3acd5e8e9
settings: Add LocaleMiddleware to MIDDLEWARE_CLASSES.
...
This is needed for internationalization.
2016-05-07 17:00:10 -07:00
Tim Abbott
c1c1be1d36
Add Transifex config file and Transifex client dependency.
...
This makes it easy to download translations from Transifex.
2016-05-07 16:59:59 -07:00
Tim Abbott
5efb38f093
Add compiled translation messages files (.mo) to gitignore.
2016-05-07 16:59:45 -07:00
Tim Abbott
bfdde2e9b9
provision: Add missing dependency on python3-dev.
...
This fixes an issue introduced by
b21454d05e
, where the typed_ast module
wouldn't build properly when provisioning, because we didn't have the
necessary headers installed.
2016-05-07 13:31:26 -07:00
Tim Abbott
6139e8948a
travis: User REQ framework for extracting JSON payload.
2016-05-07 11:54:14 -07:00
Tim Abbott
678adc2048
webhooks: Use REQ more consistently in stream name parsing.
...
To avoid the potential for introducing regressions here, we carefully
pass a default to REQ or not based on how the existing webhook's
parsing code worked. In the longer term, we'll want to make the
behavior consistent.
2016-05-07 11:54:14 -07:00
Tomasz Kolek
c2de38239e
Add payload validation to has_request_variables and REQ tasks.
...
[with tweaks by tabbott]
2016-05-07 11:54:09 -07:00
Tim Abbott
c1a680e2a9
rate_limiter: Fix misplaced type annotation and cleanup code.
...
You don't put type annotations on return values.
2016-05-06 13:38:12 -07:00
Tim Abbott
3a0e7c217f
mypy: Move verbose error output to travis CI wrapper.
...
This makes it easier to pipe the output of tools/run-mypy to tools
like grep.
2016-05-06 13:38:12 -07:00
Tim Abbott
b21454d05e
mypy: Use the new --fast-parser option.
...
This makes mypy about 15% faster running on the Zulip codebase (from
7s=>6s on my laptop), which seems worth it for losing a couple files.
This option requires a new dependency, which we add to the
mypy-specific requirements.txt file.
2016-05-06 13:38:12 -07:00
Tim Abbott
1807e855e7
Upgrade mypy to the new 0.4.0 release.
...
Also update the mypy command line to not use deprecated argument names.
This introduces a few errors, so we exclude the relevant files to keep
the mypy output clean.
2016-05-06 13:38:12 -07:00
Tim Abbott
4219a6779f
socket: Initialize client_id to None by default.
...
This fixes an exception where client_id was never set in an error code
path. It shouldn't be needed, but I think this makes the code clearer
and this will help in debugging the actual problem.
Related to #753 .
2016-05-05 14:49:26 -07:00
Tim Abbott
542af0d6b6
lint: Add option to print verbose timing output.
2016-05-04 14:22:52 -07:00
Tim Abbott
e2aeee0c35
lint: Add check for unnecessary whitespace between % and (.
2016-05-04 14:22:52 -07:00
Tim Abbott
191201bd10
Fix unnecessary whitespace between % and (.
2016-05-04 14:22:52 -07:00
Tim Abbott
72ee9f5137
lint: Check for unnecssary whitespace after ','s.
2016-05-04 14:17:27 -07:00
Tim Abbott
54022ac204
Fix unnecessary whitespace between , and ).
2016-05-04 14:16:53 -07:00
Tim Abbott
dd40f51fee
Add code to clean the venv cache of old venvs.
2016-05-03 15:04:03 -07:00
Tim Abbott
6a335fc090
Travis: Use /srv/zulip-venv-cache cache.
2016-05-03 14:48:21 -07:00
Tim Abbott
9970341ede
Fix caching of install-phantomjs library in Travis CI.
2016-05-03 14:48:21 -07:00
Tim Abbott
ae6037668a
test_runner: Add debugging tips for missing test modules.
2016-05-03 12:33:47 -07:00
Tim Abbott
bab267f332
test_runner: Improve error handling when importing test files.
...
The error message for a test file that doesn't import properly was
previously pretty difficult to understand and it wasn't clear how to
debug the issue.
2016-05-03 12:17:10 -07:00
Tim Abbott
9f786a5131
provision: Add caching of virtualenvs by sha1sum of requirements.txt.
...
This should save a couple minutes on the time it takes to provision a
Zulip environment on a machine that has provisioned with the same
requirements.txt file content before.
We can't yet use this in Travis CI because Travis CI doesn't support
using both sudo and caching in the same build.
2016-05-02 23:08:59 -07:00
Tim Abbott
ef95917da5
provision: Refactor virtualenv creation into a function.
2016-05-02 22:35:18 -07:00
rahuldeve
899bfb97ee
Add tests for managing uploads in S3.
2016-05-02 22:14:47 -07:00
rahuldeve
01fb6c77a2
Add test for managing files in Local Storage.
2016-05-02 22:14:47 -07:00
rahuldeve
c9b242b5d1
Modify requirements.txt for adding moto package and its dependencies.
2016-05-02 22:14:47 -07:00
rahuldeve
dde832b158
Add Attachment model to keep track of uploads.
...
This commit adds the capability to keep track and remove uploaded
files. Unclaimed attachments are files that have been uploaded to the
server but are not referred in any messages. A management command to
remove old unclaimed files after a week is also included.
Tests for getting the file referred in messages are also included.
2016-05-02 22:14:47 -07:00
Tim Abbott
391a225595
lint: Check for missing space after comments.
2016-05-02 22:10:47 -07:00
Tim Abbott
762a3188ee
Fix missing whitespace after # in comments.
2016-05-02 22:10:47 -07:00
Tim Abbott
5ffe1439eb
Add changelog for Zulip 1.3.11 release.
2016-05-02 20:39:51 -07:00
Tim Abbott
d9e4968d6f
Increase maximum URL length for RealmEmoji to 1000.
...
The default of 200 was shorter than the Camo URLs use by Zulip.
2016-05-02 19:02:56 -07:00
Tim Abbott
5bd94c15c7
Use camo to avoid mixed content warnings when displaying emoji.
2016-05-02 17:21:31 -07:00