Commit Graph

27 Commits

Author SHA1 Message Date
thnilsen
ea582aeed6 Fix bug notifications not being sent.
The code to handle sending of notification was missing. This change
makes two different options available on how notifications will be
handled which will be controlled by CRON_SERVER_IP config option.

 - If CRON_SERVER_IP is set, the server with the given IP should
   call URL ../admin/?task=cron every x minutes. If the config
   is left empty, the notification will be called once the
   incident has  been saved. (The latter meothod might cause
   server timeout if there are large numbers of subscribers!)

Other minor changes:

 - Removed old commented code

 - Removed call to syslog used for debugging
2020-08-15 21:09:57 +02:00
thnilsen
4a4a3f7bdd Merged Upstream master 2020-06-16 20:20:51 +02:00
Vojtěch Sajdl
570895c7bd
Fix #102 - strip tags when saving incident 2020-06-03 09:13:54 +02:00
thnilsen
62e6f08e4f Code cleanup as suggested by the codacy service.
- Renamed get_service_details to populate_impacted_services
- Removed unused variables
2018-12-07 22:46:16 +01:00
Thomas Nilsen
e98b4da649 Use new notification class 2018-11-25 18:45:54 +01:00
jhuesser
b005e77664 use unused value 2018-11-23 22:10:49 +01:00
jhuesser
d0d0572b82 removed unused lastname 2018-11-23 22:10:49 +01:00
jhuesser
efe4c3d42f mange subscriptions 2018-11-23 22:10:49 +01:00
jhuesser
8c305d8a93 bug fixes and debuging stuff removed 2018-11-23 22:10:49 +01:00
jhuesser
d02ebc25ab send new incident to subscriber 2018-11-23 22:10:49 +01:00
Thomas Nilsen
e41b45e067 Replaced "Posted by" with "Impacted services". Addresses suggestion in Pryx/server-status#69
* Extended Incident class with service_id and services_names.
2018-11-21 10:50:21 +01:00
Thomas Nilsen
c75f83c2ef Add impacted services to each incident view 2018-11-19 09:19:23 +01:00
Vojtěch Sajdl
93565fc014
Fix #54 - fixed time checking 2018-08-23 20:40:27 +02:00
Vojtěch Sajdl
e0a455e0ea
Fix #19 2018-04-13 23:41:05 +02:00
Vojtěch Sajdl
f9c247854f
Fix #11 - add second part of api 2018-04-13 22:38:10 +02:00
Vojtěch Sajdl
9f7e15fcd1
Re #11 - start working on an api
Also some locale negotiator bugfixes & it is now possible to serialize Service and Incident classess to JSON
2018-04-13 21:31:07 +02:00
Vojtěch Sajdl
7d4bb9af2e
Fixup global replace mess 2018-01-18 22:59:44 +01:00
Vojtěch Sajdl
696b205b68
Fix #14 - show installation dialog on 404 page if config not found 2018-01-18 22:57:19 +01:00
Vojtěch Sajdl
eeb719d235
Small fixes 2018-01-13 01:03:05 +01:00
Vojtěch Sajdl
54d499eb42
Fixed some todos & added email validation 2018-01-13 00:21:11 +01:00
Vojtěch Sajdl
f310aac8b5
Minor fixes 2018-01-12 22:38:19 +01:00
Vojtěch Sajdl
c25e8bcae8
Instalator fixes and lots and lots of other bugfixes 2018-01-12 21:35:31 +01:00
Vojtěch Sajdl
61f563c9b0
Objectify locale negotiator and template files, add documentation 2018-01-07 20:39:10 +01:00
Vojtěch Sajdl
bef338fd99
Prepare for gettext 2017-12-31 00:42:16 +01:00
Vojtěch Sajdl
f2600d0c56
Bugfixes 2017-12-12 14:17:18 +01:00
Vojtěch Sajdl
f5c2b5448d
Fixup for other MYSQL versions 2017-11-29 15:01:22 +01:00
Vojtěch Sajdl
9a49428bf9 Initial commit 2017-11-24 00:09:36 +01:00