598 Commits

Author SHA1 Message Date
Frank Hamand
3008346291 0.10.3 0.10.3 2017-04-21 10:49:57 +01:00
Frank Hamand
768c763aae Merge pull request #488 from arachnys/plugin-settings
Add Plugin settings with Alert Tests
2017-04-21 10:48:29 +01:00
Frank Hamand
f3203e571b Add 'ALERT_TEST' check during alert tests
This makes the notification that gets created more obvious, as it will
show ALERT_TEST as the failing check
2017-04-19 09:58:28 +01:00
Frank Hamand
a6171d68d3 Add missing font files 2017-04-19 09:58:28 +01:00
Frank Hamand
fb033beaee User get_user_model instead of User 2017-04-19 09:58:28 +01:00
Frank Hamand
082b943460 Update changes 2017-04-19 09:58:28 +01:00
Frank Hamand
6cd6a5dbc8 Add tests for plugin settings and alert tests 2017-04-19 09:58:28 +01:00
Frank Hamand
b73da11d87 Add plugin settings form template 2017-04-19 09:58:28 +01:00
Frank Hamand
f457f76ae1 Increase chosen field width to 100%
They are currently tiny for select boxes. We can still control width
with a wrapper element
2017-04-19 09:58:27 +01:00
Frank Hamand
9ad44129fe Fix AlertPlugin settings update form views
The post view was still a copy of the user profile settings view
2017-04-19 09:58:27 +01:00
Frank Hamand
6953572fb5 Make AlertPlugin title not able to be blank
I accidentally created a blank alert plugin and it broke some pages as
we use the plugin title in some urls
2017-04-19 09:58:27 +01:00
Frank Hamand
0159cb79c0 Show alerts as disabled if the plugin is disabled 2017-04-19 09:58:27 +01:00
Frank Hamand
89bb99a5e5 Add Plugin settings views with Alert tests 2017-04-19 09:58:27 +01:00
Frank Hamand
58156eadf2 Add bootstrap-chosen
Makes chosen select boxes look much nicer
2017-04-19 09:58:27 +01:00
Frank Hamand
8c9cb3af8b Filter alerts on enabled=True
Currently we have an enabled flag on alert plugins but its never used.
2017-04-19 09:58:27 +01:00
Frank Hamand
3a68bb5cdf Change send_alert method to _send_alert proxy method
This makes testing easier/better as we can mock the _send_alert method
on the super class and not worry about mocking all the subclasses
2017-04-19 09:58:27 +01:00
Frank Hamand
83320e5179 Update bootstrap
We were missing some glyphicons due to old version of bootstrap.
Specifically, i wanted to use glyphicon-equalizer for the pluggins
settings icon
2017-04-19 09:58:27 +01:00
Frank Hamand
e24f0cf026 Make bin/test_with_coverage executable 2017-04-19 09:58:22 +01:00
Frank Hamand
fe8d30354e Fix travis test command 2017-04-19 09:57:18 +01:00
Frank Hamand
0597d4db34 Change test compose command with entrypoint
This means you can add e.g. --failfast, or run specific tests
2017-04-19 09:35:39 +01:00
Frank Hamand
24b5f1ca0a Merge pull request #489 from arachnys/fix-polymorphic-bug
Rollback to Django 1.10
2017-04-17 12:18:36 +01:00
Frank Hamand
b208a28f21 Rollback django 1.11 change
It doesn't work with django polymorphic
2017-04-16 21:39:03 +01:00
Frank Hamand
c2e1607de4 Add test for django polymorphic regression
Django 1.11 introduced a django polymorphic regression, add a test
to prevent this creeping back in
2017-04-16 21:32:18 +01:00
Frank Hamand
5a4f871eaa Merge pull request #484 from arachnys/django-1.11
Upgrade to Django 1.11
2017-04-05 15:15:58 +01:00
Frank Hamand
f99ef6d445 Upgrade to django 1.11
This requires a bump in django filter which needs django_filters adding
to INSTALLED_APPS
2017-04-05 15:15:38 +01:00
Frank Hamand
a5af188372 Remove dodgy plugin update test
This was always a bit dodge and didn't work before django 1.8 and now
doesn't work in django 1.11. Plugin changes should require a server
restart anyway
2017-04-05 14:21:27 +01:00
Jean-Fred Berthelot
976e263079 Bump Pytz to latest version 2017.2
Released on 2017-03-30
2017-04-04 17:03:19 +02:00
Frank Hamand
a4fb46b16b Add missing changes from 0.8-dev branch 2017-04-04 15:51:34 +01:00
Frank Hamand
2fdc2f8a2b Add LDAP user filter to CHANGES 2017-04-04 15:49:32 +01:00
Frank Hamand
ced3e0961a Merge pull request #482 from miguel250/patch-1
Allow user filter for LDAP to be configure
2017-04-04 15:42:00 +01:00
Frank Hamand
6077d50577 Update cabot_alert_hipchat to 2.0.2
Fixes bug when both HIPCHAT_URL and HIPCHAT_DOMAIN were set
2017-04-04 13:04:52 +01:00
Miguel Perez
283751ea24 Allow user filter for LDAP to be configure 2017-04-03 21:16:54 -04:00
Frank Hamand
6596bcf0ec Fixx env file syntax error 2017-04-03 14:09:58 +01:00
Frank Hamand
f0ef5a886c Remove HIPCHAT_URL from example and default confs
This is deprecated now as we've switched to hipchat api v2 by default
2017-04-03 13:40:42 +01:00
Frank Hamand
49dd5ea305 0.10.2 0.10.2 2017-04-03 13:29:06 +01:00
Frank Hamand
c453b27920 Merge pull request #481 from arachnys/hipchat-v2
Update cabot-alert-hipchat to 2.0.0 (hipchat api v2)
2017-04-03 13:27:15 +01:00
Frank Hamand
4b45b09841 Update hipchat alert to 2.0.1
This makes it backwards compatible to existing hipchat v1 settings
2017-04-03 13:26:35 +01:00
Frank Hamand
d77087efad Handle running setup.py from non .git source 0.10.2b1 2017-03-29 14:48:14 +01:00
Frank Hamand
58578a8ff3 Update cabot-alert-hipchat to 2.0.0 (hipchat api v2) 2017-03-29 14:44:33 +01:00
Frank Hamand
023f283f1c Merge pull request #469 from arachnys/add-interactive-api-docs
Add interactive api docs using djangorestframework 3.6
2017-03-29 14:42:38 +01:00
Frank Hamand
597b9555b2 Set SECURE_PROXY_SLL_HEADER if WWW_SCHEME is https
Django uses SECURE_PROXY_SSL_HEADER to know if we're on https for
generating absolute urls, which are used by djangorestframework
2017-03-29 13:09:09 +01:00
Frank Hamand
86471956ae Add interactive api docs using djangorestframework 3.6 2017-03-29 13:09:09 +01:00
Frank Hamand
8ea6a4ed6a Merge pull request #480 from arachnys/update-requirements
Update django rest framework and other requirements
2017-03-29 12:53:25 +01:00
Frank Hamand
7c16730140 Revert django-filter to 1.0.1 as 1.0.2 is seriously broken 2017-03-29 12:45:34 +01:00
Frank Hamand
1f47702c22 Update django rest framework and other requirements
There are a few requirement patch version bumps that we should keep up
with. Also a major djangorestframework that will allow us to add their
new interactive API docs feature.
2017-03-29 12:23:51 +01:00
Frank Hamand
bce10a7b57 Merge pull request #476 from doboy/include-git
do not exclude git because in setup.py requires it
2017-03-27 10:06:51 +01:00
Frank Hamand
3cb6ff1dd9 Merge pull request #475 from doboy/syncdb
syncdb was changed to migrate in Django==1.7
2017-03-27 10:05:58 +01:00
Zack Do
5f04f0c769 do not exclude git because in setup.py requires it
```
 1#!/usr/bin/env python
 2import os
 3from setuptools import setup, find_packages
 4from os import environ as env
 5import subprocess
 6
 7from pip.req import parse_requirements
 8
 9requirements = [str(req.req) for req in parse_requirements('requirements.txt', session=False)]
10requirements_plugins = [str(req.req) for req in parse_requirements('requirements-plugins.txt', session=False)]
11
12VERSION = subprocess.check_output(['git', 'describe', '--tags']).strip()
13
14setup(
15    name='cabot',
16    version=VERSION,
17    description="Self-hosted, easily-deployable monitoring and alerts service"
18                " - like a lightweight PagerDuty",
19    long_description=open('README.md').read(),
20    author="Arachnys",
21    author_email='info@arachnys.com',
22    url='http://cabotapp.com',
23    license='MIT',
24    install_requires=requirements + requirements_plugins,
25    packages=find_packages(),
26    include_package_data=True,
27    entry_points={
28        'console_scripts': [
29            'cabot = cabot.entrypoint:main',
30        ],
31    },
32    zip_safe=False
33)
```
2017-03-24 11:57:01 -07:00
Frank Hamand
4d9f5ddb34 0.10.1 0.10.1 2017-03-24 18:25:27 +00:00
Zack Do
7ce8423c96 syncdb was changed to migrate in Django==1.7 2017-03-24 11:25:22 -07:00