Eeshan Garg
0d817f0870
markdown: Add macro for appending stream name to integration URL.
2017-06-14 17:42:17 -07:00
Eeshan Garg
aa25348ddc
markdown: Recommend substituting bot email and API key in URL.
...
We now recommend substituting the appropriate bot email and
API key in the webhook URL in the webhook-url-with-bot-email.md
macro.
2017-06-14 17:42:14 -07:00
Tim Abbott
fa87c6113d
docs: Document that we use `ts` automatically in Travis CI.
2017-06-14 17:26:41 -07:00
Aditya Bansal
5e4acbaba3
travis: Add 'ts' to all Travis CI builds for timestamping logs.
...
Fixes : #5264 .
2017-06-15 05:08:00 +05:30
Steve Howell
5482a6e129
Add test_narrowing() for stream_list.
2017-06-14 15:29:17 -04:00
Steve Howell
dc9ea24d79
zjquery: Add get().
2017-06-14 15:29:17 -04:00
Steve Howell
7722539504
zjquery: Add better trigger stubbing.
2017-06-14 15:26:41 -04:00
Steve Howell
29416c4b39
Move pm_list.set_click_handlers() call.
...
Instead of calling it from stream_list.initialize(), we
call it from the new pm_list.initialize().
2017-06-14 13:58:54 -04:00
Steve Howell
39e8bed9ef
Test stream_list.update_dom_with_unread_counts().
2017-06-14 12:28:08 -04:00
Steve Howell
499962bb6b
Change arg for stream_list.redraw_stream_privacy().
...
We now pass in a sub, not a stream name.
2017-06-14 11:24:42 -04:00
Steve Howell
bc575685a9
Add more test coverage to stream_list.js.
2017-06-14 11:24:20 -04:00
Steve Howell
fb5d10af14
Extract stream_list.get_global_filter_li().
...
Now we use a consistent approach to find the list items for
Home/Starred messages/Mentioned in the upper corner.
In particular, we get rid of the complicated
iterate_to_find() function.
2017-06-14 09:27:50 -04:00
Steve Howell
bc5165a54e
Add test coverage to stream_list.js.
2017-06-14 09:27:28 -04:00
Steve Howell
5272b6644e
zjquery: Support $('<div>').html().
2017-06-14 08:17:03 -04:00
Harshit Bansal
0e8f1f4e5d
alert_words: Fix the UI to not allow users to create duplicate alert words.
2017-06-13 16:37:49 -07:00
Harshit Bansal
947f6e9190
casper_tests: Fix the broken alert words casper tests.
...
This commit fixes the broken alert word casper tests that were
commented out earlier due to flakes(see issue #1244 ).
Fixes : #1269 .
2017-06-13 16:36:11 -07:00
Harshit Bansal
94fc7dfe20
alert_words_ui: Fix the data flow while removing an alert word.
...
Add `remove_alert_word()` function which uses the correct data flow
while removing an alert word.
`alert_words_ui.js` was structured differently from most of the other
settings. It was not using the triggers from the server for running
the success/failure handlers.
2017-06-13 16:36:11 -07:00
Harshit Bansal
049bc02778
alert_words_ui.js: Fix the data flow while adding alert word.
...
Modify the `add_alert_word()` function to follow the correct data
flow for error handling and propagation.
2017-06-13 16:36:11 -07:00
Harshit Bansal
d5ab8ac1e1
alert_words: Remove the `page_params.alert_words` after initialization.
...
We remove the `page_params.alert_words` since `alert_words.words`
is the sole source of alert words. Use of `page_params.alert_words`
could lead to bugs when alert words are updated since it is not updated.
2017-06-13 16:36:11 -07:00
Harshit Bansal
0e25634934
views/alert_words.py: Use `do_add_alert_words()` in `add_alert_words()`.
...
Revert to the use of `do_add_alert_words()` in `add_alert_words()`
instead of `do_set_alert_words()` since it is used for serving a
PUT request. This change seems to be mistakenly done in commit
`d564a76f8e45b24cd2c66475ef7693582fb2f5fc'.
2017-06-13 16:36:11 -07:00
Aditya Bansal
914ab1040d
integrations/codebase.html: Migrate to Markdown.
2017-06-13 16:32:00 -07:00
Tim Abbott
4d66d74938
check-templates: Remove exclude for some migrated files.
...
This integration docs have all been moved to markdown.
2017-06-13 16:30:27 -07:00
Aditya Bansal
9a38b51254
check-templates: Fix filter condition in Jinja2 template linting.
...
In this commit we basically stop ignoring 'base.html' from linting
point of view. Basically the condition was implemented in a bad way
resulting in ignorance of every template ending with `base.html`.
As well since removing it doesn't complain about the base.html
non parsable(We have made progress with our linter) we can safely
remove the filter condition.
2017-06-14 04:48:07 +05:30
Aditya Bansal
9cc3e8cf62
followup_day2.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
39a88019f8
followup_day1.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
9a0edad604
find_team.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
d4e827c618
email_base.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
9fc16888ca
digest.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
fa28dcd008
invitation_reminder.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
07e7482228
confirm_registration.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
1b82e90331
invitation.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
e12bb65c0b
confirm_new_email.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Steve Howell
66673f508b
node tests: Add test_update_count_in_dom().
2017-06-13 18:37:02 -04:00
Steve Howell
7c2683d765
minor: Export stream_list.update_count_in_dom() for testing.
2017-06-13 18:37:02 -04:00
Eeshan Garg
f1c209b38d
lib/integrations: Stop passing kwargs as positional args to super.
2017-06-13 15:33:22 -07:00
Eeshan Garg
b741f45408
webhooks/splunk: Migrate docs to Markdown.
2017-06-13 15:33:22 -07:00
Eeshan Garg
df28bb40f2
webhooks/sentry: Migrate docs to Markdown.
2017-06-13 15:33:22 -07:00
Eeshan Garg
84da473da5
webhooks/semaphore: Migrate docs to Markdown.
2017-06-13 15:33:22 -07:00
Eeshan Garg
d5fa02c7da
webhooks/pingdom: Migrate docs to Markdown.
2017-06-13 15:33:22 -07:00
Eeshan Garg
0b1296ed83
webhooks/librato: Migrate docs to Markdown.
2017-06-13 15:33:21 -07:00
Eeshan Garg
ac1ddc4dc8
webhooks/jira: Migrate docs to Markdown.
2017-06-13 15:33:21 -07:00
Eeshan Garg
571130e2fe
webhooks/homeassistant: Migrate docs to Markdown.
2017-06-13 15:33:21 -07:00
Eeshan Garg
cfa0f5332a
webhooks/freshdesk: Migrate docs to Markdown.
2017-06-13 15:30:35 -07:00
Eeshan Garg
902ae31e15
webhooks/deskdotcom: Migrate docs to Markdown.
2017-06-13 15:30:35 -07:00
Eeshan Garg
32550159de
github_webhook: Use Integration.stream_name as recommended stream.
2017-06-13 15:30:35 -07:00
Eeshan Garg
c3c004743c
github/doc.md: Use Integration.stream_name as default stream.
2017-06-13 15:30:35 -07:00
Eeshan Garg
9cefdb9ed2
bitbucket/doc.md: Use Integration.stream_name as default stream.
2017-06-13 15:30:35 -07:00
Eeshan Garg
4444960c6f
api.html: Fix broken link to our PyPI package.
2017-06-13 15:30:35 -07:00
Eeshan Garg
8efb3aeee7
templates: Update .md macros to use recommended_stream_name.
...
Previously, we used Integration.name as the recommended stream
in our macros. Now, we have a dedicated attribute set in the
Integration class (that WebhookIntegration and GithubIntegration
inherit from) for the recommended stream name in cases where
the stream name is different than the name of the integration
itself.
2017-06-13 15:30:35 -07:00
Eeshan Garg
db09913f38
lib/integrations: Add stream_name attribute to Integration.
...
Instead of using the name of the integration as a recommended
stream name in its documentation, the Integration object now
has a dedicated attribute stream_name to explicitly specify a
recommended stream name for when it is different than the name
of the integration itself.
2017-06-13 15:30:35 -07:00