oncall-engine/engine/apps/telegram
Innokentii Konstantinov 17f448c506
Prepare OnCall for Unified Slack App (#4232)
This PR does a bunch of changes to prepare OnCall for Unified Slack App:
1. Install Slack via Chatops-Proxy. This change contains two parts:
getting a Slack install link from chatops-proxy
([code](https://github.com/grafana/oncall/pull/4232/files#diff-437a77d49fc04b92d315651b3df5991000b1ab74cf60aabb21aa77cb2823bf52R46))
and receiving a "slack installed" event from chatops-proxy
([code](https://github.com/grafana/oncall/pull/4232/files#diff-976d106f0962be5c1de5e35582193f68435ed0c17f2defd6bd2857bf6e27f65d)).
Also it means that OnCall doesn't need to register slack_links anymore
when slack is connected/disconnected. These changes are behind
UNIFIED_SLACK_APP_ENABLED flag and should be no-op if flag is not
enabled.
2. Get rid of Multiregionatily restrictions - instrument all slack
interactions with a ProxyMeta - json data telling chatops-proxy where to
route the interaction. Note, that it doesn't apply for "Add to
resolution notes" message action - it will be handled differently in
following PR.
3. Move all chatops-proxy related stuff from common/oncall-gateway to
apps/chatops-proxy

Minor changes:
1. Remove usage of **CHATOPS_V3** flag. Chatops v3 is already released
(It's a refactoring from previous quarter)

---------

Co-authored-by: Vadim Stepanov <vadimkerr@gmail.com>
Co-authored-by: Rares Mardare <rares.mardare@grafana.com>
2024-06-03 09:07:10 +00:00
..
migrations Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
models Handle ag telegram message does not exist (#3830) 2024-02-05 12:19:41 +00:00
renderers add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
tests Fix docs and UI for connecting Grafana Alerting from other stack (#4243) 2024-04-24 08:02:51 +00:00
updates Update alert group state by backsync (#4089) 2024-03-27 12:37:01 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert_group_representative.py Add transaction on_commit before signals for alert group actions (#3731) 2024-01-31 15:54:50 -07:00
apps.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
client.py Prepare OnCall for Unified Slack App (#4232) 2024-06-03 09:07:10 +00:00
decorators.py Validate Slack and Telegram host env variables (#307) 2022-08-02 12:57:12 +03:00
exceptions.py Handle ag telegram message does not exist (#3830) 2024-02-05 12:19:41 +00:00
signals.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
tasks.py Add transaction on_commit before signals for alert group actions (#3731) 2024-01-31 15:54:50 -07:00
urls.py Slack and telegram routes to test chatops-proxy v3 (#3723) 2024-01-22 13:48:19 +08:00
utils.py Introduce org uuid (#947) 2022-12-06 22:42:58 +08:00
views.py Fix SQLite permission issue (#1984) 2023-05-22 19:16:31 +00:00