oncall-engine/engine/apps/api/serializers
Hamed Karbasi 9b70b79c78
use CustomURLValidator in custom_button (#1398)
# What this PR does
This PR, overrides Django URLValidator with a CustomURLValidator. It
just removes tld_re part from the regex, and the other behaviour remains
the same.
The CustomURLValidator is defined in common.api_helpers.utils.py file
and is utilized in custom_button.py.
Please inform me if it needs to be defined somewhere else or be
implemented with some other methods.

## Which issue(s) this PR fixes
Currently, URLValidator raises exception for URLs that don't have TLD.
This leads to not being able to use containers URL for outgoing webhooks
as they usually don't have TLD.

## Checklist

- [x] Tests updated
- [ ] Documentation added
- [x] `CHANGELOG.md` updated

---------

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
Co-authored-by: Innokentii Konstantinov <innokenty.konstantinov@grafana.com>
Co-authored-by: Joey Orlando <joseph.t.orlando@gmail.com>
2023-03-23 12:21:17 +00:00
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert.py Cache web template rendered fields for alert and alertgroup endpoints (#1261) 2023-02-02 11:37:52 +08:00
alert_group.py Teams redesign (#1528) 2023-03-22 00:57:20 +08:00
alert_receive_channel.py Fix of templates api behaviour for public and private api (#1408) 2023-03-01 16:32:15 +08:00
channel_filter.py Jinja2 based routes (#1319) 2023-03-08 16:42:18 +08:00
custom_button.py use CustomURLValidator in custom_button (#1398) 2023-03-23 12:21:17 +00:00
custom_serializers.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
escalation_chain.py Add alert group filter by escalation chain (#1535) 2023-03-14 14:38:18 +00:00
escalation_policy.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
integration_heartbeat.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
live_setting.py Allow no-auth SMTP connection for email notifications (#759) 2022-11-03 16:18:37 +00:00
on_call_shifts.py Add support for web overrides to Terraform schedules (#1222) 2023-03-10 16:21:50 +00:00
organization.py remove grafana_plugin_management django app (#812) 2022-11-09 13:53:59 +01:00
organization_slack_settings.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
paging.py Teams redesign (#1528) 2023-03-22 00:57:20 +08:00
public_api_token.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
resolution_note.py Optimize alert group list view (#299) 2022-07-27 14:14:59 +03:00
schedule_base.py Add support for web overrides to Terraform schedules (#1222) 2023-03-10 16:21:50 +00:00
schedule_calendar.py Add support for web overrides to Terraform schedules (#1222) 2023-03-10 16:21:50 +00:00
schedule_ical.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
schedule_polymorphic.py Add select_related to fetch schedules user group information (#1109) 2023-01-09 13:15:27 -03:00
schedule_reminder.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
schedule_web.py Add support for web overrides to Terraform schedules (#1222) 2023-03-10 16:21:50 +00:00
slack_channel.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
slack_user_identity.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
team.py Teams redesign (#1528) 2023-03-22 00:57:20 +08:00
telegram.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
user.py Remove OSS_INSTALATION env var (#881) 2023-03-07 11:07:42 +00:00
user_group.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
user_notification_policy.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
webhook.py Keep webhook responses data (#1580) 2023-03-21 13:43:37 +00:00