Pēteris Caune
4959856e58
Redesign the "Status Badges" page
2024-02-26 12:34:26 +02:00
Michael Boateng
9770bc1ea0
Add auto-refresh functionality to log page ( #963 )
...
Add auto-refresh functionality to log page
Fixes : #957
---------
Co-authored-by: Pēteris Caune <cuu508@gmail.com>
2024-02-23 11:36:31 +02:00
Michael Boateng
6bfd9c901c
Make grace time editable when job is created ( #953 )
...
Fixes : #945
2024-02-08 15:34:52 +02:00
Pēteris Caune
16450a66c7
Add tooltips to tag buttons in the checks list screen
...
Fixes : #911
2024-01-22 15:20:09 +02:00
Pēteris Caune
9b27600cbe
Fix oncalendar_preview to require a logged in user
2023-12-13 12:55:12 +02:00
Pēteris Caune
0abfe58cef
Implement OnCalendar schedules in the "Add Check" dialog
2023-12-08 12:02:01 +02:00
Pēteris Caune
fa7e37360f
Tweak the number of iterations in oncalendar preview
2023-12-06 16:34:48 +02:00
Pēteris Caune
d65f41d192
Add support for systemd's OnCalendar schedules
...
(work-in-progress)
cc: #919
2023-12-06 15:42:57 +02:00
Pēteris Caune
18e1a3d9e4
Update Pushover onboarding code to generate lowercase state values
...
Since recently, Pushover seems to return them converted
to lowercase, this is a workaround for that.
2023-11-27 14:52:19 +02:00
Pēteris Caune
49d6f3fe5b
Fix "Ping Details" dialog to handle email bodies not yet uploaded to S3
2023-11-10 12:49:10 +02:00
Pēteris Caune
d7a2e24ccf
Replace "Slack integration" with "{site_name} integration for Slack"
2023-11-03 09:07:58 +02:00
Pēteris Caune
f73e4520fd
Update tests to check if logger.warning() gets called
2023-11-01 12:14:30 +02:00
Pēteris Caune
dea66b85af
Switch to using Pydantic for parsing ntfy configuration
...
Also, fix a bug in the "Edit ntfy integration" form,
where the token was not filled in the form on page load.
2023-10-26 10:32:41 +03:00
Pēteris Caune
65eddaacd6
Improve API error handling in hc.front.views.add_linenotify_complete
2023-10-25 14:46:57 +03:00
Pēteris Caune
bff59c92ed
Improve API error handling in hc.front.views.trello_settings
2023-10-25 14:20:51 +03:00
Pēteris Caune
da22899cd6
Improve OAuth error handling in hc.front.views.add_discord_complete
2023-10-25 13:49:14 +03:00
Pēteris Caune
511863594c
Improve OAuth error handling in hc.front.views.add_slack_complete
2023-10-25 13:40:56 +03:00
Pēteris Caune
cf552c86cb
Switch to using Pydantic for validating Pushbullet OAuth responses
2023-10-23 08:52:31 +03:00
Pēteris Caune
30a3a784c3
Move AuthenticatedHttpRequest to hc.accounts.http module
...
If AuthenticatedHttpRequest lives in the hc.lib.typealias
module then hc.lib.typealias imports User and Profile,
and so needs configured Django settings. Most of the stuff
in hc.lib is intended to work standalone, and not rely on Django.
2023-10-21 18:16:48 +03:00
Pēteris Caune
470f70b164
Update curl.get and curl.post to closer match requests fn signatures
...
In requests, "params" is a positional argument for the get function:
requests.get(url, params=None, **kwargs)
So I made params positional here too.
In requests, "data" is a positional argument for the post function:
requests.post(url, data=None, json=None, **kwargs)
So I data positional here too.
2023-10-21 11:45:45 +03:00
Pēteris Caune
52ab8c4703
Improve type hints in hc.lib.curl and hc.api.transports
...
This results in changes in other places too:
* curl.post() does not accept `data` as positional arg,
it must now be a keyword argument
* we need asserts and if clauses in a few places to make sure
we are not passing `None` in the arguments to hc.lib.curl.request
2023-10-20 19:11:08 +03:00
Pēteris Caune
bb7632f467
Fix mypy warning
2023-10-17 16:15:37 +03:00
Pēteris Caune
42a137e128
Switch to pydantic for validating Telegram incoming webhooks
2023-10-17 16:10:35 +03:00
Pēteris Caune
7b03e1f95b
Fix mypy warning
2023-10-12 11:55:47 +03:00
Pēteris Caune
2276fcff60
Rename my_checks -> checks; my_checks_desktop -> checks_table
2023-10-12 11:48:42 +03:00
Pēteris Caune
12114c647e
Fix channel sorting in the "my checks" page to show groups first
2023-10-12 11:43:20 +03:00
Florian Apolloner
ca10841503
Fix mypy warnings in hc.font.views ( #904 )
2023-10-06 17:39:20 +03:00
Pēteris Caune
4fc6ff5c26
Tweak CSS in the group form, make sure channel's name is preloaded
2023-10-06 17:06:41 +03:00
Florian Apolloner
7057f6d3a5
Notification groups. Fixes #894 ( #901 )
...
* MVP for notification groups.
* Addressed review comments.
* Push notification group to the front.
* Updated icons.
* Reduce code duplication.
* Show groups at the top.
* Add label to group forms.
* Add checkboxes for integration selection.
* CSS for checkboxes.
* Added tests for group notify.
2023-10-06 17:02:41 +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
cf4498eca2
Add Channel.phone property
...
It has typed fields: value, notify_up, notify_down.
It replaces:
* Channel.phone_number
* Channel.sms_notify_up
* Channel.sms_notify_down
* Channel.whatsapp_notify_up
* Channel.whatsapp_notify_down
* Channel.signal_notify_up
* Channel.signal_notify_down
2023-09-09 11:09:52 +03:00
Pēteris Caune
ee40cd8dab
Fix type warnings
2023-09-08 16:47:27 +03:00
Pēteris Caune
05d2d0065e
Remove usage of backports.zoneinfo
2023-09-06 12:54:27 +03:00
Pēteris Caune
77e1ea731c
Improve type hints in hc.accounts.views
2023-09-06 12:51:27 +03:00
Pēteris Caune
d79069f669
Fix type warnings, improve type hints in hc.front.views
2023-09-06 11:18:47 +03:00
Pēteris Caune
4a819a8018
Convert Signal.send() to a classmethod
...
This fixes a couple mypy warnings, and also fixes a code smell:
we were doing `Signal(None).send(...)` in a few places,
and can now do `Signal.send(...)` instead.
2023-09-02 18:48:25 +03:00
Pēteris Caune
23eadc5e64
Fix type warnings
2023-09-02 17:19:31 +03:00
Pēteris Caune
e022c17bed
Improve type hints
2023-08-30 09:57:34 +03:00
Pēteris Caune
61a5c7a1a0
Add code comment so we don't trip on this again
2023-08-01 12:44:53 +03:00
Pēteris Caune
2942eefdf6
Tweak ping query to work around postgres index selection issue
...
Sorting by "n" or by "id" does not change query results.
But sorting by "id" can cause postgres to pick the
api_ping.id index (slow if api_ping table is big) instead of
api_ping.owner_id index (fast because any given check will have
a limited number of pings in the api_ping table).
2023-08-01 12:32:05 +03:00
Pēteris Caune
792cc59bef
Fix lint issues
2023-07-12 10:29:55 +03:00
Viktor Szépe
573b76a082
Fix typos ( #855 )
2023-07-02 15:14:13 +03:00
Pēteris Caune
68c42db58c
Add support for Telegram topics
...
Fixes : #852
2023-06-28 15:22:59 +03:00
Pēteris Caune
4ccee09f73
Add /api/v3/ (adds ability to set slug when creating or updating checks)
2023-06-14 16:52:45 +03:00
Pēteris Caune
002bc9b083
Decouple check's name from slug, allow users to set hand-picked slugs
2023-06-14 15:06:37 +03:00
Pēteris Caune
5cdc104a16
Update serve_doc and its tests to use pathlib
2023-06-07 17:04:03 +03:00
Pēteris Caune
4a72519c71
Update settings.BASE_DIR usage sites to use pathlib
2023-06-07 16:36:19 +03:00
Pēteris Caune
4bd305f4fe
Fix docs to display the ping body limit defined in settings
2023-06-04 19:32:11 +03:00
Pēteris Caune
eb7dfe5c63
Add Rocket.Chat integration
...
cc: #463
2023-05-30 12:30:29 +03:00
Pēteris Caune
4e3034978f
Fix another instance of pinging/deleting race condition
2023-05-02 14:11:56 +03:00