Aditya Bansal
84e53f960d
pep8: Add compliance with rule E261 to tests/test_upload.py.
2017-07-11 15:17:32 -07:00
Aditya Bansal
1b5e3190e3
pep8: Add compliance with rule E261 to tests/test_subs.py.
2017-07-11 15:17:32 -07:00
Aditya Bansal
2643a40176
pep8: Add compliance with rule E261 to tests/test_signup.py.
2017-07-11 15:17:32 -07:00
Aditya Bansal
59b26e582a
pep8: Add compliance with rule E261 to tests/test_realm.py.
2017-07-11 15:17:32 -07:00
Aditya Bansal
0970d29ec1
pep8: Add compliance with rule E261 to tests/test_narrow.py.
2017-07-11 15:17:32 -07:00
Aditya Bansal
ce70ded488
pep8: Add compliance with rule E261 to tests/test_messages.py.
2017-07-11 15:17:32 -07:00
Aditya Bansal
8c233198f8
pep8: Add compliance with rule E261 to tests/test_events.py.
2017-07-11 15:17:32 -07:00
Aditya Bansal
ee97ea1356
pep8: Add compliance with rule E261 to tests/test_bugdown.py.
2017-07-11 15:17:32 -07:00
Abdul Qabiz
7d7f2f78c8
clean-repo: Optimize .pyc removal code.
...
This optimizes .pyc files removal.
Instead of removing all pyc files, it will only remove pyc files where
corresponding py file is not found. This saves about 1s in the
startup time of `run-dev.py` (and thus also `test-js-with-casper`).
Fixes #5760 .
2017-07-11 14:40:56 -07:00
EdOverflow
86cfed3e81
Update generate_secrets.py
2017-07-11 12:43:46 -07:00
Tim Abbott
f724900e68
install-node: Fix provisioning when node/npm don't exist.
...
Our recent performance changes to this script broke it in the case
where there was no previous version of node/npm installed.
2017-07-11 12:36:35 -07:00
Aditya Bansal
0c4165a5bd
pep8: Add compliance with rule E261 to populate_db.py.
2017-07-11 11:56:50 -07:00
Aditya Bansal
856e005d64
linter_lib/pep8.py: Remove files which don't have E261 conflicts.
2017-07-11 11:55:30 -07:00
Aditya Bansal
d46cf59b0d
pep8: Add compliance with rule E261 to worker/queue_processors.py.
2017-07-11 11:55:02 -07:00
Aditya Bansal
1e3b57570e
pep8: Add compliance with rule E261 to tornado/websocket_client.py.
2017-07-11 11:55:02 -07:00
Aditya Bansal
94b790c28d
pep8: Add compliance with rule E261 to tornado/socket.py.
2017-07-11 11:55:02 -07:00
Aditya Bansal
b9bffaa446
pep8: Add compliance with rule E261 to prod_settings_template.py.
2017-07-11 11:55:01 -07:00
Aditya Bansal
5f87a0f8f8
pep8: Add compliance with rule E261 zproject/settings.py.
2017-07-11 11:53:33 -07:00
Aditya Bansal
7c6ad4a770
pep8: Add compliance with rule E261 zproject/dev_settings.py.
2017-07-11 11:53:33 -07:00
Aditya Bansal
44edab1cff
pep8: Add compliance with rule E261 tools/run-dev.py.
2017-07-11 11:53:33 -07:00
Aditya Bansal
73ad834129
pep8: Add compliance with rule E261 bugdown/__init__.py.
2017-07-11 11:53:33 -07:00
Aditya Bansal
f5d5c48831
pep8: Add compliance with rule E261 models.py.
2017-07-11 11:53:33 -07:00
Vishnu Ks
48617c5915
send_password_reset_email: Replace get_user_profile_by_email with get_user.
2017-07-11 11:48:21 -07:00
Vishnu Ks
aca4d18f23
generate_invite_links: Replace get_user_profile_by_email with get_user.
...
The extra refactoring is because the realm is made a compulsary
argument.
2017-07-11 11:48:21 -07:00
Eeshan Garg
b37ace33ee
help: Document bot types in add-a-bot-or-integration.
2017-07-11 13:25:51 -04:00
Eeshan Garg
37fbed0993
webhooks: Recommend creating "incoming webhook" bot.
...
In all our webhooks' docs, we now recommend creating a bot with the
"Incoming webhook" bot type.
2017-07-11 13:25:51 -04:00
Vaida Plankyte
1e04ab8b54
help: Add docs on new manage organization features.
2017-07-11 12:35:50 -04:00
Aditya Bansal
85289163a4
compose.js: Refactor to extract of a helper func in test_on_events.
2017-07-11 12:14:09 -04:00
Aditya Bansal
2342a8f0e4
compose.js: Remove dead code from get_invalid_recipient_emails().
...
The piece of code is dead since there can be no instance where
email === ''. This is ensured by util.extract_pm_recipients
by filtering for empty strings in the pm_recipients list.
2017-07-11 12:14:09 -04:00
Aditya Bansal
93a003749e
compose.js: Remove dead code from mark_end_to_end_display_time().
...
This piece was dead because exports.send_times_data[message_id]
cannot be undefined since the only place this function is called
from is exports.report_as_received() and that function has a call
to mark_end_to_end_receive_time() before a call is made to the
function in question for dead code. The function call to
mark_end_to_end_receive_time results in
exports.send_times_data[message_id] = {} if this was not defined
already. So there can be no instance where we end up the code
being removed.
2017-07-11 12:14:09 -04:00
Aditya Bansal
237ec76bdc
compose.js: Remove broken test_send_many_messages().
2017-07-11 12:14:09 -04:00
Aditya Bansal
783f75ef10
compose.js: Add a setup statement in an on() test.
2017-07-11 12:14:09 -04:00
Tim Abbott
f75b72ef07
test-migrations: Fix error code bug.
...
Previously, this was failing unconditionally, because of `set -e`.
2017-07-10 16:20:47 -07:00
Tim Abbott
32af1ed7b4
casper: Fix nondeterministic failures in realm creation tests.
...
This was previously failing because we didn't wait for a particular
state after logging in, and the title changes at least once during the
process after the URL changes to the Zulip homepage.
2017-07-10 16:18:17 -07:00
Tim Abbott
4e2b5bf200
docs: Document naming for schema migrations.
2017-07-10 16:03:16 -07:00
Aditya Bansal
c493a0f02a
test-migrations: Add a check to avoid auto named migrations.
2017-07-10 16:02:52 -07:00
Vaida Plankyte
7d98e569c5
help: Add docs for new organization permission settings.
2017-07-10 11:50:40 -07:00
Vaida Plankyte
90877c2100
help: Update links to point to organization permissions.
2017-07-10 11:50:40 -07:00
Umair Khan
816ead737c
jinja2: Support only Django version >= 1.11.
...
Django started supporting context processors from version 1.11; as
a result of this, we can get rid of some of the code which is now
being taken care of by Django.
2017-07-10 11:32:10 -07:00
Umair Khan
782bfd1d7c
test_runner: Support only Django version >= 1.11.
...
In previous versions, the argument to run_subsuite is a tuple of
length 3, while in versions >= 1.11 it's a tuple of length 4.
2017-07-10 11:32:10 -07:00
Umair Khan
c31beec9e6
makemessages: Support only Django version >= 1.11.
2017-07-10 11:32:10 -07:00
rht
8a50fbfa0b
docs: Move ')' to the correct location.
2017-07-10 10:22:47 -07:00
Aditya Bansal
ec6fdd92d4
models: Add long_term_idle/last_active_message_id to UserProfile.
...
In this commit we are adding two new fields to the UserProfile
table. These fields are the:
long_term_idle: For storing a bool value representing status of user
being online in long time where 'long' will have a specific
definition.
last_active_message_id: For storing the message id which was last
updated into the UserMessage table for a particular user.
2017-07-10 12:31:50 -04:00
Vaida Plankyte
96321b3069
frontend: Darken the static error pages text.
2017-07-09 13:54:29 -07:00
Durga Akhil Mundroy
38b70f27d9
typeahead: Use recent_senders/pm_conversations to sort suggestions.
...
In typeahead_helper.js, added a compare function to first sort by
subscription, then by pm partners and lastly based on recency in the
current topic. Altered function sort_for_at_mention to take topic data
and sort using the above function. Also altered node tests for
typeahead_helper.js to test for the above added functionality.
Fixes : #4249
2017-07-09 10:51:19 -04:00
Aditya Bansal
2479e74867
compose.js: Add coverage for message_id_changed event on document.
2017-07-09 08:49:45 -04:00
Aditya Bansal
51257ee93d
compose.js: Add coverage for uploadFinished() function.
2017-07-09 08:49:45 -04:00
Aditya Bansal
18d2be0d5c
compose.js: Add coverage for uploadError() function.
2017-07-09 08:49:45 -04:00
Aditya Bansal
43aaab3adf
compose.js: Add coverage to progressUpdated() function.
2017-07-09 08:49:45 -04:00
Aditya Bansal
1f6ad92121
compose.js: Add coverage for uploadStarted() function.
2017-07-09 08:49:45 -04:00