oncall-engine/engine/common
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
..
api_helpers use CustomURLValidator in custom_button (#1398) 2023-03-23 12:21:17 +00:00
constants Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
custom_celery_tasks World, meet OnCall! 2022-06-03 08:09:47 -06:00
exceptions Remove auto-recreating logic for UserNotificationPolicy (#414) 2022-08-26 13:46:50 +05:00
insight_log Check stack cluster for insight_logs (#1469) 2023-03-09 06:30:54 +00:00
jinja_templater Add regex_match Jinja filter (#1556) 2023-03-16 10:18:49 +00:00
oncall_gateway Handle OnCall gateway connector delete 204 (#1313) 2023-02-17 11:04:02 -07:00
recaptcha Add validation of hostname for recapctha (#1445) 2023-03-06 08:59:48 +00:00
tests use CustomURLValidator in custom_button (#1398) 2023-03-23 12:21:17 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
admin.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
database.py modify check_escalation_finished_task task (#1266) 2023-03-17 10:14:08 +00:00
public_primary_keys.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
timezones.py centralize timezone validation + add serializer validation for on call shifts and schedules (#924) 2022-12-01 14:13:39 +01:00
utils.py Set DATA_UPLOAD_MAX_MEMORY_SIZE to 1mb (#393) 2022-08-24 11:59:01 +05:00