Marco Burstein
34001081c2
mypy: Use Python 3 type syntax in `zerver/webhooks/yo/view.py`.
2017-12-22 08:17:00 -05:00
Marco Burstein
678b43494b
mypy: Use Python 3 type syntax in `zerver/webhooks/airbrake/view.py`.
2017-12-22 08:17:00 -05:00
Marco Burstein
9327048f6f
mypy: Use Python 3 type syntax in `zerver/lib/events.py`.
2017-12-22 08:17:00 -05:00
Marco Burstein
2acf3cf1d4
mypy: Use Python 3 type syntax in `zerver/webhooks/mention/view.py`.
2017-12-22 08:17:00 -05:00
Marco Burstein
017476cdfb
mypy: Use Python 3 type syntax in `zerver/lib/create_user.py`.
2017-12-22 08:17:00 -05:00
Marco Burstein
e7f0139f69
mypy: Use Python 3 type syntax in `zerver/webhooks/travis/view.py`.
2017-12-22 08:17:00 -05:00
Tommy Ip
9ea7b05cfe
bugdown: Rewrite markdown link to relative link conditionally.
2017-12-22 08:10:42 -05:00
Tommy Ip
efe2d497f4
bugdown: Avoid matching uri with regex.
2017-12-22 08:10:42 -05:00
Tommy Ip
9ce797d68c
bugdown: Extract rewrite_if_relative_link function.
2017-12-22 08:10:42 -05:00
Umair Khan
898acc4278
missed-message-worker: Send email through email_senders.
...
We have shifted to a generic queue to send all the emails. This queue
can retry in case of network issues; this makes sure that the emails are
always sent.
2017-12-20 19:36:27 -08:00
Umair Khan
e0f30d02f2
email-worker: Send login email through queue.
...
Fixes #7460
2017-12-20 19:36:27 -08:00
Umair Khan
68513952fb
email-worker: Create EmailSendingWorker.
...
This commit just copies all the code from MissedMessageSendingWorker
class to a new EmailSendingWorker class. All the logic to send an email
through a queue was already there. This commit only makes the logic
generic. It does so by creating a special purpose queue called
'email_senders' to send any type of email. To make
MissedMessageSendingWorker still work we derive it from
EmailSendingWorker. All the tests that were testing
MissedMessageSendingWorker now run against EmailSendingWorker.
2017-12-20 19:36:27 -08:00
Vishnu Ks
16d8244c0a
tests: Eliminate 'Sending invitation' output spam in test_signup.
...
Fixes #7563
2017-12-20 18:50:01 -08:00
neiljp (Neil Pilgrim)
25d5a2ee1c
requirements: Upgrade mypy to 0.560.
...
Fixes #7835 .
2017-12-20 18:09:36 -08:00
Rishi Gupta
c2a41c268f
models: Update Realm.get_admin_users to not use select_related().
...
None of the uses of this function in the codebase follow any of the foreign
keys of UserProfile.
2017-12-20 08:51:58 -05:00
snlkapil
1589c597d2
settings: Show local time instead of UTC in invitations tab.
2017-12-20 07:08:46 -05:00
Rishi Gupta
27a8ef86e4
actions: Add realm deactivation and reactivation to RealmAuditLog.
2017-12-19 17:46:36 -08:00
Rishi Gupta
4261307e27
emails: Clear ScheduledEmail emails on realm deactivation.
...
This only affects the invitation reminder emails; clear_scheduled_emails was
already clearing the other two types.
2017-12-19 17:46:36 -08:00
Rishi Gupta
869b4d41ef
models: Add ScheduledEmail.realm.
...
The two extra queries in the test are due to the assert in
send_future_email.
2017-12-19 17:46:36 -08:00
Rishi Gupta
87e164043f
portico: Rename plans at /plans.
2017-12-19 15:36:13 -08:00
ViRu-ThE-ViRuS
c8aadaa408
integrations: Add webhook payloads for Intercom.
2017-12-19 16:50:06 -05:00
Eeshan Garg
8936d03f3a
webhooks/gitlab: Support Merge Request Hook approved event type.
...
Such payloads are generated when a GitLab repository has merge
request approvals enabled and a project member approves a merge
request. Approving is not the same as merging.
2017-12-18 19:12:54 -05:00
Andy Perez
44e6d9b54b
testing: Add nice diffs to markdown python tests.
2017-12-18 19:03:38 -05:00
Andy Perez
695affd44e
node tests: Compare markdown using semantic equivalence.
...
Fix #4367
2017-12-18 19:03:38 -05:00
Greg Price
776af2e248
push notifs: Simplify content-truncation code slightly.
...
This should be a pure refactor.
2017-12-18 15:32:56 -08:00
Greg Price
014900c2e5
push notifs: Include same stream and sender info on GCM as on APNs.
...
This takes the information added to APNs payloads by #7080 , and adds
to our GCM payloads the parts that it didn't already have.
2017-12-18 15:32:56 -08:00
Greg Price
e077d6fc74
push notifs: Factor out common payload fields for APNs and GCM.
...
This should be a pure refactor, producing exactly the same payloads.
2017-12-18 15:32:56 -08:00
Eeshan Garg
21008a49b9
webhooks/gci: Support approve-pending-pc event type.
...
This event is generated when a mentor approves a task but
GCI is still waiting on a student's parental consent.
2017-12-18 10:00:20 -08:00
Callum Fraser
a61a7f3965
mypy: Use Python 3 type syntax in zerver/webhooks/pingdom/view.py.
2017-12-18 11:32:52 -05:00
Callum Fraser
4508264f25
mypy: Use Python 3 type syntax in zerver/webhooks/opsgenie/view.py.
2017-12-18 11:32:52 -05:00
Callum Fraser
52f0c4472e
mypy: Use Python 3 type syntax in zerver/webhooks/ifttt/view.py.
2017-12-18 11:32:52 -05:00
Callum Fraser
23b29212a3
mypy: Use Python 3 type syntax in zerver/webhooks/greenhouse/view.py.
2017-12-18 11:32:52 -05:00
Callum Fraser
403ea486e4
mypy: Use Python 3 type syntax in zerver/webhooks/gogs/view.py.
2017-12-18 11:32:52 -05:00
Callum Fraser
33e1879295
mypy: Use Python 3 type syntax in zerver/webhooks/beanstalk/view.py.
2017-12-18 11:32:52 -05:00
Callum Fraser
c55685063f
mypy: Use Python 3 type syntax in zerver/webhooks/appfollow/view.py.
2017-12-18 11:32:52 -05:00
Callum Fraser
b0c5eb5482
mypy: Use Python 3 type syntax in zerver/views/typing.py.
2017-12-18 11:32:52 -05:00
Callum Fraser
0438da5c16
mypy: Use Python 3 type syntax in zerver/lib/avatar.py.
2017-12-18 11:32:52 -05:00
civilnewsnetwork
0ce8b69fd6
Renamed 'Register' to 'Sign up' including translations
2017-12-18 10:02:15 -05:00
Alena Volkova
3cfb2d57b2
tests: Refactor the method for encoding credentials.
2017-12-18 09:24:09 -05:00
Alena Volkova
39915d9835
tests: Replace all get_auth usages with auth methods and delete it.
2017-12-18 09:24:09 -05:00
Alena Volkova
90aa6c627e
tests: Replace api_auth usages with auth methods in zerver/webhooks.
2017-12-18 09:24:09 -05:00
Alena Volkova
26eb23afc7
tests: Replace api_auth usages with auth methods in zerver/tests.
2017-12-18 09:24:09 -05:00
Alena Volkova
4a303d1778
tests: Add auth methods that will replace passing credentials.
2017-12-18 09:24:09 -05:00
Sivagiri
3792bd2d69
integrations: Add webhook payloads for Groove.
2017-12-14 18:54:22 -05:00
Andy Perez
f0190333b8
bugdown: Remove whitespace strip from inline code.
...
Fixes #4507
2017-12-14 07:48:10 -05:00
Umair Khan
07961611b2
test_create_update_and_remove_default_stream_group: Fix flake.
2017-12-14 05:35:54 -05:00
Umair Khan
b98c5c6d45
test_multi_user_subscription: Fix flake.
2017-12-14 05:35:54 -05:00
Vishnu Ks
bc37317914
invites: Differentiate users invited as admin by showing bolt icon.
2017-12-13 15:12:21 -06:00
Greg Price
17a6632c43
zerver/views: Revert to Python 2 typing syntax for now (storage, streams).
...
This reverts commit 620b2cd6e
.
Contributors setting up a new development environment were getting
errors like this:
```
++ dirname tools/do-destroy-rebuild-database
[...]
+ ./manage.py purge_queue --all
Traceback (most recent call last):
[...]
File "/home/zulipdev/zulip/zproject/legacy_urls.py", line 3, in <module>
import zerver.views.streams
File "/home/zulipdev/zulip/zerver/views/streams.py", line 187, in <module>
method_kwarg_pairs: List[FuncKwargPair]) -> HttpResponse:
File "/usr/lib/python3.5/typing.py", line 1025, in __getitem__
tvars = _type_vars(params)
[...]
File "/usr/lib/python3.5/typing.py", line 277, in _get_type_vars
for t in types:
TypeError: 'ellipsis' object is not iterable
```
The issue appears to be that we're using the `typing` module from the
3.5 stdlib, rather than the `typing=3.6.2` in our requirements files,
and that doesn't understand the `Callable[..., HttpResponse]` that
appears in the definition of `FuncKwargPair`.
Revert for now to get provision working again; at least one person
reports that reverting this sufficed. We'll need to do more testing
before putting this change back in.
2017-12-13 10:20:11 -08:00
rht
620b2cd6e2
zerver/views: Use Python 3 syntax for typing (storage, streams).
2017-12-12 17:40:50 -08:00