paxapy
8e7fa6b2de
emoji: Add add_emoji_by_admins_only realm setting.
...
This setting controls whether normal users can add realm emoji.
Fixes #978 .
2016-12-27 15:46:14 -08:00
Igor Tokarev
1238d08f72
emoji: Add emoji author data in API.
2016-12-27 15:42:21 -08:00
Igor Tokarev
ffa724f8fc
emoji: Add author field to RealmEmoji table and track.
2016-12-27 15:42:04 -08:00
Rishi Gupta
717afcb408
Remove calls to get_realm in preparation for its deprecation.
...
Also removes two calls to email_to_domain.
2016-12-26 17:53:32 -08:00
Rishi Gupta
e9a6bd1986
Change register/<domain>/ URL route to register/<realm_str>/.
2016-12-26 17:51:00 -08:00
Rishi Gupta
ea64b18f91
zerver.views: Be confident that request.session['domain'] is valid.
...
We only write domain to the session variable in one place,
accounts_home_with_domain, where we check that the domain is valid, that the
domain corresponds to an open realm, and that we are in the non-subdomains
case.
Previously, we were confusingly checking only a subset of the conditions
on reading back the domain in create_preregistration_user, and not checking
any of them when reading back the domain in get_realm_from_request.
2016-12-26 17:50:46 -08:00
Rishi Gupta
d6e7014f06
Refactor views.create_homepage_form into its callers.
...
The indirection is no longer that useful, and obscures Django's conventional
style for calling a form.
2016-12-26 17:50:23 -08:00
Rishi Gupta
146f2ca482
Refactor get_realm_from_request out of views.create_homepage_form.
2016-12-26 17:49:58 -08:00
Rishi Gupta
1ce9a8a458
Remove confusing comments in HomepageForm and RealmCreationForm.
2016-12-26 17:49:58 -08:00
Rishi Gupta
ddf480136c
Remove unused domain argument from RealmCreationForm.
2016-12-26 17:49:58 -08:00
Rishi Gupta
ec658d038d
Refactor HomepageForm to use a Realm instead of a string_id.
2016-12-26 17:49:58 -08:00
Rishi Gupta
ea634cb982
forms: Refactor HomepageForm to be more pythonic.
2016-12-26 17:49:58 -08:00
Rishi Gupta
a87e653c32
Refactor models.completely_open to take a Realm instead of a domain.
2016-12-26 17:49:58 -08:00
Rishi Gupta
05abca0848
name_restrictions: Add a few more reserved subdomains.
2016-12-26 14:59:09 -08:00
Rishi Gupta
73a77e2da8
integrations: Fix spelling of mailchimp.
2016-12-26 14:59:09 -08:00
Juan Verhook
535ce90272
mypy: Convert zerver/views to use typing.Text.
2016-12-26 13:43:09 -08:00
Robert Hönig
ef3069a5d3
mypy: Convert the isinstances function in /zerver/lib/ to use typing.Text.
2016-12-25 10:33:45 -08:00
Robert Hönig
0917493588
mypy: Convert zerver/lib to use typing.Text.
2016-12-25 10:33:45 -08:00
Rafid Aslam
d0502537ab
API: Migrate POST `/ui_settings/change` to PATCH `/settings/ui`
2016-12-24 11:02:02 -08:00
Juanvulcano
2fd1316d70
Removed json/update_message
...
Update test_alert_words.py
Update test_messages.py
Update messages.py
2016-12-24 10:08:22 -08:00
JefftheBest1
b8ee0e91d2
Migrated json/subscribtions/remove to REST endpoint
2016-12-24 09:27:25 -08:00
Jackson
3a109a56df
Migrate notify_settings to settings/notifications
...
Remove notify_settings from legacy_url.py
2016-12-24 09:24:23 -08:00
anirudhjain75
8acdbef8aa
Eliminate legacy json/make_stream_public and json/make_stream_private URL
...
Migrate from POST to PATCH
2016-12-24 08:54:49 -08:00
Sampriti Panda
39dde79ab8
tests: Improve argument name in check_for_toggle_param_patch
2016-12-24 08:38:33 -08:00
Sampriti Panda
87e7dc6799
urls: Remove legacy URL for left_side_userlist and move over to REST PATCH endpoint
2016-12-24 08:38:33 -08:00
Jackson
333cf0f015
Migrate legacy /json/time_setting to new REST style endpoint.
2016-12-23 08:08:27 -08:00
Tommy Ip
1e0de94293
API: convert get_subscribers from legacy URL to REST endpoint.
2016-12-22 09:25:12 -08:00
Tim Abbott
7d99380488
update_display_settings: Move validation to beginning.
...
This makes the function more friendly for adding additional
functionality to.
2016-12-22 06:58:53 -08:00
Tim Abbott
0299f41c80
settings: Extract update_display_settings_backend.
2016-12-22 06:57:06 -08:00
anirudhjain75
c9db6b6658
Clean up legacy language_settings endpoint.
2016-12-22 06:54:04 -08:00
Tim Abbott
5cd6ff20b0
models: Fix bare except clause.
2016-12-22 06:46:43 -08:00
Sampriti Panda
425a55e568
settings: Implement delete avatar functionality
2016-12-21 13:35:22 -08:00
Sampriti Panda
e72cd0b1cc
urls: convert set_avatar from legacy URL to REST endpoint
2016-12-21 13:35:22 -08:00
Sampriti Panda
567fab1137
tests: Add client_put_multipart to allow for file uploads using PUT
2016-12-21 13:35:22 -08:00
Rafid Aslam
bfe84a10f0
API: Migrate POST `json/fetch_raw_message` to GET `json/messages/<id>`
2016-12-21 13:08:40 -08:00
Tim Abbott
753a25268c
help: Enable and use the markdown admonition extension.
...
This allows us to add warnings and tips in the Zulip help documents.
2016-12-21 11:01:49 -08:00
Jackson
59eb7a54e2
integrations: Add documentation for GoSquared.
2016-12-20 16:59:36 -08:00
Jackson
4ff4f12aea
integrations: Add webhook code, API endpoint, and tests for GoSquared.
2016-12-20 16:59:36 -08:00
Rafid Aslam
e49bd6a6c7
event_queue: Improve error message for ConnectionError exception
...
Improve error message for "ConnectionError:
HTTPConnectionPool(host='localhost', port=9993): Max retries
exceeded" exception.
Fixes #215 .
2016-12-20 11:49:12 -08:00
Tim Abbott
7f7cae332b
logging: Fix handling of tracebacks with no exc_info.
2016-12-20 11:49:12 -08:00
Rafid Aslam
5cc8838df4
tests: Add `assert_url_serves_contents_of_file()` to `ZulipTestCase`
...
Add `assert_url_serves_contents_of_file()` in `ZulipTestCase` class
and deduplicate some codes.
Fixes #1276 .
2016-12-20 08:06:22 -08:00
Rafid Aslam
64f595b061
tests: Add test about avatar image was uploaded properly or not
...
Add test about avatar image was uploaded properly or not in
`tests.BotTest.test_add_bot_with_user_avatar` and
`tests.BotTest.test_patch_bot_avatar`.
Add `get_test_image_file()` and `avatar_disk_path()` in
`zerver.lib.test_helpers` and deduplicate some codes.
Fixes #1276 .
2016-12-20 08:06:22 -08:00
Sampriti Panda
c0326d1938
Add lint rule to disallow python calls with versions (e.g: python2, python3)
...
Fixes #2435
2016-12-19 08:00:48 -08:00
K.Kanakhin
bae5afe458
Initialize markdown extensions once per process instead markdown engine.
...
- Markdow engine is not safe threading as global variable. In some cases
it generates previous markdown templates on concurent requests. It's
enough to generate markdown extensions per process to save time. Also
this solution is thread safe.
2016-12-16 09:04:04 -08:00
Tomasz Kolek
34511065dc
Fix tests problem with backward incompatible function name.
...
Add __init__ methods to some of testing clases with overriding method name.
2016-12-16 07:04:55 -08:00
Umair Khan
7f3fdb2663
Django 1.10: Immediately save session to mitigate race conditions.
2016-12-16 16:24:12 +05:00
paxapy
18e43895ff
streams.py: replace stream_subscribe_button with new #stream syntax.
...
Previously, we included a special subscribe button in new stream
notifications, but that had 2 problems:
(1) The subscribe button would render badly if the stream was renamed.
(2) There wasn't an easy way to look at the stream when deciding
whether to subscribe.
This fixes the second problem, but not really the first.
2016-12-15 22:43:14 -08:00
Tim Abbott
ab8cd37bd8
markdown: Fix performance probelm loading /help/.
...
Apparently, we were running the markdown processor a second time on
the HTML output of the configured markdown processor.
Fixes #2735 .
2016-12-15 21:43:56 -08:00
Tim Abbott
9d6e1030de
test_public_urls: Fix URL coverage instrumentation bug.
2016-12-15 20:58:46 -08:00
Tim Abbott
66bce06a5a
lint: Fix E127 vilations due to recent assertEquals migration.
2016-12-15 20:51:27 -08:00