Commit graph

3129 commits

Author SHA1 Message Date
Pēteris Caune
7591fe35dc
Refactor test case 2022-11-08 11:57:15 +02:00
seidnerj
b6027fa126
Added support for a "run id" parameter (#722)
Add support for specifying a run ID via a "rid" query parameter

cc: #461
2022-11-08 11:34:26 +02:00
Pēteris Caune
0ec5117a72
Add autofocus attribute to the TOTP input field
Fixes: #726
2022-11-07 10:33:21 +02:00
Pēteris Caune
024622c146
Fix tests 2022-11-02 14:48:22 +02:00
Pēteris Caune
ccfcf26e65
Update Mattermost setup instructions 2022-11-02 14:45:44 +02:00
seidnerj
6c18c85ffe
updated README.md to include MacOS specific instructions for pycurl when setting up a development environment (#721) 2022-11-02 09:23:04 +02:00
Pēteris Caune
f1c6d87168
Tweak the dark mode text-success and text-danger colors 2022-11-01 15:02:47 +02:00
Pēteris Caune
d3406aef25
Fix the most recent ping lookup in the "Ping Details" dialog 2022-11-01 13:42:09 +02:00
Pēteris Caune
0682ddfa93
Improve layout in the Ping Details dialog 2022-11-01 12:39:14 +02:00
Pēteris Caune
e29235c5a5
Improve tests 2022-11-01 12:15:54 +02:00
Pēteris Caune
d100cb7ead
Fix duration calculation bug in _get_events
The bug: _get_events sometimes does not have enough data to
calculate all durations correctly (some needed "start" events
may be outside the fetched data). The fix is to fall back to
Ping.duration() in these cases.
2022-11-01 12:04:14 +02:00
Pēteris Caune
30fcc6a936
Fix duration calculation bug 2022-11-01 10:29:43 +02:00
Pēteris Caune
a87c3bf04b
Rewrite to avoid self.owner access to save a SQL query 2022-11-01 09:56:34 +02:00
Pēteris Caune
26b6e20fda
Fix hc.front.views.ping_details to set duration on all ping instances
The code in hc.front.views.ping_details calculates durations
and sets them on the Ping.duration field, overriding the cached
property. But, it only does this for pings where the duration can
be calculated. If there's a streak of "success" pings with no
"start" pings between, the loop will not set the Ping.duration
field for most of them. So, when rendering the template, the
property code will run and cause an additional SQL query for each
ping. The fix is, in hc.front.views.ping_details, to set the
Ping.duration field for each and every ping.
2022-11-01 09:22:29 +02:00
seidnerj
c82c1a3a4a
Added duration to ping details (#720)
* Added duration to ping details. This is useful on a device with a small screen, since the duration cannot be seen in the main view so now one can see it in the ping's details.
* Changed terms across the board from "delta" to "duration"
* timedelta is now consistently imported as "td" across the entire project (even in Django generated migration files)
2022-11-01 09:18:34 +02:00
Pēteris Caune
c26dbc96f5
Refactor render_docs to support multiple docs directories 2022-10-28 12:05:01 +03:00
Pēteris Caune
85be1ce481
Fix the link to the Signal CAPTCHA form 2022-10-28 08:28:32 +03:00
Pēteris Caune
49fbd98615
Update .po and .mo files, remove obsolete strings 2022-10-27 14:21:49 +03:00
Pēteris Caune
20a5e3ffca
Add tests and usability tweaks for the signal_captcha view 2022-10-27 13:00:12 +03:00
Pēteris Caune
8d75f1adc3
Add a form for submitting Signal CAPTCHA solutions 2022-10-27 11:57:52 +03:00
Pēteris Caune
b4f11aa899
Fix horizontal scrollbar in events view on small screens 2022-10-26 14:43:14 +03:00
Pēteris Caune
cc4a03df6d
Add Python 3.11 to the testing matrix 2022-10-26 12:19:45 +03:00
Pēteris Caune
a189872938
Improve type hints 2022-10-20 13:03:10 +03:00
Pēteris Caune
895e8e856a
Improve type hints 2022-10-20 12:24:50 +03:00
Pēteris Caune
e4a956679e
Move port scrubbing to hc.api.views.ping, add test case
cc: #714
2022-10-20 11:59:19 +03:00
Cam
5aa4c64a6f Add IPv4 check to guard clause 2022-10-20 11:41:03 +03:00
Cam
ca1b9a6b12 Remove port portion of remote_addr 2022-10-20 11:41:03 +03:00
Pēteris Caune
c7b519dc86
Add emborg in "3rd party resources" 2022-10-20 09:23:06 +03:00
Pēteris Caune
ff5d4a926b
Update the CodeQL workflow to install build dependencies 2022-10-19 09:24:12 +03:00
Pēteris Caune
21ded7ce83
Update action versions in the "run django tests" workflow 2022-10-19 09:21:37 +03:00
Pēteris Caune
a944c05f68
Upgrade to fido2 1.1.0 and simplify hc.lib.webauthn 2022-10-19 09:16:01 +03:00
Pēteris Caune
85dcadd053
Update CHANGELOG for v2.4.1 2022-10-18 17:45:52 +03:00
Pēteris Caune
949dfa5446
Try another cryptography/rust/qemu/armv7 workaround 2022-10-18 16:56:16 +03:00
Pēteris Caune
09f7bec8f7
Try a different cryptography/rust/qemu/armv7 workaround 2022-10-18 16:35:55 +03:00
Pēteris Caune
2481ea2794
Update action versions in the publish_docker_image workflow 2022-10-18 16:06:54 +03:00
Pēteris Caune
414d5a9424
Fix MySQL 8 support in the Docker image (#717) 2022-10-18 14:06:05 +03:00
Pēteris Caune
03f46630eb
Format with black 2022-10-17 17:02:11 +03:00
Pēteris Caune
161430fb10
Sort imports and add "from __future__ import annotations" 2022-10-17 16:52:15 +03:00
Pēteris Caune
5969e940a5
Switch to using "from __future__ import annotations" 2022-10-17 16:29:48 +03:00
Pēteris Caune
66b318d505
Add libcurl4-openssl-dev, libssl-dev in README, install instructions 2022-10-17 15:25:57 +03:00
Pēteris Caune
4351287c62
Fix the signup form to prevent multiple concurrent form submits 2022-10-14 12:34:05 +03:00
Pēteris Caune
2de1b457e5
Add descriptions for the screenshots in README 2022-10-13 18:03:30 +03:00
Pēteris Caune
0cbe7798ac
Add max-fd=10000 in uwsgi.ini to work around uWSGI issue on Fedora
Fixes: #713
2022-10-13 16:26:19 +03:00
Pēteris Caune
7ac8458b07
Optimize the "Get a List of Existing Checks" API call 2022-10-12 17:02:47 +03:00
Pēteris Caune
11997e75c8
Fix test_tokenbucket failure 2022-10-09 12:22:46 +03:00
Pēteris Caune
3e3aaec8f5
Update Zulip setup instructions 2022-10-09 12:12:39 +03:00
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
4a5123d67b
Remove mypy from CI for now, more work needed 2022-10-07 12:24:43 +03:00
Pēteris Caune
a7038a9ec4
Fix remaining mypy errors and add mypy to CI 2022-10-07 12:21:45 +03:00