Marco Matarazzo
a6b83def8f
webhooks/trello: Support updating Card descriptions.
...
We now support events that add, change or remove Trello Card
descriptions.
Minor fixes by eeshangarg.
2017-09-28 10:58:07 -07:00
Marco Matarazzo
765f8e7d41
webhooks/trello: Display Card comment's text in notifications.
...
Now, when someone makes a comment on a Trello Card, the text
of the comment is quoted in the notification.
Minor fixes by eeshangarg.
2017-09-28 10:58:07 -07:00
rht
4975122338
zerver/migrations: Remove from __future__ import *.
2017-09-28 10:16:18 -07:00
rht
426548097e
zerver/tornado: Remove from __future__ import *.
2017-09-28 10:14:03 -07:00
rht
9f944d9449
zerver/lib: Remove from __future__ import *.
2017-09-28 10:14:03 -07:00
Greg Price
7b8f725707
APNs: Accept 1.6-format payloads in bouncer.
...
This is just enough of a quick fix to work with a stock Zulip 1.6
server. We should really also make this robust to arbitrary input
from the remote Zulip server, even though it'll be a little tedious.
2017-09-28 10:01:16 -07:00
Tim Abbott
0744961afe
docs: Add more comprehensive documentation on error reporting.
...
Fixes #2232 .
2017-09-27 19:47:08 -07:00
rht
241e318eba
zerver/tornado: remove `import six`.
2017-09-27 19:10:28 -07:00
rht
035ed93111
zerver/lib: remove `import six`.
2017-09-27 19:10:28 -07:00
rht
c2290b0328
Remove the rest of print_function.
2017-09-27 18:06:47 -07:00
rht
32650c8fdc
zerver/management: Remove print_function.
2017-09-27 18:05:45 -07:00
rht
26f5d9a32c
zerver/tests: Remove print_function.
2017-09-27 18:05:45 -07:00
rht
b8aa92194c
zerver/tornado: Remove print_function.
2017-09-27 18:05:45 -07:00
rht
2e12fe5e2e
zerver/lib: Remove print_function.
2017-09-27 18:05:45 -07:00
rht
e4c824ed61
zerver/views: Remove print_function.
2017-09-27 18:05:45 -07:00
Vishnu Ks
17cc32f168
settings: Show error or success message when deleting uploaded files.
...
Fixes #6519
2017-09-27 17:50:22 -07:00
Vishnu Ks
94e099eaab
auth: Make multiuse invite link work with oAuth2.
...
This works by attaching to the user's session the multi-use invitation
key, allowing that to be used in the Google/GitHub auth flows.
2017-09-27 17:47:40 -07:00
Steve Howell
de0b47fd4e
Always notify service bots about stream mentions.
...
Before this change, we were only triggering service bots
for stream mentions when the bot was subscribed to the
stream.
2017-09-27 17:22:12 -07:00
rht
daef6a7dbc
zerver/tests: Remove `import six`.
2017-09-27 17:07:40 -07:00
rht
a7803cbf1b
zerver/tornado: remove `import six`.
...
Tweaked by tabbott to remove the changes in
zerver/tornado/handlers.py, which are hard to test.
2017-09-27 17:07:08 -07:00
rht
0fa3c1d876
zerver/management: Remove `import six`.
2017-09-27 17:06:16 -07:00
rht
2ae47525d3
zerver/worker: Remove `import six`.
2017-09-27 17:06:16 -07:00
rht
106375bd68
zerver/views: remove `import six`.
2017-09-27 17:03:03 -07:00
Tim Abbott
28eaf5620e
emails: Use common_context for email change notifications.
...
This also lets us remove `realm_uri`.
2017-09-27 16:48:18 -07:00
Vishnu Ks
dfaa939af2
emails: Store the compiled emails in separate directory.
2017-09-27 16:48:18 -07:00
Vishnu Ks
caaa90f22d
emails: Extract CSS from email_base_default.
2017-09-27 16:48:18 -07:00
Vaida Plankyte
207e06d558
frontend: Add header & body illustrations to emails.
2017-09-27 16:32:43 -07:00
Steve Howell
1b518f1983
Return mentioned users in get_user_info_for_message_updates().
...
The dictionary result for get_user_info_for_message_updates()
now has a `mention_user_ids` field that is a set of user ids
who were mentioned in a message.
2017-09-27 16:01:50 -07:00
Steve Howell
646abb57b7
refactor: Extract get_user_info_for_message_updates.
...
We'll want to expand this to get users that were mentioned in
the prior message, but this commit is just a refactoring.
2017-09-27 16:01:50 -07:00
Steve Howell
5abf52de71
Extract get_idle_userids().
...
This function will help us send missed-message mails for
updates, in a future commit.
2017-09-27 16:01:50 -07:00
Tim Abbott
06e6b3abe1
event_queue: Fixed stream_push_notify code path in missedmessage_hook.
...
This finishes implementing the stream_push_notify feature, which
previously didn't work if you were not idle when the message was sent.
2017-09-27 15:57:48 -07:00
Tim Abbott
2b1ea1555c
event_queue: Simplify API of maybe_enqueue_notifications.
2017-09-27 15:57:47 -07:00
Tim Abbott
fa461c6a4f
missedmessage_hook: Fix name of ClientDescription argument.
...
This was previously incorrectly named to suggest it was the EventQueue
object.
2017-09-27 15:57:47 -07:00
Tim Abbott
d6732d0781
event_queue: Fix handling of private messages in missedmessage_hook.
...
Previously, we didn't correctly trigger email/push notifications for
PMs in these cases.
2017-09-27 15:57:47 -07:00
Tim Abbott
bfa8f0efdb
tests: Add an end-to-end test for missedmessage_hook.
...
This checks what arguments it passes into the enqueuing function.
Note, however, that the arguments are wrong for various cases, we'll
update the tests as we fix those bugs.
2017-09-27 15:57:47 -07:00
Tim Abbott
71fc8363b4
tests: Add a test suite for maybe_enqueue_notifications.
...
This ensures that as we expand the logic for under what circumstances
email and push notifications should be sent, we can be confident about
this code path always doing the right thing.
2017-09-27 15:55:29 -07:00
Tim Abbott
830d3e8d07
event_queue: Use maybe_enqueue_notifications in missedmessage_hook.
...
This fixes a problem introduced in the recent refactoring where
`triggers` would not be set correctly when a push or email
notification was triggered by missedmessage_hook.
Fixes #6612 .
2017-09-27 15:55:29 -07:00
Tim Abbott
9749826e9c
event_queue: Refactor code for checking if a message was mentioned.
...
Now, the two code paths do the same thing for this check.
It seems like there may be more work to do here, in that
wildcard_mentioned messages seem to not be eligible for sending
email/push notifications. We probably want to add some logic there
for the user doing the mention to control whether or not it does.
2017-09-27 15:55:29 -07:00
Tim Abbott
f68089fbe1
event_queue: Extract maybe_enqueue_notifications.
...
Conceptually, this code path should be shared between the
process_message handler and the garbage-collection hook.
2017-09-27 15:55:29 -07:00
Tim Abbott
c3911e3fb6
test_classes: Improve error handling for send_message.
2017-09-27 15:55:29 -07:00
rht
2949d1c1e8
zerver: Remove the rest of absolute_import.
2017-09-27 10:02:39 -07:00
rht
7115a29bee
zerver/webhooks: Remove absolute_import.
2017-09-27 10:00:39 -07:00
rht
e239e97351
zerver/management: Remove absolute_import.
2017-09-27 10:00:39 -07:00
rht
41d8db373a
zerver/worker: Remove absolute_import.
2017-09-27 10:00:39 -07:00
rht
1e87a4b68c
zerver/tests: Remove absolute_import.
2017-09-27 10:00:39 -07:00
rht
74fd3d9f31
zerver/tornado: Remove absolute_import.
2017-09-27 10:00:39 -07:00
rht
f43e54d352
zerver/lib: Remove absolute_import.
2017-09-27 10:00:39 -07:00
rht
15ca13c8de
zerver/views: Remove absolute_import.
2017-09-27 10:00:39 -07:00
Tim Abbott
f0f0176517
test_auth_backends: Clean up Google auth subdomains handling.
...
This makes GoogleSubdomainLoginTest consistently access subdomains the
standard way, replacing the original hacky approach it had that
predated the library.
2017-09-26 22:20:07 -07:00
Tim Abbott
1c25bb5eba
auth: Fix typo in invalid subdomain logging.
2017-09-26 22:20:05 -07:00