0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-04-14 17:48:40 +00:00
Commit graph

170 commits

Author SHA1 Message Date
Nick Satterly
5911e68699
fix: Empty blackout values should be null () 2021-12-05 17:44:30 +01:00
Nick Satterly
f3c51f360d
fix: Allow unack when status set to ack in plugin ()
* Allow unack when status set to ack in plugin

* Fix race condition for blackout test
2021-12-05 16:26:06 +01:00
Nick Satterly
33eade2c0e
fix: Do not hardcode inform severity () 2021-12-04 20:13:10 +01:00
Nick Satterly
5623da6c54
test: Test for duplicate alerts received after blackout period expires () 2021-11-28 22:34:16 +01:00
Nick Satterly
0cb430d2ef
Fix linting errors ()
* Use flake8 instead of pylint and black

* Fix type errors
2021-11-21 17:26:37 +01:00
Nick Satterly
38599d814f Fix double-quote linting error 2021-11-09 23:55:03 +01:00
Hugo Shaka
d3268cf191
Change deprecated PyJWT argument ()
fix: Change deprecated PyJWT argument
2021-11-09 23:43:49 +01:00
Nick Satterly
320a92b0fa
refactor: convert formatted strings to f-strings () 2021-05-09 14:52:54 +02:00
Nick Satterly
2022944277
feat: Add support for user-defined API key ()
* Support creation of user-defined API keys

* Add test for user-defined API key
2021-05-08 19:04:01 +02:00
Nick Satterly
09bdfa9d9d
fix: change housekeeping delete threshold to seconds () 2021-04-28 13:15:42 +02:00
Nick Satterly
6b61cdc606
feat: log dismissing notes to alert history () 2021-04-25 19:25:24 +02:00
Nick Satterly
8a8bb90b1c
fix: add related id to note reponse () 2021-04-18 13:58:29 +02:00
Nick Satterly
c10ec21fb0
feat: support custom top10 report sizes () 2021-04-17 12:10:13 +02:00
Nick Satterly
a0e5b4a168
feature: add alert origin to blackout options ()
* feature: add alert origin to blackout options

* Add tests and some fixes
2021-04-14 22:53:46 +02:00
Nick Satterly
95961df969
refactor: create "query builders" for all data models () 2021-03-13 20:34:39 +01:00
Nick Satterly
e66ecb1891
feat: add support for custom auth scopes () 2021-03-10 20:55:04 +01:00
Nick Satterly
30b08e580b
refactor: use more enums and class properties () 2021-01-09 22:35:51 +01:00
Nick Satterly
0ba6197561
feat: add pagination support to collection responses () 2021-01-09 00:36:15 +01:00
Nick Satterly
88e2c482f3
fix(deps): update PyJWT to v2.0.0 () 2021-01-06 21:45:03 +01:00
Nick Satterly
93f0844c4a
feat: add colors for Ack and Shelved statuses () 2020-12-11 00:43:37 +01:00
Nick Satterly
6e42cf68b1
fix: use string enumerated types where possible () 2020-12-11 00:39:42 +01:00
Nick Satterly
5758ebdae5
fix(webhook): set alert status from action, not directly () 2020-12-05 00:21:42 +01:00
Nick Satterly
b10cd49d5c perf(db): Do not query for rawData or history if not required 2020-12-04 20:05:18 +01:00
Nick Satterly
cc232a1637 Clear login from 'acked-by' attribute if alert opens again 2020-11-24 21:33:19 +01:00
Nick Satterly
bb2a5f681f Set alert tags from alert actions 2020-11-24 02:01:25 +01:00
Nick Satterly
688ef43c8e Link OpenID user accounts by verified email addresses 2020-11-09 17:16:37 +01:00
Nick Satterly
523650a7ce Add "delete:alerts" scope for deleting alerts 2020-11-07 14:58:30 +01:00
Nick Satterly
85437dcaaa Add configurable default user and guest roles 2020-10-25 08:14:06 +01:00
Nick Satterly
7397b21acd Fix type error on Note serialization 2020-10-24 22:41:12 +02:00
Nick Satterly
9a91dabae7 Allow custom resource IDs on all resources 2020-07-05 16:22:13 +02:00
Nick Satterly
5109ef2283 Support per-status timeouts in alert history log 2020-07-04 22:50:28 +02:00
Nick Satterly
61a77a137f
Process housekeeping expire and timeout like other alert actions () 2020-06-10 21:36:50 +02:00
Nick Satterly
e4d4e8437b
Fix add notes user error and add tests () 2020-04-18 15:02:11 +02:00
Nick Satterly
f751b6f47e
Use alert text in history text, where possible () 2020-04-16 22:06:59 +02:00
Nick Satterly
2510e0cdf6
Refactor notes to make more modular () 2020-04-15 23:01:11 +02:00
Nick Satterly
338b946b45
Add support for 'operator notes' for alerts () 2020-04-15 13:12:11 +02:00
Nick Satterly
ae5b563407
Auto-open timed-out acked alerts () 2020-04-14 22:51:08 +02:00
Nick Satterly
e306a2129d
Ensure email is set before checking in ADMIN_USERS list () 2020-02-16 21:34:11 +01:00
Nick Satterly
4a7587c486
Add Python 3.8 to supported versions ()
* Add Python 3.8 to supported versions

* Do not pin mypy version as not compatible with Python 3.8

*  Fix mypy and other errors

* Fix HTTPException typing issue
2020-02-13 23:29:01 +01:00
Nick Satterly
0339fba926
Support user-defined list of admin roles () 2020-02-13 22:54:36 +01:00
Nick Satterly
49ec257e76
Add attributes field to heartbeat for use in hb alerts ()
* Add attributes field to heartbeat for use in hb alerts

* Whitespace fix for pre-commit hook to pass
2020-01-25 13:03:35 +01:00
Nick Satterly
36f80f8d82
Fix admin role to scope lookup ()
* Add test for admin role to scope lookup

* Fix admin role to admin scopes lookup logic

* Add test for default user role

* Fix test assertion for admin role that gets admin scope

* Fix postgres scopes lookup
2020-01-20 21:18:09 +01:00
Nick Satterly
12f3f84ddb
Max latency config setting for stale heartbeats () 2020-01-19 12:48:42 +01:00
João Rebelo
3424ee6c6a Changing order of hearbeat status evaluation to prioritize stales over slows () 2019-10-02 10:42:31 +02:00
Nick Satterly
4ec7abd26d
Move valid scope check to update perms view () 2019-09-22 22:57:32 +02:00
Nick Satterly
ca578133b2
Check for invalid scopes () 2019-09-22 13:39:19 +02:00
Nick Satterly
9de0f90bfc
Fix some pylint errors () 2019-08-11 00:02:53 +02:00
icy
1a78831249 models/key: doc.get("scopes") should return an empty list by default () 2019-08-10 23:24:21 +02:00
Asher Foa
afd3593e0e run autopep8 fix () 2019-08-10 23:14:11 +02:00
Asher Foa
ca90f8066d Remove unused imports. () 2019-08-05 10:07:07 +02:00