oncall-engine/engine
Ilya Lukyanov 847d4c9dec
Fix web alert templater with many links (#4068)
# What this PR does

Web templater had a bug with link substitutions: it replaced every link
with 'oncallsubstitutedlink{link_idx}', and then replaced them back.
But if we have more than 10 links in the message, there
would be replacements like 'oncallsubstitutedlink10', which will be
partially replaced by match from 'oncallsubstitutedlink1', yielding
incorrect links in the resulting message. This fixes this behaviour.

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-03-15 17:23:24 +00:00
..
apps Fix web alert templater with many links (#4068) 2024-03-15 17:23:24 +00:00
common chore: fix some comments (#4055) 2024-03-14 15:36:00 +00:00
config_integrations Improve template to handle empty group labels (#2794) 2023-08-17 07:52:05 +00:00
engine Instrument requests lib (#4008) 2024-03-05 05:22:34 +00:00
settings Move fcm_relay task from webhook to critical queue (#4034) 2024-03-07 18:26:25 +00:00
static/images remove django admin panel (#2731) 2023-08-02 14:26:50 -04:00
type_stubs/icalendar continue addressing mypy violations (#2170) 2023-06-27 10:23:08 +00:00
.dockerignore One startup command to rule them all (#760) 2022-11-07 16:34:43 +01:00
.gitignore modify push notification settings + use fcm-django library (#998) 2022-12-20 12:41:34 +01:00
celery_with_exporter.sh Add flag to debug logs (#912) 2022-11-29 11:16:42 +08:00
conftest.py Backend support for "connected" integrations (#4030) 2024-03-07 17:47:33 +00:00
Dockerfile Use local arm64 grpcio wheel to make local builds on arm64 faster (#4000) 2024-03-05 06:31:58 +00:00
grpcio-1.57.0-cp311-cp311-linux_aarch64.whl Use local arm64 grpcio wheel to make local builds on arm64 faster (#4000) 2024-03-05 06:31:58 +00:00
manage.py Instrument requests lib (#4008) 2024-03-05 05:22:34 +00:00
pyproject.toml patch occasional UnicodeEncodeError that occurs with outgoing webhooks (#3832) 2024-02-02 21:08:04 +00:00
requirements-dev.in Use pip-tools to handle Python deps (#3892) 2024-02-20 17:44:15 +00:00
requirements-dev.txt Add trace_id to log lines (#3982) 2024-03-04 06:42:43 +00:00
requirements.in Use local arm64 grpcio wheel to make local builds on arm64 faster (#4000) 2024-03-05 06:31:58 +00:00
requirements.txt Instrument requests lib (#4008) 2024-03-05 05:22:34 +00:00
tox.ini address occasional failing tests when run w/ pytest-xdist (#3840) 2024-02-06 11:57:54 -05:00
uwsgi.ini Remove explicit request size limits (#3878) 2024-02-22 15:00:33 +00:00
wait_for_test_mysql_start.sh Revert "Revert "speed up ci builds from 15 to <7 minutes"" (#1643) 2023-03-28 09:34:03 +02:00