oncall-engine/engine/apps/slack/models
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
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
slack_action_record.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
slack_channel.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
slack_message.py Add utility function to get readonly db key if defined (#1264) 2023-02-01 12:07:32 +01:00
slack_team_identity.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
slack_user_identity.py Add utility function to get readonly db key if defined (#1264) 2023-02-01 12:07:32 +01:00
slack_usergroup.py optimize GET /schedules internal API endpoint (#1169) 2023-01-25 11:08:09 +01:00