Abijith10
c4420ba0c6
mypy: Use Python 3 type syntax in zerver/webhooks/librato/view.py.
2018-01-23 08:37:56 -08:00
Tim Abbott
73a668e7ae
python: Sort imports in webhooks.
2017-11-15 15:43:10 -08:00
rht
bafba95eb7
Text-wrap the remaining long lines exceeding 110.
2017-11-15 10:58:03 -08:00
rht
04eaec64f0
zerver/webhooks: Text-wrap long lines exceeding 110.
2017-11-07 17:24:09 -08:00
rht
ec5120e807
refactor: Remove six.moves.zip import.
2017-11-07 10:46:42 -08:00
rht
19bd335cbb
Change urllib import to be Python 3-specific.
2017-11-07 10:46:42 -08:00
rht
8990b1046d
zerver: Remove inheritance from object.
2017-11-06 08:53:48 -08:00
rht
969cc506d2
zerver/webhooks: Use python 3 syntax for typing.
...
Tweaked by tabbott to fix various line-wrapping issues.
2017-11-04 19:40:32 -07:00
Eeshan Garg
aaaed74c3d
webhooks: Import REQ, has_request_variables from zerver.lib.request.
...
We now import REQ and has_request_variables from zerver.lib.request,
which is where these methods are defined.
Fixes #7195 .
2017-11-02 14:40:55 -07:00
neiljp (Neil Pilgrim)
7d8de37299
mypy: Specify librato Callable type.
2017-10-31 00:03:35 -07:00
rht
c4fcff7178
refactor: Replace super(.*self) with Python 3-specific super().
...
We change all the instances except for the `test_helpers.py`
TimeTrackingCursor monkey-patching, which actually needs to specify
the base class.
2017-10-30 14:30:25 -07:00
Eeshan Garg
86c2c7ad34
webhooks: Migrate to check_send_stream_message.
...
This commit migrates all webhooks to use check_send_stream_message
instead of check_send_message. The only two webhooks that still
use check_send_message are our yo and teamcity webhooks. They
both use check_send_message for private messages.
2017-09-30 17:48:55 -07:00
rht
7115a29bee
zerver/webhooks: Remove absolute_import.
2017-09-27 10:00:39 -07:00
Eeshan Garg
0b1296ed83
webhooks/librato: Migrate docs to Markdown.
2017-06-13 15:33:21 -07:00
Eeshan Garg
597db11a98
webhooks: Rename webhook fixtures to only include event type.
...
All webhook fixtures have now been renamed from
<webhook_name>/fixtures/<webhook_name>_<event_type>.json to
<webhook_name>/fixtures/<event_type>.json.
2017-05-13 20:07:40 -02:30
Eeshan Garg
e87e246fcb
zerver/decorator: Set request.client in api_key_only_webhook_view.
...
Previously, api_key_only_webhook_view passed 3 positional arguments
(request, user_profile, and client) into a function. However, most
of our other auth decorators only pass 2 positional arguments. For
the sake of consistency, we now make api_key_only_webhook_view set
request.client and pass only request and user_profile as positional
arguments.
2017-05-01 23:44:07 -07:00
Eeshan Garg
aa12002be7
webhooks: Move all fixtures to zerver/webhooks/<webhook_name>/fixtures.
...
All webhook fixtures in zerver/fixtures/<webhook_name> have now
been moved to dedicated webhook-specific directories under
zerver/webhooks/<webhook_name>/fixtures, where <webhook_name> is
the name of the webhook.
2017-04-28 11:07:03 -07:00
Eeshan Garg
dded73ec6f
webhooks: Stop overriding build_webhook_url for URL query parameters.
2017-04-21 22:06:11 -02:30
hackerkid
55c3d12078
Replace timezone.utc with timezone_utc.
2017-04-16 12:28:56 -07:00
Raghav Jajodia
a3a03bd6a5
mypy: Added Dict, List and Set imports.
...
Fixed mypy errors associated with the upgrade.
2017-03-04 14:33:44 -08:00
Rishi Gupta
a1813e004e
Remove local datetimes from webhook messages.
...
"Local" datetimes are local to the server (or rather, are using
settings.TIME_ZONE), which in most cases is not what the recipient of the
message is expecting.
2017-03-03 19:00:02 -08:00
Tomasz Kolek
6e6cbeb89d
Split webhooks doc and move to particular directories.
2017-01-26 11:56:45 -08:00
Tomasz Kolek
7de45951e2
Make webhooks as separate modules with view and tests.
...
Create python packege for every webhook with view.py and tests.py
2017-01-25 23:14:19 -08:00