Pēteris Caune
56862a1c49
Update NotificationsAdmin to use __ lookup in list_display
2024-08-07 17:39:17 +03:00
Pēteris Caune
42b733540d
Fix type annotation
...
It used the wrong model name and neither me nor mypy noticed
until upgrade to django-stubs 5.0.4
2024-07-29 09:50:56 +03:00
Pēteris Caune
99d74d2c2c
Add type hint for view_on_site in channel admin
2024-05-01 11:18:31 +03:00
Pēteris Caune
4df58aaaef
Fix type warnings
2024-04-12 15:46:46 +03:00
Pēteris Caune
7bef951484
Fix oncalendar schedule display in admin
2023-12-12 12:51:13 +02:00
Pēteris Caune
64b97b2e06
Add error filter in Notification admin
2023-11-14 09:54:33 +02:00
Pēteris Caune
9d9875e3ed
Add "By last error" filter and "Disable" action in Channel admin
2023-11-02 10:08:22 +02:00
Pēteris Caune
e537a38dd8
Temporarily remove type hints for the view_on_site method
2023-10-06 20:02:00 +03:00
Pēteris Caune
24bad5af52
Tighten type hints in hc.api.admin
2023-10-06 15:33:10 +03:00
Pēteris Caune
fa9db53631
Update admin to use format_html instead of string interpolation
2023-10-06 13:54:15 +03:00
Pēteris Caune
f68b2c01a6
Simplify the counting of updated objects in admin actions
2023-10-06 11:35:32 +03:00
Pēteris Caune
fd87cad455
Remove unused imports
2023-10-05 12:44:40 +03:00
Pēteris Caune
8fb7d16864
Improve type hints, simplify pagination in Ping admin
...
Pagination, filtering, and result counting in Ping admin is tricky
as the pings table can contain millions of rows.
We previously used "select reltuples from pg_class" trick to
estimate the total number of rows. This only works on Postgres,
and does not handle WHERE filters.
This commit removes the search box, and changes the pagination
template to allow pagination between pages 1-9 and nothing more.
2023-10-04 16:00:41 +03:00
Pēteris Caune
507fd840d8
Exclude "body" from the Ping admin form
...
"body" is an obsolete field and kept around for the sake
of very old pings. For all new pings body data goes either
into the "body_raw" binary field (for small bodies)
or in the object storage (for not so small bodies).
So it is not useful to show the body field in the Ping admin.
2023-09-22 09:36:27 +03:00
Pēteris Caune
dcf9f327f6
Add Channel.email property
...
It replaces:
* Channel.email_value
* Channel.email_notify_up
* Channel.email_notify_down
2023-09-11 11:45:25 +03:00
Pēteris Caune
c4851f3b49
Fix lint issues
2023-07-12 13:44:35 +03:00
Pēteris Caune
a3965fcae5
Add last notify date in channel admin
2023-07-12 08:51:54 +03:00
Pēteris Caune
5b322e5c5e
Optimize queries in admin
2023-07-11 16:45:02 +03:00
Pēteris Caune
32b607533a
Make QoL improvements in admin
...
* Add "view on site" links in Check, Channel, and Project admins
* Expose over_limit_date in Profile admin
* Display last notify duration ("Time" column) in Channel admin
* Add last notify duration filter for Channel admin
2023-07-11 12:14:45 +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
35ad358614
Update LargeTablePaginator to use cached_property decorator
2022-09-29 09:14:35 +03:00
Pēteris Caune
b2b361e2b9
Improve Notification admin: link to project from the list view
2022-07-26 11:04:03 +03:00
Pēteris Caune
eac023caa1
Enable searching channels by code in admin UI
2022-05-10 15:36:49 +03:00
Pēteris Caune
842f0c3e16
Improve CSS in Channel and Notification admin
2022-04-09 17:16:10 +03:00
Pēteris Caune
cb36e17440
Improve Notification admin
2022-04-09 16:43:39 +03:00
Pēteris Caune
1826f6f654
Improve Channel and Notification admin
2022-04-09 15:03:59 +03:00
Pēteris Caune
05bb80130b
Add support for storing ping bodies in S3-compatible object storage
...
This is an initial, minimal implementation. It is currently
missing: error handling, timeouts for S3 operations, documentation.
cc: #609
2022-02-28 11:51:04 +02:00
Pēteris Caune
59147c530a
Update Notification admin to allow searching by code
2022-01-21 16:24:00 +02:00
Pēteris Caune
b88e4dd2de
Update Channel admin to allow searching channels by name
2022-01-07 16:58:41 +02:00
Pēteris Caune
78652b5659
Upgrade Django version to 3.2
2021-04-07 11:39:11 +03:00
Pēteris Caune
67560c96e1
Change icon CSS class prefix to work around Fanboy's filter list
...
Problem: if you use uBlock Origin, and enable the
"Fanboy's Social" filter list, Healthchecks does not show
Telegram or WhatsApp icons. This is because the filter list
contains "##.icon-telegram" and "##.icon-whatsapp" entries.
This commit changes the CSS class prefix to "ic-". So we're
now using icon classes like "ic-telegram" and "ic-whatsapp".
As a bonus, we save 2 bytes in HTML per displayed icon :-)
2021-02-03 10:44:35 +02:00
Pēteris Caune
f607ee67d5
Allow searching in the error field in Notifications admin
2021-01-11 10:08:36 +02:00
Pēteris Caune
c75a37570e
In channels admin, don't show the notification counts, querying it is too expensive.
2020-08-18 13:30:24 +03:00
Pēteris Caune
255d4e7bb7
Reduce the number of queries in /admin/api/channel/
2020-07-16 16:15:58 +03:00
Pēteris Caune
825110a354
Channel icons in Admin > Channels
2020-04-20 13:56:24 +03:00
Pēteris Caune
abdff95ce8
Admin tweaks.
2020-04-20 13:33:21 +03:00
Pēteris Caune
3f36d31cde
Display the error field in notifications admin list view, don't load all checks in details view.
2019-10-18 17:22:50 +03:00
Pēteris Caune
cdfc9840a7
Source formatted with Black
2019-05-15 14:27:50 +03:00
Pēteris Caune
32ee6d4ca9
Fix the "send_alert" admin action.
2019-05-02 14:06:56 +03:00
Pēteris Caune
3c4027b788
Quicker admin.
2019-02-04 22:28:04 +02:00
Pēteris Caune
c60a33874f
Quicker admin.
2019-02-04 20:11:45 +02:00
Pēteris Caune
e1b999e83a
Prepare for the removal of Check.user_id
2019-01-18 14:59:01 +02:00
Pēteris Caune
20df5843e3
Don't update Ping.start and Ping.fail fields (use Ping.kind instead)
2019-01-04 12:57:29 +02:00
Pēteris Caune
e76329a364
Admin tweaks
2018-12-24 19:50:09 +02:00
Pēteris Caune
828bc52f80
Admin tweaks
2018-12-12 18:16:28 +02:00
Pēteris Caune
58a34ae061
Admin tweaks
2018-12-12 18:12:04 +02:00
Pēteris Caune
5be6c403a4
Flip model, for tracking status changes of the Check objects.
2018-12-10 17:51:42 +02:00
Pēteris Caune
cf6882edd3
SMS numbers can be annotated with labels. Fixes #155
2018-03-13 16:31:58 +02:00
Pēteris Caune
74f7c50a65
Fix deprecation warnings.
2017-06-02 22:39:53 +03:00
Pēteris Caune
d739d8ff62
DRY: use channel.get_kind_display()
2017-03-16 18:12:30 +02:00