Pēteris Caune
963f1758de
Improve type hints
2022-10-09 11:51:13 +03:00
Pēteris Caune
4d69ff937e
Add support for custom topics in Zulip notifications
...
Fixes : #583
2022-10-09 11:23:14 +03:00
Pēteris Caune
a7038a9ec4
Fix remaining mypy errors and add mypy to CI
2022-10-07 12:21:45 +03:00
Pēteris Caune
291323a531
Implement the "Clear Events" function
2022-10-07 11:19:08 +03:00
Pēteris Caune
0b0a2d993c
Add "btn-remove" CSS class for remove/delete/close buttons
2022-10-07 10:07:22 +03:00
Pēteris Caune
35ad358614
Update LargeTablePaginator to use cached_property decorator
2022-09-29 09:14:35 +03:00
Pēteris Caune
08d90697c8
Improve type hints
2022-09-29 08:58:11 +03:00
Pēteris Caune
599b4d2e52
Add more type hints
2022-09-27 18:54:22 +03:00
Berk D. Demir
b4871bd432
Webhooks support for $BODY placeholder
...
Adds support for sending ping body contents with webhooks.
Only allowed in the 'body' template of the webhook configuration.
2022-09-26 10:06:24 +03:00
Pēteris Caune
ec25b319ab
Upgrade to cronsim 2.2
2022-09-22 16:16:39 +03:00
Pēteris Caune
94b49b5f34
Fix the earliest ping lookup query to order by n instead of id
...
Ordering by id causes Postgres to pick a bad
index (api_ping_pkey). Ordering by n gives equivalent results,
but Postgres picks a better index (owner_id)
Fixes : #705
2022-09-19 19:34:14 +03:00
Pēteris Caune
5b4073374e
Clean up hc.front.views.log
2022-09-09 16:43:21 +03:00
Pēteris Caune
37bbe5a9c7
Add date filters in the Log page
2022-09-09 14:16:17 +03:00
Pēteris Caune
1b7bdea9e9
Optimize HTML output of the events log some more
2022-09-05 19:45:11 +03:00
Pēteris Caune
58da098d6b
Add timeout handling in hc.lib.s3._remove_objects()
2022-08-25 10:54:59 +03:00
Pēteris Caune
b54c5381e1
Fix tests to pass when SITE_LOGO_URL is set
2022-08-25 10:45:56 +03:00
Pēteris Caune
914202e45b
Tweak the search snippet size
2022-08-22 13:02:58 +03:00
Pēteris Caune
7ac1437c8a
Switch from "trigram" to "porter unicode61" tokenizer
...
The trigram tokenizer seems to give better results, but is not
available on the SQLite version that ships with Ubuntu 20.04.
2022-08-22 12:51:53 +03:00
Pēteris Caune
5d5e469347
Implement documentation search
2022-08-22 11:56:02 +03:00
Pēteris Caune
3b137df825
Fix latin-1 handling in headers
2022-08-18 10:49:28 +03:00
Pēteris Caune
3a8b6ef51e
Add NOSIGNAL=1 option
...
Required when using pycurl from multiple threads [1]. Not sure if
we are but better safe than sorry.
[1] http://pycurl.io/docs/latest/thread-safety.html
2022-08-18 09:55:40 +03:00
Pēteris Caune
1f10aedf6c
Add more tests for hc.lib.curl
2022-08-17 16:12:21 +03:00
Pēteris Caune
9fc13403b4
Add tests for hc.lib.curl
2022-08-17 15:39:17 +03:00
Pēteris Caune
f69a1975e3
Improve error handling
2022-08-17 14:39:29 +03:00
Pēteris Caune
218798b8d2
Fix mypy warnings
2022-08-17 14:21:00 +03:00
Pēteris Caune
7695010398
Document hc.lib.curl.request
2022-08-17 13:07:20 +03:00
Pēteris Caune
3a50396806
Switch from requests to pycurl in integration onboarding views
2022-08-17 12:02:06 +03:00
Pēteris Caune
86e364eb24
Fix hc.lib.curl to send Content-Length header
2022-08-17 10:32:52 +03:00
Pēteris Caune
61a0cf9c2f
Fix Content-Type header when uploading JSON data
2022-08-17 10:11:18 +03:00
Pēteris Caune
fc127e3c01
Fix non-ASCII character handling in URLs
2022-08-17 09:22:30 +03:00
Pēteris Caune
e156c6bcae
Fix hc.lib.curl.request to handle the "auth" kwarg
2022-08-16 12:46:22 +03:00
Pēteris Caune
62acb04bba
Fix hc.lib.curl.request to handle the "params" kwarg
2022-08-16 12:28:53 +03:00
Pēteris Caune
64bb43f74f
Limit allowed protocols, add INTEGRATIONS_ALLOW_PRIVATE_IPS setting
2022-08-16 11:13:14 +03:00
Pēteris Caune
41428d1dee
Switch transports from requests to pycurl
...
With requests, there is no clean way to set a time limit
on a single HTTP request: https://stackoverflow.com/a/71453648/5821
2022-08-16 09:17:57 +03:00
Pēteris Caune
3799bd3c20
Fix the handling of TooManyRedirects exceptions
2022-08-15 10:52:50 +03:00
Pēteris Caune
dd1c05a706
Update links to Django docs, render docs
2022-08-09 08:31:54 +03:00
Facorazza
6f1900cfa3
Add support for SMTP with implicit TLS
2022-08-09 08:25:07 +03:00
Pēteris Caune
1bab426fc2
Simplify Profile.checks_from_all_projects()
...
Curiously, Django ORM translates the old and the new
version to the exact same SQL
2022-08-08 17:02:55 +03:00
Pēteris Caune
f371561fe5
Update the logout action to use HTTP POST
2022-08-08 15:16:24 +03:00
Pēteris Caune
5a0bf4062f
Add API support for resuming paused checks
...
Fixes : #687
2022-08-04 14:00:46 +03:00
Pēteris Caune
47e624900f
Fix the pause views to create Flip objects
...
I found a bug in the downtime statistics calculation. The
scenario:
* at T=0 a check goes down
* at T=5 some time later the user pauses it
* at T=10 the check receives a ping and goes up
If we don't record a status change (a flip) at T=5, then
the calculated total downtime will come out wrong (10)
This change fixes the pause views (hc.api.views.pause,
hc.front.views.pause) to create Flip objects.
2022-08-04 12:20:06 +03:00
Pēteris Caune
8ca0e2d636
Remove deprecated django.utils.timezone.utc usage
2022-08-04 11:24:06 +03:00
Pēteris Caune
b9de55043a
Fix duration calculation again, kind can also be "" (empty string)
2022-08-04 10:29:53 +03:00
Pēteris Caune
c44148e715
Fix duration calculation to skip "log" and "ign" events
2022-08-04 09:26:40 +03:00
Pēteris Caune
c840f72e3a
Clean up tests
2022-08-03 17:06:38 +03:00
Pēteris Caune
51fd339602
Add auto-refresh and running indicator in My Projects
...
Fixes : #681
2022-08-02 16:37:25 +03:00
Pēteris Caune
2f562bb502
Fix the checks list to preserve filters when adding/updating checks
...
Fixes : #684
2022-08-02 13:27:04 +03:00
Pēteris Caune
6644b43577
Fix the update_timeout view to record more information
...
Checks can flip from "up" to "down" state as a result of changing
check's schedule. We don't want to send notifications when changing
schedule interactively in the web UI. So we update the `alert_after`
and `status` fields the same way as `sendalerts` would do. This is not
new, this was already being done.
With this change, we now additionally create Flip objects, recording
the fact that a check went down at such-and-such date. We fill the
"processed" field, to make sure sendalerts skips over these objects.
We need the Flip objects because otherwise the calculation
in Check.downtimes() could come out wrong (when a check later comes up,
we would have no record of when it went down).
2022-08-02 09:43:35 +03:00
Pēteris Caune
dd6be22ab4
Upgrade to fido2 1.0.0
2022-08-01 16:16:15 +03:00
Pēteris Caune
453b426090
Add testcase and update CHANGELOG
2022-07-29 12:58:58 +03:00