Vishnu Ks
63586480a5
test_subs: Replace hamlet@zulip.com with self.example_email('hamlet').
2017-07-12 12:49:12 -07:00
Vishnu Ks
6e133cc77a
test_subs: Eliminate redundant class variable realm.
...
The SubscriptionAPITest class variables `realm` and `test_realm` stores
the same information and are redundant. I have eliminated all occurances
of self.realm and replaced with self.test_realm.
2017-07-13 00:45:24 +05:30
Vishnu Ks
bf729c9a4d
test_classes: Use get_user in notification_bot fcuntion.
2017-07-13 00:45:24 +05:30
Vishnu Ks
f28b29177b
test_classes: Use get_user in mit_user function.
2017-07-13 00:45:24 +05:30
Vishnu Ks
0b701b52df
test_classes: Use get_user in example_user function.
2017-07-13 00:45:24 +05:30
Vishnu Ks
ed0423784d
test_realm_emoji: Replace get_user_profile_by_email.
...
Replace with get_user.
2017-07-13 00:45:24 +05:30
Vishnu Ks
80d0039e2c
test_helpers: Remove unused get_user_profile_by_email import.
2017-07-13 00:45:24 +05:30
Vishnu Ks
ba4ea7dd8a
notifications.py: Replace get_user_profile_by_email.
...
Replace with get_user.
2017-07-13 00:45:24 +05:30
Tim Abbott
ac3e9256bb
frontend: Remove unused sender_name_hovered CSS.
2017-07-11 16:30:34 -07:00
Vaida Plankyte
74ab5b607a
frontend: Change main UI content to not be background images.
2017-07-11 16:30:07 -07:00
Srimukh
b2f105ac7e
landing: Prevent selecting the of X icon in mobile navigation.
...
This prevents accidental selection of the close button (X) of the left
sidebar on mobile landing page.
Fixes #5259 .
2017-07-11 15:35:18 -07:00
Aditya Bansal
de1dc50204
linter/pep8: Remove code infra to ignore the E261 violations.
2017-07-11 15:17:32 -07:00
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