Ian Winter
a277164ad6
docs: Add new functions to bots-guide.md.
...
This commit reflects the recent changes being
done to the `contrib_bots` API and introduces
the new methods in the docs.
2017-05-28 17:46:25 -07:00
Pweaver (Paul Weaver)
2a394708ba
Modify front-end-build-process.md to reflect use of typescript.
2017-05-28 17:32:49 -07:00
Pweaver (Paul Weaver)
bbb3aad611
Add typescript support to asset compilation.
2017-05-28 17:28:28 -07:00
Abhijeet Kaur
601d018367
testsuite: Add tests for wikipedia bot in contrib_bots.
...
Add test file 'Test_wikipedia.py'.
Since wikipedia links for the same query may different according
to relevance. This test will also be written by mocking HTTP
traffic. But this can work for now.
2017-05-28 17:12:11 -07:00
Abhijeet Kaur
9f861d6d67
testsuite: Add tests for virtual_fs bot in contrib_bots.
...
Add test file 'test_virtual_fs.py'.
2017-05-28 17:12:11 -07:00
Abhijeet Kaur
02256f79e4
bots: Add a new command 'sample_conversation' in virtual_fs bot.
...
The previous test function in virtual_Bot made use of another function
called a 'sample_conversation' which had stateful example conversation
with virtual_fs bot.
The function sample_conversation is really useful, so made it accessible
to the users too.
2017-05-28 17:12:11 -07:00
Abhijeet Kaur
469e2acf4d
bots: Remove already present test function in virtual_fs bot.
...
Remove test function for virtual_fs bot from virtual_fs.py file.
2017-05-28 17:12:11 -07:00
Abhijeet Kaur
b3dddbe75f
bots: Modify 'virtual_fs' bot to respond with help message on bot mention.
...
Earlier, if virtual_fs bot is called without any argument, then the
bot returns nothing.
Now, virtual_fs bot replies with help message on how the user can
call this bot.
2017-05-28 17:12:11 -07:00
Abhijeet Kaur
d4443b05fb
testsuite: Add tests for thesaurus bot in contrib_bots.
...
Add test file 'test_thesaurus.py'.
2017-05-28 17:12:11 -07:00
Abhijeet Kaur
af4750799c
bots: Remove unwanted spaces from 'help_message' in thesaurus bot.
...
Remove unwanted spaces from the file contrib_bots/bots/thesaurus/thesaurus.py,
these spaces were being stripped while being written to
zulip console.
2017-05-28 17:12:11 -07:00
Abhijeet Kaur
dbe5a65378
testsuite: Add tests for help bot in contrib_bots.
...
Add test file 'test_help.py'.
2017-05-28 17:12:11 -07:00
Abhijeet Kaur
707cc6ec2c
bots: Remove unnecessary split() function from help bot.
...
Remove unnecessary split() function from the file
contrib_bots/bots/help/help.py and replaced it with equivalent
simpler string.
2017-05-28 17:12:11 -07:00
Abhijeet Kaur
afbaa30e4b
testsuite: Add tests for helloworld bot in contrib_bots.
...
Add test file 'test_helloworld.py'.
2017-05-28 17:12:11 -07:00
Abhijeet Kaur
74acc53a8a
testsuite: Add tests for encrypt bot in contrib_bots.
...
Remove previous unittest file for encrypt bot. Add new
test file which is in accordance with the test-suite famework
developed for contrib_bots.
2017-05-28 17:12:11 -07:00
Abhijeet Kaur
d2e359e05c
testsuite: Add tests for converter bot in contrib_bots.
...
Remove previous unittest file for converter bot. Add new
test file which is in accordance with the test-suite famework
developed for contrib_bots.
Since 'coverter' folder is now a package (addition of __init__.py),
modify converter.py to import utils.py from the same package.
2017-05-28 17:12:11 -07:00
Steve Howell
cb0527397e
Add tests for reactions.add_reaction().
2017-05-28 16:58:32 -07:00
Steve Howell
8d7cd2e3af
Add tests for reactions.message_reaction_on_click().
2017-05-28 16:58:32 -07:00
Tejas Kasetty
f48df30c20
typeahead: Move prefix_sort helper to util.js.
...
This will allow us to call this function from the reactions code as
well.
2017-05-27 09:37:57 -07:00
Tim Abbott
4a8eb8775f
docs: Fix a link on accessibility page.
2017-05-26 21:02:47 -07:00
Tim Abbott
9b8641d9eb
lint: Add iOS to list of valid weird capitalizations.
2017-05-26 20:59:32 -07:00
Tim Abbott
c864bb59c6
apps: Fix typo in template syntax.
2017-05-26 19:06:20 -07:00
umkay
d9b23b39d3
mypy: Fix strict-optional in analytics.
2017-05-26 15:39:39 -07:00
Umair Khan
7f43ec05f2
lint: Add rule to check alt arg for translation.
2017-05-26 15:28:46 -07:00
Umair Khan
ad5780c03e
lint: Mark alt argument for translation.
2017-05-26 15:28:46 -07:00
Tim Abbott
9b050f4cac
bots: Remove legacy bots/ directory.
2017-05-26 15:21:30 -07:00
Tim Abbott
c5bc1265f3
bots: Move log2zulip into api/integrations.
2017-05-26 15:15:56 -07:00
Tim Abbott
55f69c677a
puppet: Remove obsolete zuliprc.nagios file.
...
This hasn't done anything for years.
2017-05-26 15:14:12 -07:00
Reid Barton
ccb4c5c26f
bots: Move zephyr-related files to api/integrations/zephyr/.
2017-05-26 15:07:02 -07:00
Reid Barton
2f21290407
bots: Move IRC and Jabber mirror scripts to api/integrations.
...
This is part of cleaning out the old bots/ top level directory.
2017-05-26 15:04:55 -07:00
rht
a1f82e02d6
python: Replace os.system with subprocess.call.
...
Generally, we avoid os.system, since it shells out and thus can be
a cause of security issues.
2017-05-26 15:03:16 -07:00
Sarah
bb329b4020
zerver/lib/events: Refactor using UserProfile prop_types and notifications
...
Refactor fetch_initial_state_data to use the UserProfile.property_types
and notifications dictionaries.
2017-05-26 14:55:54 -07:00
derAnfaenger
024101be6b
bots: Add mypy annotations for bots framework.
...
This commit adds mypy annotations for both the main
bots and the bots testing runner. It involves a change
to the BotHandlerApi send_message and update_message
funtions, which is compatible with every bot.
Tweaked by tabbott to use more expressive annotations.
2017-05-26 10:25:06 -07:00
Tim Abbott
c12023840d
contrib_bots: Fix python 3 lint errors.
2017-05-26 10:18:40 -07:00
Nathan Miller
2311e169ec
mypy: Various strict-optional fixes in zerver.
2017-05-26 10:10:20 -07:00
Reid Barton
004ff1ae4d
bots: Remove githook-post-receive link.
...
Based on commits cdedb8593
and 58a8934a8
it seems to be unused.
2017-05-25 18:05:35 -07:00
Tim Abbott
f5373c46f2
lint: Fix trailing newlines in outgoing webhook tests.
2017-05-25 16:28:11 -07:00
Reid Barton
461856dd56
rss-bot: Add --unwrap, --math options.
...
These are for processing arXiv API results.
2017-05-25 16:24:07 -07:00
Tim Abbott
8e978df957
mypy: Fix missing import from recent mypy merge.
2017-05-25 16:22:19 -07:00
Pweaver (Paul Weaver)
cb311e99d8
Change backend tests to use a webpack stats stub file.
2017-05-25 16:15:32 -07:00
Pweaver (Paul Weaver)
de98dd127d
Remove webpack dependency from tools/minify-js.
2017-05-25 16:15:32 -07:00
Pweaver (Paul Weaver)
fb0d2d6a8e
webpack: Move assets to a separate JSON file so we can process in python.
2017-05-25 16:15:32 -07:00
Mehanig
2d5097868a
webpack: Skip compilation for minified 3rd party libs.
2017-05-25 16:15:32 -07:00
Jeremy Bowman
5436f872f7
Provide alt text for validation check mark
...
The check mark which appears for valid input in assorted forms
(such as login and registration) didn't have alternative text
for better accessibility. Added "Valid" as the alt text in all
places it's used.
Fixes #4876 .
2017-05-25 16:06:47 -07:00
Ethan
d4d689532d
mypy: serve_local return type to FileResponse.
2017-05-25 15:41:52 -07:00
Ethan
d2e72b0082
mypy: correct process response type.
2017-05-25 15:41:51 -07:00
Ethan
b6e7e36c86
mypy: correct from int to str in rate limiting.
2017-05-25 15:41:49 -07:00
Ethan
d1bd19a1b8
mypy: correct user_passes_test first argument.
2017-05-25 15:41:48 -07:00
Ethan
c284d913cc
mypy: request.body is bytes, should be str.
2017-05-25 15:41:46 -07:00
Ethan
1477a9102d
mypy: Fix return annotation; json_method_not_allowed.
2017-05-25 15:41:44 -07:00
Tim Abbott
944935dbe3
docs: Update Git tips blog post in reading list.
2017-05-25 15:29:37 -07:00