Commit graph

288 commits

Author SHA1 Message Date
neiljp (Neil Pilgrim) fc416082aa zulip: Update setup.py to install matrix bridge & add dependencies.
Dependencies added:
* matrix_client: for matrix bridge itself;
* configparser: for python2 compatibility.
2018-08-08 17:26:15 -07:00
neiljp (Neil Pilgrim) ec9f72f516 matrix bridge: Add optional from-zuliprc to use with write-sample-config.
If specified, the new option uses the information to pre-populate the
sample configuration file.
2018-08-08 17:26:15 -07:00
Yago González 6f74d5414a api: Implement POST /messages/<message_id>/reactions. 2018-08-08 17:23:21 -07:00
Yago González 49e919ac3a api: Implement DELETE /messages/<message_id>/reactions. 2018-08-08 17:23:21 -07:00
Yago González 0ca25af06e api: Implement POST /user_groups/create. 2018-08-08 17:22:35 -07:00
Yago González 2f463e2a88 api: Implement POST /users/me/presence. 2018-08-08 17:22:05 -07:00
neiljp (Neil Pilgrim) 8b4f23d6aa matrix tests: Add test for zulip-to-matrix messages. 2018-08-03 16:16:40 -07:00
neiljp (Neil Pilgrim) 4b50ea2569 matrix tests: Refactor zulip message validity tests. 2018-08-03 16:16:40 -07:00
neiljp (Neil Pilgrim) 02799315ea matrix tests: Add zulip message validity failure tests. 2018-08-03 16:16:40 -07:00
neiljp (Neil Pilgrim) 1e7b5ee5f2 matrix tests: Add zulip message validity success test. 2018-08-03 16:16:40 -07:00
neiljp (Neil Pilgrim) e693c25abc matrix tests: Add test for sample config generation. 2018-08-03 16:16:40 -07:00
neiljp (Neil Pilgrim) c692c4712a matrix tests: Refactor running script into helper function. 2018-08-03 16:16:40 -07:00
neiljp (Neil Pilgrim) fd66eb61c7 matrix tests: Add minimal help test for no-args and with -h. 2018-08-03 16:16:40 -07:00
Tim Abbott 6d8ac7c3c0 api: Check for BAD_EVENT_QUEUE_ID code.
This is the best way to do this check, since it isn't subject to i18n
modifying the strings.  The server feature was originally introduced
in zulip/zulip commit 709c3b50fcba333740bb337bac69a801dbbdc4ee.

