Eeshan Garg
80405747ce
test_docs: Test new API docs (templates/zerver/api/*).
2017-12-30 11:03:23 -05:00
rht
185fd99816
mypy: Use Python 3 type syntax in several files.
2017-12-30 07:34:51 -05:00
rht
1324d9f000
mypy: Use Python 3 type syntax in zerver/views.
2017-12-30 07:34:05 -05:00
rht
2e8adbde12
mypy: Use Python 3 type syntax in zerver/lib/actions.py.
2017-12-30 07:33:07 -05:00
Eeshan Garg
89f622937d
api docs: Generate Arguments table from JSON.
...
This commit does the following:
* Move the Arguments table data from stream-message.md and
private-message.md to a JSON file.
* Add a Markdown extension that allows one to include and render
a table from a JSON file like so:
{generate_arguments_table|arguments.json|private-stream.md}
* Use Bootstrap's .table class to format the table instead of
relying on custom CSS.
2017-12-29 17:03:36 -05:00
Eeshan Garg
94bc9d52d1
api docs: Split usage.md into two separate docs.
...
This commit splits usage.md into two separate docs,
stream-message.md and private-message.md. The arguments and return
values for sending a stream message are somewhat different from
those of sending a private message, so it made sense to split the
two up for clarity.
2017-12-29 17:03:36 -05:00
YJDave
29905ad5d6
create stream: Before sending notificaion, check if NOTIFICATION_BOT exists.
...
There might be case that NOTIFICATION_BOT is none, so before sending stream
announce notification, check first if settings.NOTIFICATION_BOT is not none.
2017-12-29 08:59:55 -05:00
MadElf1337
39fc26deff
integrations: Add webhook payloads for Runscope.
2017-12-29 07:27:20 -05:00
akashnimare
ef51a39552
markdown: Update regex for strikethrough.
...
This uses the correct regex for strikethrough. Also, added
a test to make sure that strikethrough works when it contains
link with whitespace.
Fixes #7596 .
2017-12-28 15:59:04 -05:00
MadElf1337
de62e11c23
integrations: Add webhook payloads for StatusPage.io.
2017-12-28 15:53:06 -05:00
Steve Howell
80477da481
quick fix: Stop tracebacks with missedmessage_hook.
...
A `None` value is not properly handled in this function, which
indicates some lack of testing or a recent regression we don't
understand. We were getting lots of tracebacks from this line
of code on our test server:
mentioned = 'mentioned' in flags and 'read' not in flags
2017-12-28 08:10:56 -05:00
Kiy4h
2e35b7fd60
mypy: Use Python 3 type syntax in zerver/webhooks/taiga/view.py.
2017-12-28 07:26:44 -05:00
Kiy4h
93cc19e3f8
mypy: Use Python 3 type syntax in zerver/webhooks/helloworld/view.py.
2017-12-28 07:26:44 -05:00
Kiy4h
3b7fbc1a1d
mypy: Use Python 3 type syntax in zerver/webhooks/gosquared/view.py.
2017-12-28 07:26:44 -05:00
Kiy4h
6fa51be822
mypy: Use Python 3 type syntax in zerver/views/push_notifications.py.
2017-12-28 07:26:44 -05:00
Kiy4h
64413e3b91
mypy: Use Python 3 type syntax in zerver/views/email_mirror.py.
2017-12-28 07:26:44 -05:00
Kiy4h
238cd2b132
mypy: Use Python 3 type syntax in zerver/views/alert_words.py.
2017-12-28 07:26:44 -05:00
Kiy4h
78e71faefe
mypy: Use Python 3 type syntax in zerver/lib/test_fixtures.py.
2017-12-28 07:26:44 -05:00
Rhea Parekh
ed4054d110
Import script: Check and add system bots after every import.
...
This checks for the existing system bots and adds them if they
aren't included in the import.
2017-12-27 07:52:45 -05:00
Rhea Parekh
62aec0688f
Slack importer: Add slack to zulip data conversion script as a manage.py command.
2017-12-27 07:50:53 -05:00
Rhea Parekh
cd332a7f59
Slack importer: Append ids to the existing ids in the database.
...
For import with the condition `--import-into-nonempty`, the ids
of the mapped data will be appended to the existing ids in the
database.
2017-12-27 07:50:53 -05:00
Rhea Parekh
5b37c5562b
Slack importer: Add the slack to zulip data conversion files.
2017-12-27 07:50:53 -05:00
Rhea Parekh
3d4ee3b862
zerver/tests/test_email_mirror: Sweep force_str.
2017-12-26 09:09:31 -05:00
Rhea Parekh
25e5969add
zerver/lib/mobile_auth_otp: Sweep force_str.
2017-12-26 09:09:31 -05:00
Rhea Parekh
cc872ad976
zerver/lib/upload.py: Sweep force_bytes from ensure_medium_avatar_image.
2017-12-26 09:09:31 -05:00
Rhea Parekh
092472f42d
tests: Add test coverage for uploading avatars to S3UploadBackend.
...
Add test coverage for the function upload_avatar_image and
ensure_medium_avatar_image in S3UploadBackend.
2017-12-26 09:09:31 -05:00
Rhea Parekh
bebd8df728
zerver/webhooks/github/view: Sweep force_str.
2017-12-26 09:09:31 -05:00
Rhea Parekh
99cb001345
zerver/webhooks/beanstalk/view.py: Sweep force_bytes and force_str.
2017-12-26 09:09:31 -05:00
Rhea Parekh
b792a90842
Remove unused imports in the codebase.
2017-12-26 09:09:31 -05:00
derAnfaenger
94c8e8b8e7
embedded bots: Strip @-mention from message.
...
This is in order to comply with the most recent
code in the `zulip_bots` package.
2017-12-26 08:50:00 -05:00
Xavier Cooney
f66f04f83a
mypy: Use Python 3 type syntax in 'bitbucket/tests.py'.
2017-12-26 08:34:38 -05:00
Xavier Cooney
63142385ca
mypy: Use Python 3 type syntax in 'send_password_reset_email.py'.
2017-12-26 08:34:38 -05:00
Xavier Cooney
34aee15d63
mypy: Use Python 3 type syntax in 'gitlab/view.py'.
2017-12-26 08:34:38 -05:00
Xavier Cooney
36b58ff6fc
mypy: Use Python 3 type syntax in 'views/users.py'.
2017-12-26 08:34:38 -05:00
Xavier Cooney
78042d7f18
mypy: Use Python 3 type syntax in 'webhooks/gogs/tests.py'.
2017-12-26 08:34:38 -05:00
nyan-salmon
51be0e5e76
mypy: Use Python 3 type syntax in zerver/webhooks/solano/view.py.
2017-12-26 08:34:06 -05:00
nyan-salmon
0fd0332a2c
mypy: Use Python 3 type syntax in zerver/views/custom_profile_fields.py.
2017-12-26 08:34:06 -05:00
nyan-salmon
613856c33b
mypy: Use Python 3 type syntax in zerver/lib/send_email.py.
2017-12-26 08:34:06 -05:00
nyan-salmon
4f4d689f86
mypy: Use Python 3 type syntax in zerver/webhooks/splunk/view.py.
2017-12-26 08:34:06 -05:00
nyan-salmon
6c5f66c561
mypy: Use Python 3 type syntax in zerver/webhooks/slack/view.py.
2017-12-26 08:34:06 -05:00
Viraat Chandra
de3eb89d5c
mypy: Use Python 3 syntax for typing in `zerver/lib/request.py`.
2017-12-26 08:31:43 -05:00
Viraat Chandra
bbf24ec68e
mypy: Use Python 3 syntax for typing in `zerver/lib/webhooks/git.py`.
2017-12-26 08:31:43 -05:00
Viraat Chandra
553711e671
mypy: Use Python 3 syntax for typing in `zerver/tests/test_home.py`.
2017-12-26 08:31:43 -05:00
Viraat Chandra
0494902e6d
mypy: Use Python 3 syntax for typing in `zerver/views/auth.py`.
2017-12-26 08:31:43 -05:00
fredfishgames
55801d2feb
mypy: Use Python 3 type syntax in zerver/tornado/event_queue.py.
2017-12-26 08:31:09 -05:00
fredfishgames
ccc3d69f61
mypy: Use Python 3 type syntax in zerver/webhooks/bitbucket2/tests.py.
2017-12-26 08:31:09 -05:00
greysome
6bcc01bfee
mypy: Use Python 3 type syntax in zerver/webhooks/bitbucket/view.py
2017-12-26 08:30:33 -05:00
greysome
f2f9efd1a7
mypy: Use Python 3 type syntax in zerver/lib/integrations.py
2017-12-26 08:30:33 -05:00
greysome
fb7ee942c4
mypy: Use Python 3 type syntax in zerver/lib/export.py
2017-12-26 08:30:33 -05:00
greysome
da9c808db4
mypy: Use Python 3 type syntax in zerver/webhooks/transifex/view.py
2017-12-26 08:30:33 -05:00