Tim Abbott
78febc3abb
Fix missing newlines at end of .txt files.
2016-04-14 14:36:29 -07:00
Tim Abbott
39950b8f4f
lint: Check whitespace rules in markdown files too.
2016-04-14 14:30:29 -07:00
Tim Abbott
1a162ecb97
Fix tab-based whitespace in stress-test README file.
2016-04-14 14:30:29 -07:00
Tim Abbott
2b76f6223e
Make 'no newline at end of file' lint error more actionable.
...
There's a handy sed command to fix this, so we might as well document
it.
2016-04-14 10:55:06 -07:00
Tim Abbott
e71d8bb4b6
lint-all: Require newlines at end of JSON files.
2016-04-14 10:49:12 -07:00
Tim Abbott
5195d1ecb7
Fix missing newlines at ends of JSON files.
2016-04-14 10:48:52 -07:00
Tim Abbott
1bf11f6b7f
Split FileUploadTest out of S3Test.
...
S3Test is now only the S3-specific test (which isn't even run), so we
can now invest in making FileUploadTest have good coverage of the
(local) file upload code paths.
2016-04-14 10:35:10 -07:00
Sumana Harihareswara
4ce4f88a03
Fix formatting in directory-structure.rst.
2016-04-13 15:44:10 -07:00
Tim Abbott
74abd47684
Fix EMAIL_GATEWAY_BOT not being set by default in production.
...
Previously the DEFAULTS value of None for EMAIL_GATEWAY_BOT was
overriding the initialization code.
2016-04-13 13:19:02 -07:00
Tim Abbott
ae48f6394b
migrations: Disable prompting about content-type deletion.
...
The main function of prompting inside `manage.py migrate` is to ask
the user if they want to delete stale content-types, which is
unimportant and likely scary, so we disable doing so.
2016-04-13 13:19:02 -07:00
Tim Abbott
d0f2c46f25
generate_test_credentials: Use the email variable properly.
...
This makes it a bit easier to change the email in the test
credentials.
2016-04-13 13:19:02 -07:00
Tim Abbott
26463bb34d
Fix nondeterministic subscriptions for default test users.
...
Previously, the UserProfile objects were created in the order
generated by a Set, which meant tests would randomly start failing if
the code that runs before this part of populate_db changed (and thus
caused the Set object used to pass users into bulk_create_users to
have a different order when enumerated).
This fixes the issue in two ways -- one by sorting the users inside
bulk_create_users, and second by attaching subscriptions to users
based on a deterministic ordering.
2016-04-13 13:19:02 -07:00
Tim Abbott
81143a8c98
02-narrow: Use Denmark as the test second stream.
...
It's less easily confused with "Verona", and prevents the next commit
from breaking the tests (since Iago will lose his subscription to
"Venice").
2016-04-13 13:19:02 -07:00
Tim Abbott
f6edc21981
Change stream used in test_get_old_messages_with_only_searching_anchor.
...
This prevents this test from breaking when in a few commits we fix a
nondeterminism issue in the populate_db test fixtures.
2016-04-13 13:19:02 -07:00
Tim Abbott
ffccb572f0
Don't autoreload Tornado when running inside test suite.
...
The restarted Tornado processes seemed to escape the process group and
thus continue running after run-dev.py finished.
While we're at it, we don't need to dump/reload event queues in the
test suite either.
2016-04-13 13:19:01 -07:00
Tim Abbott
98d5f64f36
webpack: Use the correct port in Casper tests.
...
Previously we used 9994 unconditionally, whereas we should be using
9984 or 9994 depending whether it's being run manually or via the
Casper tests.
2016-04-13 13:18:38 -07:00
Tim Abbott
47879c5e00
Fix nondeterminism in test_successful_subscriptions_add.
...
Previously this test would fail if the streams list generated by
populate_db contained more than 2 streams.
2016-04-13 13:18:24 -07:00
Tim Abbott
2e32a7f05d
Move by-hand proxy setup section closer to the actual instructions.
2016-04-13 09:06:20 -07:00
Vishnu Ks
859a4eeaf4
Add support for using and configuring vagrant-proxyconf.
...
Users can now specify proxy settings for vagrant in a new
~/.zulip-vagrant-config configuration file.
2016-04-13 09:06:03 -07:00
Vishnu Ks
35f70e9dac
Move 5 legacy global variables to pointer.js.
...
Move recenter_pointer_on_display, suppress_scroll_pointer_update,
fast_forward_pointer, furthest_read, and server_furthest_read to
a new pointer module in pointer.js.
2016-04-12 10:56:54 -07:00
Tim Abbott
fb55fcef1e
Fix missing zerver/tests/__init__.py.
2016-04-11 22:34:22 -07:00
Tim Abbott
be96cf809d
Move Zulip backend tests to zerver.tests.
2016-04-11 22:16:09 -07:00
Ashish
1bf644369f
Delete old route for json/update_active_status.
2016-04-11 21:38:23 -07:00
Ashish
78b9f45bf7
Delete old route for json/update_pointer.
2016-04-11 21:38:23 -07:00
Ashish
9429358795
Delete old route for /json/get_profile.
2016-04-11 21:38:23 -07:00
Ashish
86fb7103fa
Delete old route for json/change_enter_sends.
2016-04-11 21:38:23 -07:00
Ashish
42fe918138
Delete old route for json/get_old_messages.
2016-04-11 21:38:23 -07:00
Ashish
cfefc94200
Delete old route for json/set_alert_words.
2016-04-11 21:38:23 -07:00
Ashish
c0a218edfc
Delete old route for /json/update_message_flags.
2016-04-11 21:38:23 -07:00
Ashish
a12006d86f
Replace /json/update_active_status with REST style route.
2016-04-11 21:38:23 -07:00
Ashish
6356584f84
Replace /json/update_pointer with REST style route.
2016-04-11 21:38:23 -07:00
Ashish
b8ec8f5ef0
Replace /json/get_profile with REST style route.
2016-04-11 21:38:23 -07:00
Ashish
679b4e5807
Replace /json/change_enter_sends with REST style route.
2016-04-11 21:38:23 -07:00
Ashish
cb8da46bbf
Replace /json/get_old_messages with REST style route.
2016-04-11 21:38:23 -07:00
Ashish
8fc8717409
Replace json/set_alert_words with REST style route.
2016-04-11 21:38:22 -07:00
Ashish
41993ef2f5
Replace /json/update_message_flags with REST style route.
2016-04-11 21:38:22 -07:00
Ashish
dac4e58b91
Changes REST API backend route for /json/change_enter_sends.
2016-04-11 21:11:51 -07:00
Tim Abbott
73f2d67ba1
Document how to configure Vagrant LXC with passwordless sudo.
2016-04-10 17:37:52 -07:00
Tim Abbott
7d64bd51f5
provision: Don't install recursive pip dependencies.
...
This should prevent future issues like the wrong cryptography module
being in requirements.txt.
2016-04-10 17:37:52 -07:00
Tim Abbott
00a92b5827
Add missing requests_oauthlib dependency.
2016-04-10 17:37:52 -07:00
Tim Abbott
b29cb1dfb8
provision: Remove now-unnecessary patching of PATH.
2016-04-10 17:37:52 -07:00
Tim Abbott
6de15606f9
provision: Add preliminary support for Ubuntu Xenial.
...
This won't actually work because we don't have a tsearch_extras
package built for postgres 9.5.
2016-04-10 17:37:52 -07:00
Tim Abbott
f6a7b192a4
requirements: Upgrade cffi and cryptography libs in development.
...
The older versions apparently don't build on Ubuntu Xenial.
2016-04-10 17:37:52 -07:00
Tim Abbott
3c74bf000f
provision: Add installing recent npm to provisioning process.
...
This fixes a problem where the version of NPM installed in development
environments was too old.
2016-04-10 17:37:43 -07:00
Tim Abbott
5733c32705
Fix install-phantomjs being called before chdir to ZULIP_PATH.
2016-04-10 17:33:37 -07:00
Tim Abbott
52fc1c71bc
provision: Rewrite using subprocess module instead of sh.
...
The `with sh.sudo` pattern that we were using in python-sh was
deprecated, and emperically hangs on Ubuntu xenial. Since in general
the use of python-sh/python-pbs caused trouble (requiring extra
dependencies, confusing syntax), this just removes it.
We replace it with a new zulip_tools.py library function that echoes
the command line and streams the output.
We do the same to install-phantomjs so we can remove that dependency.
2016-04-10 17:33:19 -07:00
Vishnu Ks
2ac5271091
Move global variable have_scrolled_away_from_top to ui.js.
2016-04-10 10:55:16 -07:00
Tim Abbott
fcced9561d
provision: Add dependency on ipython.
...
ipython dramatically improves the experience of `manage.py shell`.
2016-04-09 10:23:13 -07:00
Kumar
4eced69228
Make subscriptions page error bar visible even when scrolled down.
...
Previously, the Zulip subscriptions page's error bar would always be
at the very top of the scrollable view, and thus would likely be out
of view when an error happened. This fixes it by having the error bar
always placed below the search box (and thus visible regardless of
where in the scrollable streams view we are).
Fixes : #515 .
[commit message and comments expanded by tabbott]
2016-04-08 21:04:43 -07:00
Tim Abbott
9584ae1ab8
Add CSS linter for missing space after : in rules.
2016-04-08 21:04:43 -07:00