Since it's only 1 year old and the outcome is quite bad if this check
weren't present, we preserve support for older servers.
2018-08-02 15:59:52 -07:00
Eeshan Garg 1127f973aa pypi: Release version 0.5.2. 2018-07-26 21:19:12 -02:30
Yago González 91135fca09 api: Implement POST /users/me/subscriptions/properties. 2018-07-13 01:10:58 +05:30
Yago González 04d6c58cc4 api: Add example for managing alert words.
This example makes use of get_alert_words, add_alert_words and
remove_alert_words, three methods that interact with the
/users/me/alert_words REST API endpoint.
2018-07-12 16:40:58 -02:30
Yago González 3070106365 api: Implement DELETE /users/me/alert_words. 2018-07-12 16:40:58 -02:30
Yago González c661d78b63 api: Implement POST /users/me/alert_words. 2018-07-12 16:40:58 -02:30
Yago González c057e0df14 api: Implement GET /users/me/alert_words. 2018-07-12 16:40:58 -02:30
Yago González f6646f9cba api: Implement PATCH /users/me/subscriptions/muted_topics. 2018-07-09 15:05:04 -02:30
Yago González 2da5fb3484 api: Rename update-flags to update-message-flags.
Followup for #449.
2018-07-04 18:14:48 +02:00
Yago González 4d9b3226fd api: Implement GET /realm/emoji. 2018-07-03 20:01:56 -02:30
Yago González a96c3f0db0 api: Implement POST /messages/flags. 2018-07-03 11:03:26 -07:00
Eeshan Garg c2fdd547f7 PyPI: Release 0.5.1. 2018-07-01 12:05:59 -02:30
Shubham Dhama 918e63a220 zulip_bots: Fix get_storage request arguments in StateHandler. 2018-07-01 08:01:18 -04:00
Yago González f8fd7b6fbf api: Implement GET /messages/<message_id>/history. 2018-06-28 20:26:06 -02:30
Yago González 2da831bbe1 api: Fix mypy annotations for delete_message. 2018-06-28 20:26:06 -02:30
Yago González e6972bcbb9 api: Add extra arguments to get-messages example. 2018-06-26 19:46:22 -02:30
Yago González 0e39ca5236 api: Remove recent-messages example.
The GET /messages action has been recently implemented into our
bindings. Therefore this example has been superseded by get-messages,
which is capable of fetch messages in a more fine-grained way.
2018-06-26 19:46:22 -02:30
Yago González 38f3e1a9f5 api: Implement GET /messages/<message_id>. 2018-06-26 19:42:49 -02:30
Yago González e2f379675b api: Implement DELETE /messages/<message_id>. 2018-06-26 19:40:27 -02:30
Yago González 005829192e api: Implement PATCH /streams/<stream_id>. 2018-06-26 19:38:44 -02:30
Yago González 36566c26c1 api: Implement GET /messages. 2018-06-21 15:51:53 -02:30
Eeshan Garg c636a5ac49 pypi: Release 0.5.0. 2018-06-07 12:05:18 -02:30
neiljp (Neil Pilgrim) 97b2a12d21 matrix bridge: Adjust to python2-compatible type annotations. 2018-06-04 15:55:14 -07:00
neiljp (Neil Pilgrim) 2703d4c720 matrix bridge: Update & improve README.md. 2018-06-04 15:55:14 -07:00
neiljp (Neil Pilgrim) 43e80b42da matrix bridge: Add write-sample-config option & remove sample config. 2018-06-04 15:55:14 -07:00
neiljp (Neil Pilgrim) 78c64d069b matrix bridge: Add description of script & some useful tips. 2018-06-04 15:55:14 -07:00
neiljp (Neil Pilgrim) 70ba4c9035 matrix bridge: Improve error handling by exception translation.
Also:
* introduces two internal Bridge_*Exception classes.
* import matrix_client.errors instead of matrix_client.api.
2018-06-04 15:55:14 -07:00
neiljp (Neil Pilgrim) a6e39509d9 matrix bridge: Improve join/leave option.
Original '--no-noise' option had a parameter and did not disable;
new parameter is '--enable-join-leave', and sets same option for
compatibility.
2018-06-04 15:55:14 -07:00
neiljp (Neil Pilgrim) d45b43a9b1 matrix bridge: Configure using config(parser) file instead of python module. 2018-06-04 15:55:14 -07:00
neiljp (Neil Pilgrim) 363720e908 matrix bridge: Add main() function to enable installation. 2018-06-02 09:26:40 -07:00
Tim Abbott 9e6b4edee6 integrations: Remove slack import script.
This was migrated to the Zulip server project some time ago.
2018-05-30 16:10:22 -07:00
novokrest 7a95c31162 mercurial: Rename hook file to zulip_changegroup.py.
Rename hook file from 'zulip-changegroup.py'
to 'zulip_changegroup.py' for importing as module.
2018-05-29 11:45:56 -07:00
novokrest 9b9070808f mercurial: Update changegroup hook according to new mercurial API.
Fixes #322
2018-05-29 11:45:56 -07:00
Tim Abbott 6ca216024f matrix: Fix typo in requirements.txt. 2018-05-29 11:05:01 -07:00
Tim Abbott efcdc712bf matrix: Edit matrix.org README further.
The README is still pretty rough, but this cleans it up a bit.
2018-05-22 14:01:24 -07:00
Rhea Parekh 4c9134815c Matrix: Make minor changes to README.md and config. 2018-05-22 14:01:24 -07:00
Rhea Parekh afb964b65a Matrix: Add command line flag to ignore join/leave events.
Add command line flag 'no_noise' (which is true by default)
to ignore join/leave events. User can enable those events
by pass 'no_noise' as false.
2018-05-22 14:01:24 -07:00