oncall-engine/engine/apps
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
..
alerts Fix web alert templater with many links (#4068) 2024-03-15 17:23:24 +00:00
api Create default webhooks on integration creation (#4052) 2024-03-13 14:41:33 +00:00
api_for_grafana_incident Add render_for_web information to alert group incident API (#3005) 2023-09-12 12:02:42 +00:00
auth_token Add more logging to plugin sync and install (#3730) 2024-01-23 22:59:33 +00:00
base Allow setting email app to use SSL instead of TLS (#3911) 2024-02-20 03:38:09 -05:00
email Allow setting email app to use SSL instead of TLS (#3911) 2024-02-20 03:38:09 -05:00
grafana_plugin Add scheduled task to start cleanup tasks (#3976) 2024-03-04 19:45:01 +00:00
heartbeat Improve OpenAPI schema coverage (#3629) 2024-01-12 15:11:22 +00:00
integrations Update universal integrations to reject requests without payload (#4053) 2024-03-14 15:51:46 +00:00
labels Support prescribed labels (#3848) 2024-02-20 14:42:51 +08:00
metrics_exporter Add transaction on_commit before signals for alert group actions (#3731) 2024-01-31 15:54:50 -07:00
mobile_app Fix rounding issue with displayed time when sending "You're going oncall" push notification (#3872) 2024-02-09 15:31:34 -05:00
oss_installation Improve OpenAPI schema coverage (#3629) 2024-01-12 15:11:22 +00:00
phone_notifications Revert "upgrade to Python 3.12 (#3456)" and "bump uwsgi version to latest #3466" (#3483) 2023-12-01 09:56:26 -05:00
public_api Add silenced_at field to alert group public API (#3992) 2024-03-06 19:20:33 +00:00
schedules Refactor gaps and empty shift checks (#3785) 2024-01-31 15:25:06 +01:00
slack Check for permissions on Slack escalate command (#3891) 2024-02-14 19:02:09 +00:00
social_auth chore: fix some comments (#4055) 2024-03-14 15:36:00 +00:00
telegram Handle ag telegram message does not exist (#3830) 2024-02-05 12:19:41 +00:00
twilioapp add missing db migrations + add additional backend db migration check to CI (#3234) 2023-10-31 16:00:55 -04:00
user_management Add scheduled task to start cleanup tasks (#3976) 2024-03-04 19:45:01 +00:00
webhooks Add is_from_connected_integration field to webhook model (#3951) 2024-02-23 15:57:57 +00:00
zvonok Improve zvonok verification call (#3768) 2024-02-08 14:05:11 -05:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00