Tim Abbott
3f8d4193da
lint: Fix % comprehensions being used without a tuple.
2017-01-09 11:45:11 -08:00
Tim Abbott
f3b5683e77
views: Rename __init__.py to zerver.views.registration.
...
This completes the cleanup process of eliminating functions in the
root zerver/views/__init__.py module.
2017-01-08 16:21:15 -08:00
Tim Abbott
48f1b4e1ab
views: Extract zerver.views.muting.
2017-01-08 16:21:15 -08:00
Tim Abbott
7beff88f5f
views: Extract zerver/views/home.py.
...
This is a significant piece of the remaining effort required to
eliminate the catch-all zerver/views/__init__.py.
2017-01-08 16:21:15 -08:00
Harshit Bansal
ceb636dbd9
Manage allowed domains from admin settings.
...
Fixes : #1867 .
2017-01-06 12:03:31 -08:00
Rishi Gupta
fdb47fc5ee
find my team: Canonicalize URL route.
...
Change URL endpoint to use underscores, not dashes, and change name to use
the full path to the view function. See e.g. /create_realm.
2017-01-06 10:42:28 -08:00
Rishi Gupta
757297b72f
Move find_my_team functions out of views/auth.py
...
The general __init__ file is a more natural home, and where other endpoints
(e.g. create_realm, etc) live.
Also changes forms.ValidationError to django.core.exceptions.ValidationError
to match the rest of the file/codebase.
2017-01-06 10:42:28 -08:00
Rishi Gupta
e481fef9e1
Move find_team_email subject to a templates/ file.
2017-01-06 10:42:28 -08:00
Rishi Gupta
7cb5d26999
Rename find_team_email_html.txt to find_team_email.html.
2017-01-06 10:42:28 -08:00
Jackson
032b5e9db9
integrations: Add webhook code, API endpoint, and tests for Delighted.
2017-01-05 10:47:30 -08:00
Vamshi Balanaga
1b2472b5cb
integrations: Modify solano labs integration.
...
This adds support for the "running" status and adds a test fixture.
2017-01-05 10:19:32 -08:00
Tomasz Kolek
6d1cb44bd4
bitbucket2: Add additional debugging info about unsupported keys.
2017-01-04 17:29:49 -08:00
Rishi Gupta
2b0a7fd0ba
Rename models.get_realm_by_string_id to get_realm.
...
Finishes the refactoring started in c1bbd8d
. The goal of the refactoring is
to change the argument to get_realm from a Realm.domain to a
Realm.string_id. The steps were
* Add a new function, get_realm_by_string_id.
* Change all calls to get_realm to use get_realm_by_string_id instead.
* Remove get_realm.
* (This commit) Rename get_realm_by_string_id to get_realm.
Part of a larger migration to remove the Realm.domain field entirely.
2017-01-04 17:12:23 -08:00
Umair Khan
f208813ea3
Add Find My Team feature.
2017-01-03 21:33:42 -08:00
Vamshi Balanaga
234310bfd1
integrations: Add webhook code, API endpoint, and tests for solano labs.
2017-01-03 20:18:34 -08:00
Rishi Gupta
cf762eaf84
Change X.realm.id to X.realm_id across codebase.
...
This makes it more clearly the pattern in the Zulip codebase, and thus
decreases the risk of accidentally doing database queries.
2017-01-03 16:46:26 -08:00
Rishi Gupta
130f981901
messages.send_message_backend: Take a realm_str instead of a domain.
2017-01-03 16:46:15 -08:00
Rishi Gupta
b206d6f251
message.py: Change domain to realm_id in render_markdown args.
2017-01-03 16:46:14 -08:00
Rishi Gupta
c6e12e74be
Change domain to realm_id in bugdown and realm filter dicts and caches.
2017-01-03 16:25:20 -08:00
Tim Abbott
a61386cbbc
github: Fix GitHub integration CSRF issue.
...
The new GitHub dispatcher integration was apparently totally broken,
because we hadn't tagged the new dispatcher endpoint as exempt from
CSRF checking. I'm not sure why the test suite didn't catch this.
2016-12-30 20:31:08 -08:00
Tim Abbott
5c0730d7ca
reactions: Fix check for valid emoji.
...
The previous logic did not correctly handle the case where there were
realm emoji (non-realm emoji would be inaccessible).
2016-12-30 17:51:31 -08:00
Tim Abbott
0ddaa13eeb
lint: Fix indentation error in user_settings.py.
2016-12-30 14:31:04 -08:00
Jackson
aeac3848c8
integrations: Add webhook code, API endpoint, and tests for HelloSign.
2016-12-30 14:19:31 -08:00
Prabod Rathnayaka
6f087e468e
Add setting hiding private message content in desktop notifications.
...
Tweaked by tabbott to fix a refactoring bug, set the default to True,
fix the real-time sync, and add tests for this.
Fixes #2355 .
2016-12-30 14:10:34 -08:00
Tomasz Kolek
56f530331d
Add default topics mechanism to stripe integration.
...
Fixes : #2586 .
2016-12-27 16:27:54 -08:00
Tomasz Kolek
02bf4646fc
Refactor transfer part of stripe integration.
2016-12-27 16:27:54 -08:00
Tomasz Kolek
6dca1ecc40
Refactor order part of stripe integration.
2016-12-27 16:27:54 -08:00
Tomasz Kolek
a75d94d3cf
Refactor invoice part of stripe integration.
2016-12-27 16:27:54 -08:00
Tomasz Kolek
e843af5d27
Refactor customer part of stripe integration.
2016-12-27 16:27:54 -08:00
Tomasz Kolek
d1c486b8e9
Refactor charge part of stripe integration.
2016-12-27 16:27:54 -08:00
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
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
a87e653c32
Refactor models.completely_open to take a Realm instead of a domain.
2016-12-26 17:49:58 -08:00
Juan Verhook
535ce90272
mypy: Convert zerver/views to use typing.Text.
2016-12-26 13:43:09 -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
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
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