Tim Abbott
54022ac204
Fix unnecessary whitespace between , and ).
2016-05-04 14:16:53 -07:00
Ashish Kumar
48be2e33f8
Delete old route for /json/get_public_streams.
2016-04-29 12:57:57 -07:00
Antek Grzanka
646ea3214a
Add Taiga integration.
2016-04-28 13:44:53 -07:00
Vladislav Manchev
f5e6176aea
Add custom realm emoji UI to administration page.
2016-04-26 13:15:54 -07:00
Tomasz Kolek
5fbda3a9c1
Add codeship integration.
2016-04-26 09:54:01 -07:00
David Payne
8c62a27769
Add teamcity webhook integration.
...
This integration relies on the Teamcity "tcWebHooks" plugin which is
available at
https://netwolfuk.wordpress.com/category/teamcity/tcplugins/tcwebhooks/
It posts build fail and success notifications to a stream specified in
the webhook URL.
It uses the name of the build configuration as the topic.
For personal builds, it tries to map the Teamcity username to a Zulip
username, and sends a private message to that person.
2016-04-26 09:45:26 -07:00
Tomasz Kolek
c74483e69e
github_webhook: change double quotes to single quotes for consistency.
2016-04-21 17:04:25 -07:00
Tomasz Kolek
09e40b27c2
github_webhook: throw an exception on unhandled events types.
2016-04-21 17:03:58 -07:00
Tomasz Kolek
fafc9cb742
github_webhook: remove redundant parenthesis.
2016-04-21 17:02:49 -07:00
Tomasz Kolek
43b0cfaebc
github_webhook: Use more one-line pythonic assignments.
2016-04-21 17:00:47 -07:00
Tomasz Kolek
decb686255
github_webhook: factor out is_test_repository function.
2016-04-21 16:57:19 -07:00
Tomasz Kolek
e1079d8475
github_webhook: extract the constants to the top of the file.
2016-04-21 16:56:44 -07:00
Tim Abbott
8a278cbe3a
Switch to using a Zulip version of @login_required.
...
Currently the code is the unmodified Django upstream implementation;
this commit is preparation for modifying it.
2016-04-21 14:59:39 -07:00
Tim Abbott
49799440a4
Replace use of django-guardian with fields on UserProfile.
...
As documented in https://github.com/zulip/zulip/issues/441 , Guardian
has quite poor performance, and in fact almost 50% of the time spent
running the Zulip backend test suite on my laptop was inside Guardian.
As part of this migration, we also clean up the old API_SUPER_USERS
variable used to mark EMAIL_GATEWAY_BOT as an API super user; now that
permission is managed entirely via the database.
When rebasing past this commit, developers will need to do a
`manage.py migrate` in order to apply the migration changes before the
server will run again.
We can't yet remove Guardian from INSTALLED_APPS, requirements.txt,
etc. in this release, because otherwise the reverse migration won't
work.
Fixes #441 .
2016-04-20 21:51:52 -07:00
David Payne
ece96ef3fe
Jira's "issue created" message should @-notify the assignee.
2016-04-20 10:54:30 -07:00
Ashish
1bf644369f
Delete old route for json/update_active_status.
2016-04-11 21:38:23 -07:00
Ashish
78b9f45bf7
Delete old route for json/update_pointer.
2016-04-11 21:38:23 -07:00
Ashish
9429358795
Delete old route for /json/get_profile.
2016-04-11 21:38:23 -07:00
Ashish
42fe918138
Delete old route for json/get_old_messages.
2016-04-11 21:38:23 -07:00
Ashish
cfefc94200
Delete old route for json/set_alert_words.
2016-04-11 21:38:23 -07:00
Ashish
c0a218edfc
Delete old route for /json/update_message_flags.
2016-04-11 21:38:23 -07:00
Ashish
dac4e58b91
Changes REST API backend route for /json/change_enter_sends.
2016-04-11 21:11:51 -07:00
Anindya Chakravarti
f3d03d89b4
Add integration for Yo App.
...
[includes some small tweaks by tabbott]
2016-04-08 11:02:10 -07:00
Tomasz Kolek
44ed9da7f0
Add pingdom integration.
2016-04-08 10:36:29 -07:00
Varshit
4e1060076d
Purge 'from typing import *' from zerver/.
...
This is a partial implementation of #636 .
2016-04-07 14:07:07 -07:00
Eklavya Sharma
5f03c1444e
Remove duplicate module zerver/views/webhooks.py.
...
Also move type annotations from zerver/views/webhooks.py to
appropriate files in zerver/views/webhooks.py.
2016-04-07 12:37:22 +05:30
Tim Abbott
ec7bb0b011
Add PEP-484 type annotations to zerver/views/.
2016-04-03 15:40:23 -07:00
Ryan Moore
2fe0700f55
Update memcache -> remote cache in inline documentation.
2016-03-31 12:56:42 -07:00
Eklavya Sharma
9e3c3e14f5
Partially apply Python 3 libmodernize.fixes.fix_dict_six.
...
Refer to #256
2016-03-19 15:52:58 -07:00
Tomasz Kolek
3e3a224607
Moved pagerduty webhook into its own file pagerduty.py
2016-03-14 20:44:50 -07:00
Tomasz Kolek
05dce01cee
Moved travis webhook into its own file travis.py
2016-03-14 20:44:45 -07:00
Tomasz Kolek
f640470fa4
Moved zendesk webhook into its own file zendesk.py
2016-03-14 20:44:42 -07:00
Tomasz Kolek
b3e5a256f5
Moved freshdesk webhook into its own file freshdesk.py
2016-03-14 20:44:41 -07:00
Tomasz Kolek
021c66fd9a
Moved stash webhook into its own file stash.py
2016-03-14 20:44:41 -07:00
Tomasz Kolek
7a4c9d243f
Moved deskdotcom webhook into its own file deskdotcom.py
2016-03-14 20:44:41 -07:00
Tomasz Kolek
087bd72814
Moved bitbucket webhook into its own file bitbucket.py
2016-03-14 20:44:41 -07:00
Tomasz Kolek
93b52f6f8e
Moved newrelic webhook into its own file newrelic.py
2016-03-14 20:44:41 -07:00
Tomasz Kolek
a2b31da045
Moved pivotal webhook into its own file pivotal.py
2016-03-14 20:44:41 -07:00
Tomasz Kolek
5ade895936
Moved jira webhook into its own file jira.py
2016-03-14 20:44:41 -07:00
Tomasz Kolek
a0512244b3
Moved beanstalk webhook into its own file beanstalk.py
2016-03-14 20:44:41 -07:00
Tomasz Kolek
6a3ab0605d
Moved github webhook into its own file github.py
2016-03-14 20:44:41 -07:00
Tomasz Kolek
8a0ed47751
moved webhooks to python package
2016-03-14 20:44:41 -07:00
Reid Barton
6c6dc1d81d
Allow create user API to create any user in an open realm.
2016-02-07 19:19:19 -08:00
Reid Barton
9735025167
Refactor logic around restricted_to_domain.
...
Add a function email_allowed_for_realm that checks whether a user with
given email is allowed to join a given realm (either because the email
has the right domain, or because the realm is open), and use it
whenever deciding whether to allow adding a user to a realm.
This commit is not intended to change any behavior, except in one case
where the Zulip realm's domain was not being converted to lowercase.
2016-02-07 10:54:52 -05:00
Reid Barton
0755b51c2e
Move create_user_backend into zerver.views.users.
...
Commit aa33a0da
moved users views into their own file, but missed this one.
2016-02-07 10:54:48 -05:00
Reid Barton
4e5f18407d
Add comment in create_user_backend about not needing to invite users first.
2016-02-07 10:52:50 -05:00
Tim Abbott
620411c0ea
Fix type mismatches in streams.py.
2016-02-03 19:25:19 -08:00
Tim Abbott
6c5cee2400
Cleanup 500s due to Google oauth2 errors.
...
These are user errors, albeit somewhat interesting ones, so they
should be logged (and return a user error response), not throw an
exception.
2016-02-02 23:08:20 -08:00
Tim Abbott
aad3bff193
Harden style rule for % comprehensions and fix existing errors.
2016-02-02 23:08:19 -08:00
Tim Abbott
5bacda3662
python3: Fix usage of .keys()/.values() to handle iterators.
...
This fixes the places where we use the result of .keys(), .items(),
and .values() that wouldn't work with an iterator to wrap them with
list().
2016-01-26 21:11:25 -08:00