oncall-engine/engine/apps/slack
Joey Orlando 16196822de
Add utility function to get readonly db key if defined (#1264)
# What this PR does

This is a minor refactor before implementing
https://github.com/grafana/oncall-private/issues/1558.

Additionally, it cleans up a few spots where we do this:
```
# Re-take in case we are in the readonly db context.
```
We currently don't read anything from a read-only database, so this
should be not necessary.

## Checklist

- [x] Tests updated
- [ ] Documentation added (N/A)
- [ ] `CHANGELOG.md` updated (N/A)
2023-02-01 12:07:32 +01:00
..
migrations Drop data migrations setting up demo tokens 2022-06-06 12:29:25 -03:00
models Add utility function to get readonly db key if defined (#1264) 2023-02-01 12:07:32 +01:00
representatives World, meet OnCall! 2022-06-03 08:09:47 -06:00
scenarios Add paging for direct paging users in slack dialog (#1232) 2023-01-27 14:10:44 -03:00
slack_client World, meet OnCall! 2022-06-03 08:09:47 -06:00
templates/admin World, meet OnCall! 2022-06-03 08:09:47 -06:00
tests Add schedules support for slack direct paging (#1183) 2023-01-25 09:10:50 -03: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
constants.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
slack_formatter.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
tasks.py Catch DoesNotExist in post_slack_rate_limit_message (#1067) 2023-01-03 17:44:56 +00:00
urls.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
utils.py Use formatted UTC time for fallback in slack message (#225) 2022-07-18 07:55:05 -06:00
views.py Update message when user needs to connect their profile (#1190) 2023-01-23 08:44:33 +01:00