Tim Abbott
25488b550f
casper: Fix issues with server autoreloading on save.
...
This fixes an issue where if you saved a Python file (even just
changing whitespace) while casper tests were running, the Tornado
server being used would restart, triggering a confusing error like
this:
ReferenceError: Can't find variable: $
Traceback:
undefined:2
:4
Suite explicitly interrupted without any message given.
2017-03-17 20:45:07 -07:00
Tim Abbott
614391908b
typing: Add apply_event handler for typing notifications.
...
This fixes a crash in the small race condition when loading a browser
window while someone is starting/stopping typing.
2017-03-17 20:01:12 -07:00
Umair Khan
4442703011
jinja2: No need for custom render_to_response.
...
Django 1.10 has changed the implementation of this function to
match our custom implementation; in addition to this, we prefer
render().
Fixes #1914 via #4093 .
2017-03-17 13:57:34 -07:00
Umair Khan
d4ee102a95
users: Change render_to_response to render.
...
Related to #4093
2017-03-17 13:52:59 -07:00
Umair Khan
62a580a37f
unsubscribe: Change render_to_response to render.
...
Related to #4093
2017-03-17 13:52:59 -07:00
Umair Khan
446c06bbf4
registration: Change render_to_response to render.
...
Related to #4093
2017-03-17 13:52:59 -07:00
Umair Khan
58b407e2ff
integrations: Change render_to_response to render.
...
Related to #4093
2017-03-17 13:52:59 -07:00
Umair Khan
097b0e3979
home: Change render_to_response to render.
...
Related to #4093
2017-03-17 13:52:59 -07:00
Umair Khan
4e2311544f
auth: Change render_to_response to render.
...
Related to #4093
2017-03-17 13:52:59 -07:00
Umair Khan
97639e5e48
middleware: Change render_to_response to render.
...
Related to #4093
2017-03-17 13:52:59 -07:00
Umair Khan
14c2b40acc
unsubscribe.py: Pass request to process_subscribe.
...
We are changing render_to_respone to render; render takes
request as an argument.
2017-03-17 13:52:59 -07:00
Akash Kothawale
9e45f32275
gogs: Add webhook integration.
...
- Add push, create and pull request event.
- Handle 'opened', 'closed' and 'merged' in 'pull request' event.
- Include tests for all the above events including 'push' with commits
more than limits.
2017-03-17 12:22:06 -07:00
Akash Kothawale
9c5f1d2239
git.py: Add create branch event message.
2017-03-17 12:22:06 -07:00
Akash Kothawale
edfb9c21bc
github_webhook: Send test message sent by GitHub webhook integration.
...
Fixes #3994 .
2017-03-17 11:47:04 -07:00
Akash Kothawale
282d27a934
git.py: Add setup webhook message.
2017-03-17 11:44:01 -07:00
wizsid11
19d1f4cab7
git integration: Change push commits message to show url at the end.
2017-03-16 11:06:03 -07:00
Rohitt Vashishtha
202389d4a7
notifications: Fix incorrect advertising in missed-message emails.
...
Missed-message email replies using the reply-to of
noreply@zulipchat.com shouldn't advertise that "just replying" will
work.
Rebased and commit message rewritten by tabbott.
Fixes #3965 .
2017-03-15 22:34:31 -07:00
Tim Abbott
1c5e9ae7f6
mypy: Fix unicode error in Jira webhook.
2017-03-15 22:01:04 -07:00
Tomasz Kolek
51b839ac11
jira integration: Add support for unicode chars.
...
Fixes : #3967
2017-03-15 16:26:57 -07:00
kunall17
5a1e952cb5
Implemented test's for muting/unmuting a topic
2017-03-15 16:19:00 -07:00
kunall17
a908bb1898
Implemented API routes for muting/unmuting a topic
2017-03-15 16:19:00 -07:00
Cynthia Lin
589551b6ee
settings: Change "Custom alert words" to "Alert words".
2017-03-15 11:25:37 -07:00
Umair Khan
242d3ffaf4
Add timezone field in UserProfile.
...
Implements backend of #1506 .
2017-03-15 11:18:24 -07:00
Umair Khan
0d296afa54
github: Return '' when name is None.
2017-03-15 11:11:09 -07:00
Umair Khan
e44e58f6d5
logging: Skip log records originated in site packages.
...
This fixes the huge exception we get in our logs from django.template
logger. This exception is a known bug in Django, see
https://code.djangoproject.com/ticket/26886
Fixes #3974
2017-03-15 11:07:31 -07:00
Rishi Gupta
af4718c50c
retention.py: Remove use of domain from get_expired_messages.
...
get_expired_messages seems to only be used by tests anyway.
2017-03-14 17:17:42 -07:00
Rishi Gupta
92dd767519
management commands: Change help text to say realm instead of domain.
2017-03-14 17:17:42 -07:00
Rishi Gupta
0c032adbde
create_realm.py: Remove --domain option.
...
Realm domains can now be managed via Admin Settings in the web app.
2017-03-14 17:17:42 -07:00
Rishi Gupta
8fecd454aa
forms.py: Remove unused function get_registration_string(domain).
2017-03-14 17:17:42 -07:00
Raghav Jajodia
ef7e15ee00
admin: Add realm option to prevent users from changing their name.
...
A realm option to prevent users from changing their name is added.
Fixes #3950 .
2017-03-14 14:10:08 -07:00
Raghav Jajodia
dc48b87765
home.py: Fix bug associated with email_changes_disabled.
...
On reloading the page after disabling email changes does not check
the "Prevent users from changing their email address".
Adding realm_email_changes_disabled to page_params_core_fields fixes the problem.
2017-03-14 14:10:08 -07:00
wizsid11
f066e3e8d6
git integrations: Change the limit of shown commits from 10 to 20.
2017-03-14 13:24:45 -07:00
Umair Khan
cdb07c7005
Fix test_get_old_messages_with_narrow_pm_with.
...
Fixes #3940 .
2017-03-14 09:38:24 -07:00
Umair Khan
7b1742fdef
send_message: Allow message to be sent to a huddle.
2017-03-14 09:35:08 -07:00
Maxim Averin
b13b660709
zerver: Replace log_event with RealmAuditLog in do_change_user_email.
...
This replaces the ancient file logging approach for the auditable
password change event with the database audit log.
2017-03-13 22:08:12 -07:00
Maxim Averin
fc35982b87
zerver: Replace log_event with RealmAuditLog in do_change_password.
...
This replaces the ancient file logging approach for the auditable
password change event with the database audit log.
2017-03-13 22:07:14 -07:00
Elliott Jin
dae5366949
tests: Raise zerver/views/registration.py test coverage.
2017-03-13 21:59:04 -07:00
Elliott Jin
11ad666397
tests: Fix docstring for test_signup_invalid_name.
2017-03-13 21:59:04 -07:00
Rishi Gupta
871c754369
bulk_create: Remove unused function bulk_create_realms.
2017-03-13 14:42:55 -07:00
Rishi Gupta
ae76f2540f
events.py: Remove realm_domain from fetch_initial_state_data.
...
Seems unused. git grep from realm_domain returns nothing of relevance.
2017-03-13 14:42:55 -07:00
Rishi Gupta
098797cd36
Remove page_params.domain.
2017-03-13 14:42:55 -07:00
Rishi Gupta
7dc7b1653c
actions: Remove unnecessary domain in validate_user_access_to_subscribers.
...
validate_user_access_to_subscribers_helper never uses
stream_dict['realm__domain']. I imagine it was there originally to do the
is_zephyr_mirror_realm check.
2017-03-13 14:28:43 -07:00
Rishi Gupta
b4ac768568
realm_icon: Use string_id instead of domain for Realm gravitar.
2017-03-13 14:28:43 -07:00
Rishi Gupta
3645bb9225
Change if(realm.domain == mit.edu) to use Realm.is_zephyr_mirror_realm.
2017-03-13 14:17:14 -07:00
Rishi Gupta
3aae6cd421
Change if(realm.domain == zulip.com) checks to use Realm.string_id.
2017-03-13 14:17:14 -07:00
Rishi Gupta
128c431f14
cache.py: Change realm_alert_words_cache_key to use Realm.string_id.
2017-03-13 14:17:14 -07:00
Rishi Gupta
a0ca2886ef
actions: Change email in do_refer_friend to use Realm.string_id.
...
This looks unused anyway, since it's sending mail to @zulip.com.
2017-03-13 14:17:14 -07:00
Rishi Gupta
15a8d5acc1
actions: Modify recipient_for_emails to not use Realm.domain.
...
Realm.domain was just being used as a unique identifier for a Realm.
2017-03-13 14:17:11 -07:00
Rishi Gupta
727fac75c7
signups: Use topic string_id for internal messages from new user signups.
...
Previously we used the topic "Realm.domain" for new user signups, but topic
"Realm.string_id" for the realm creation. This changes the user signup
messages to be on the same topic thread as the realm creation.
2017-03-13 10:00:41 -07:00
Rishi Gupta
ef532bbbb1
statsd: Change keys to use Realm.string_id instead of domain.
2017-03-13 09:51:02 -07:00
Rishi Gupta
11346e50bb
management commands: Use Realm.string_id instead of domain in print statements.
2017-03-13 09:44:32 -07:00
Rishi Gupta
5dc683ba8d
Use Realm.string_id instead of Realm.domain when logging.
2017-03-13 09:42:14 -07:00
Rishi Gupta
00f49d4121
views/users.py: Change error message to use Realm.string_id instead of domain.
2017-03-13 09:37:06 -07:00
Rishi Gupta
0559afb928
models: Use Realm.string_id instead of domain in RealmFilter.__unicode__.
2017-03-13 09:27:21 -07:00
Rishi Gupta
cc25193faa
models: Use Realm.string_id instead of domain in RealmEmoji.__unicode__.
2017-03-13 09:26:26 -07:00
Rishi Gupta
a2bfa7793a
models: Use string_id instead of domain in Realm.__unicode__.
2017-03-13 09:23:07 -07:00
Rishi Gupta
b81c86ffca
actions.py: Replace realm.domain with string_id in calls to log_event.
...
log_event is deprecated and only being used as a reminder for what needs to
be transitioned to RealmAuditLog.
2017-03-12 23:06:57 -07:00
James Wang
405f07454c
Add server version to about page template.
...
zserver/context_processors.py: Pull in ZULIP_VERSION variable from version.py
about.html: Put server version into template.
Fixes : #3907
2017-03-09 22:10:54 -08:00
Raghav Jajodia
c17e574211
Remove product_name setting and return to harcoding 'Zulip'.
...
This removes some confusion in grep for frontend strings with Zulip in
them and also cleans up the code in some places.
Fixes #1602 .
2017-03-09 21:48:15 -08:00
Tim Abbott
60296c022c
test_messages: Attempt to fix flaky coverage again.
2017-03-09 21:42:22 -08:00
Tim Abbott
c2bee5a89b
auth: Fix fetch_auth_backends to properly report supported methods.
...
This fixes 2 related issues:
* We incorrectly would report authentication methods that are
supported by a server (but have been disabled for a given
realm/subdomain) as supported.
* We did not return an error with an invalid subdomain on a valid
Zulip server.
* We did not return an error when requesting auth backends for the
homepage if SUBDOMAINS_HOMEPAGE is set.
Comes with complete tests.
2017-03-09 21:37:00 -08:00
Amy Liu
e5ab3123af
Migrate json/set_muted_topics to muting/topics.
2017-03-09 20:52:29 -08:00
Amy Liu
9500c88e32
Migrate legacy url json/bulk_invite_users to invite/bulk_invite.
2017-03-09 20:51:03 -08:00
Umair Khan
32849b80ad
Django 1.10: Url pattern doesn't use _callback_str.
...
Fixes #3941
2017-03-09 00:50:12 -08:00
Tim Abbott
ac20872f9d
request: Fix unnecessary translation tag for assertion.
2017-03-09 00:38:14 -08:00
Tim Abbott
8bdbcbc371
lint: Fix unnecessarily translated test file strings.
...
Our linter for translation strings shouldn't check test files, since
then we'll end up translating non-user-facing strings.
So we fix that, and actually add the opposite lint rule.
2017-03-09 00:37:44 -08:00
Umair Khan
149b0c30df
capitalization: Fix Only Basic authentication is supported.
2017-03-08 23:40:57 -08:00
Tim Abbott
ae12f3dfd0
github: Fix URL in GitHub webhook documentation.
2017-03-08 23:25:30 -08:00
adnrs96
556dde8e3e
avatar migration: Handle missing avatars for S3 gracefully.
...
In this commit we start to handle missing avatars gracefully in case
migration was being run on the AWS.
2017-03-08 22:24:07 -08:00
Tomasz Kolek
114c80efae
Add ignore pull requests mechanism in Travis integration.
...
Add ignore_pull_requests param to url, with a default of true.
Fixes : #3912 .
2017-03-08 21:51:04 -08:00
Tomasz Kolek
15485ec972
Refactor travis integration.
2017-03-08 21:49:32 -08:00
Tim Abbott
ac138b6e93
templates: Rename landing-nav.html to landing_nav.html.
2017-03-08 17:30:44 -08:00
Rishi Gupta
76ccf2732c
actions.py: Remove date_joined argument to do_activate_user.
...
All current calls to do_activate_user just use the default value of
timezone.now(). Having a date_joined other than timezone.now() raises an
interesting RealmAuditLog question (namely, which time should be used),
which we don't have to answer if we remove the argument.
2017-03-08 17:03:20 -08:00
Rishi Gupta
36db89c0a5
actions.py: Remove log_event for functions that log to RealmAuditLog.
2017-03-08 17:03:20 -08:00
Tim Abbott
3b59e6c3cc
subs: Rename /#subscriptions to /#streams.
...
Fixes #3653 .
2017-03-08 16:57:58 -08:00
Tim Abbott
d420aa72b8
actions: Fix default domain for realm creation.
...
The old domain was actually an email, not a domain, and hardcoded
acme.com :(.
2017-03-08 16:52:37 -08:00
Rishi Gupta
3797fa657e
Change bot domains to string_id.EXTERNAL_HOST.
...
Change applies to both subdomains and non-subdomains case, though we use
just the EXTERNAL_HOST in the non-subdomains case if there is only 1 realm.
Fixes #3903 .
2017-03-08 16:26:13 -08:00
Elliott Jin
8d936601d3
test-backend: Raise zerver/views/test_upload.py test coverage to 100%.
2017-03-08 11:42:25 -08:00
Tim Abbott
841e81d21e
tests: Fix six.moves range import placement.
2017-03-08 11:36:04 -08:00
Tim Abbott
cb14b4405c
tests: Rename zerver/tests/tests.py to test_users.py.
2017-03-08 03:57:37 -08:00
Tim Abbott
8675be2daf
tests: Move ModelTest to test_presence.py.
2017-03-08 03:57:37 -08:00
Tim Abbott
ff7e3a2125
tests: Move ExtractedRecipientsTest test to test_messages.py.
2017-03-08 03:57:37 -08:00
Tim Abbott
ff598a091c
tests: Extract zerver/tests/test_muting.py.
2017-03-08 03:57:37 -08:00
Tim Abbott
352551503c
tests: Move UtilsUnitTest test to test_docs.py.
2017-03-08 03:57:37 -08:00
Tim Abbott
c0f43ce343
tests: Move PublicURLTest tests to test_urls.py.
2017-03-08 03:57:37 -08:00
Tim Abbott
a2ebece9b7
tests: Move login-related tests to test_signup.py.
2017-03-08 03:57:37 -08:00
Tim Abbott
94ed405c69
tests: Extract zerver/tests/test_middleware.py.
2017-03-08 03:57:37 -08:00
Tim Abbott
46362dfcca
tests: Move AuthorsPageTest to test_docs.py.
2017-03-08 03:57:37 -08:00
Tim Abbott
881169f08a
tests: Move DocPageTest to test_docs.py.
2017-03-08 03:57:37 -08:00
Tim Abbott
edbb3fa4ec
tests: Rename test_integrations to test_docs.
2017-03-08 03:57:37 -08:00
Tim Abbott
729bcc8b16
tests: Move TestOpenRealms to test_signup.py.
2017-03-08 03:57:37 -08:00
Tim Abbott
e8b08d10f0
tests: Extract zerver/tests/test_notifications.py.
2017-03-08 03:57:37 -08:00
Tim Abbott
eefd5d4cf6
tests: Move UserChangesTest to test_settings.py.
2017-03-08 03:57:37 -08:00
Tim Abbott
3d98b1cdef
tests: Extract zerver/tests/test_queue_worker.py.
2017-03-08 03:57:37 -08:00
Tim Abbott
4e34719563
tests: Extract zerver/tests/test_realm.py.
2017-03-08 03:15:16 -08:00
Tim Abbott
b5cca309d6
tests: Extract zerver/tests/test_settings.py.
2017-03-08 03:13:28 -08:00
Tim Abbott
123b4c1877
tests: Extract zerver/tests/test_bots.py.
2017-03-08 03:09:32 -08:00
Tim Abbott
7d9e80599b
tests: Extract zerver/tests/test_zephyr.py.
2017-03-08 03:08:30 -08:00
Tim Abbott
c66549dee0
tests: Extract zerver/tests/test_home.py.
2017-03-08 03:00:05 -08:00
Tim Abbott
a55381b397
sessions: Fix missing typing imports.
2017-03-08 03:00:05 -08:00