298 Commits

Author SHA1 Message Date
James Ward
7b8c1dfee8 safely handle assigning "json" raw_data from results
the way that raw data was handled before meant that injection could be possible
for XSS or just general page breakage when assigning the raw data from the result
onto the window DATA variable.

this change makes it so we parse the value as an escapes JS string value, and on
failure assigns an empty object

this does mean that instead of the original behavior of failing with a JS error
on non-valid JSON data we instead create an empty object into window.DATA

fixes #231
2016-03-31 02:38:19 -04:00
David Buxton
fa61497480 Merge pull request #328 from arachnys/revert-323-master
Revert "Automatically create UserProfiles"
2016-03-29 13:10:59 +01:00
David Buxton
92b161c33e Revert "Automatically create UserProfiles" 2016-03-29 13:06:47 +01:00
David Buxton
61dc6790bf Merge pull request #327 from cmclaughlin/master
Sort users_to_notify
2016-03-29 13:05:45 +01:00
Charles McLaughlin
1e9c75b987 Sort users_to_notify
Sorting "Users to notify" on the service/instance forms is very useful
to me... I think everyone will find it easier on the eyes.
2016-03-28 14:25:09 -07:00
David Buxton
7344efa981 Merge pull request #323 from cmclaughlin/master
Automatically create UserProfiles
2016-03-24 14:04:14 +00:00
Charles McLaughlin
1825d0a260 Automatically create UserProfiles
I'm trying to use the cabot-alert-pagerduty plugin and found that it
expects all users to have profiles. I think that's a pretty reasonable
assumption, so here's a change that automatically creates profiles
when new users are created using the post_save signal.
2016-03-23 22:12:20 -07:00
David Buxton
8a4b3710d5 Merge pull request #318 from arachnys/update-requests
Bump requests (fixes #317)
2016-02-10 08:27:50 -05:00
David Buxton
28a92e0a10 Bump requests (fixes #317) 2016-02-10 08:21:36 -05:00
Jean-Frédéric
3a74f1cf1f Merge pull request #279 from movermeyer/issue227
Adds the 'EMAIL_USE_TLS' option to the settings file.
2016-02-04 14:08:45 +01:00
David Buxton
8e2d3bf6f4 Merge pull request #292 from xinity/develop
hacky way to have pagination in services dashboard
2016-01-29 09:51:52 +00:00
David Buxton
2a6752e72e Merge pull request #306 from trdarr/hide-http-password
Hide basic auth password for HTTP status checks
2016-01-29 09:48:59 +00:00
Thomas Darr
0572b49b3a Hide basic auth password for HTTP status checks 2016-01-28 18:39:15 +01:00
David Buxton
519f525979 Merge pull request #304 from carande/master
Add check for "green" status for Hudson
2016-01-22 17:41:26 +00:00
Bryce Carande
de06a96af8 Add check for "green" status for Hudson
Hudson and Jenkins have extremely similar APIs, one of the main differences is that Jenkins uses "blue" but Hudson uses "green" for a successful last build.  Adding the option to check for "green" status allows the Jenkins checks to also work for checking Hudson jobs.

Jenkins does not use green as a color: https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/BallColor.java
2016-01-22 10:33:27 -07:00
David Buxton
176bac8900 Merge pull request #301 from mattvonrocketstein/issue17
fix issue 17: add password reset views to urls.py
2016-01-09 22:26:35 +00:00
mvr
486fe91878 add password reset views to urls.py 2016-01-09 22:10:20 +00:00
Jean-Frédéric
4d8472617e Merge pull request #300 from mykelyk/master
Add index to speed up getting check results from a check ordering by time complete
2016-01-06 16:48:44 +00:00
mykelyk
66339fc0f0 Add index to speed up getting check results from a check ordering by time complete 2016-01-06 13:55:28 +00:00
David Buxton
fb48dad0f9 Merge pull request #293 from iliyanotlioneberia/ccsfix1
alerts plugin css fix
2015-12-09 09:02:14 -05:00
iliyanotlioneberia
de0b437c5b alerts plugin css fix 2015-12-09 11:45:26 +00:00
Rachid Zarouali
7fac8487ad hacky way of services pagination 2015-12-07 11:45:21 +01:00
David Buxton
525dffc114 Merge pull request #291 from xinity/develop
add acknowledgment button on service dashboard
2015-12-07 07:08:25 +00:00
Rachid Zarouali
d5475856f6 add acknowledgment button on service dashboard 2015-12-07 07:34:20 +01:00
David Buxton
087c3be021 Update example key - fixes #209 2015-11-07 17:09:17 +00:00
Michael Overmeyer
81ca697ba8 Adds the 'EMAIL_USE_TLS' option to the settings file.
Resolves #227
2015-10-21 12:05:23 -04:00
David Buxton
fc33c9859a Merge branch 'reddit-graphite-check-overhaul' 2015-10-05 18:58:15 +01:00
David Buxton
8eff54c265 Add small test 2015-10-05 18:57:23 +01:00
David Buxton
ebbd626943 Merge branch 'graphite-check-overhaul' of https://github.com/reddit/cabot into reddit-graphite-check-overhaul 2015-10-05 18:52:48 +01:00
David Buxton
80e56089a7 Pin foreman (fixes #196) 2015-10-02 10:47:12 +02:00
David Buxton
4544986150 Update admin 2015-10-02 10:27:15 +02:00
David Buxton
ef8bcc6253 Update example conf files to hipchat 1.7.0 2015-10-02 10:10:35 +02:00
David Buxton
ec964151f5 Add ability to cancel acknowledgements 2015-10-02 10:06:07 +02:00
Neil Williams
14f77c2f49 Overhaul formatting of Graphite check failures.
This gives better detail on which specific series failed the checks
which can help wildcard checks be more informative.

To save space, we strip the nodes that all series have in common from
the front and back of the series targets, so "prefix.a.suffix" and
"prefix.b.suffix" turn into just "a" and "b".
2015-10-01 22:35:05 -07:00
David Buxton
b4ab215ad2 Basic alert acknowledgement mechanism 2015-10-01 21:17:23 -04:00
David Buxton
257bc4a819 Don't throw an error on >, < etc when one or more input series is empty 2015-10-01 19:41:49 -04:00
David Buxton
f587076dda Upgrade requests to 2.7.0 2015-09-22 14:48:36 +01:00
David Buxton
ee34ceee0f Update tests to address #262 2015-09-22 13:19:19 +01:00
David Buxton
88aab44722 Remove debugging print statement 2015-09-15 12:11:37 +01:00
David Buxton
a98ab0deba Add some debugging info for travis 2015-09-15 08:53:48 +01:00
David Buxton
1cb8e4505d Test timing separately 2015-09-15 08:41:41 +01:00
crucial7
8f41505411 If statement wasn't checking for None correctly, which made failures "pass" when they shouldn't have. 2015-09-11 13:24:05 -04:00
David Buxton
befb85b3e0 Test for timing 2015-09-01 19:05:59 -04:00
David Buxton
6c9e70ef34 Update icon 2015-09-01 18:54:37 -04:00
David Buxton
d0c709375d Fix KeyError 2015-09-01 18:50:28 -04:00
David Buxton
cd34b45e27 Return all values from Graphite 2015-09-01 18:42:31 -04:00
David Buxton
e420a3eb41 Fix time taken 2015-09-01 18:39:40 -04:00
David Buxton
b567bde9c0 Add some tests for annoying graphite responses 2015-09-01 18:26:18 -04:00
David Buxton
9855e41124 Small fix 2015-09-01 18:13:14 -04:00
David Buxton
b468c5bf57 Resolve issues with expected metrics 2015-09-01 17:52:56 -04:00