oncall-engine/engine/common
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
..
api_helpers centralize timezone validation + add serializer validation for on call shifts and schedules (#924) 2022-12-01 14:13:39 +01:00
constants Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
custom_celery_tasks World, meet OnCall! 2022-06-03 08:09:47 -06:00
exceptions Remove auto-recreating logic for UserNotificationPolicy (#414) 2022-08-26 13:46:50 +05:00
insight_log user_id -> linked_user_id (#410) 2022-08-25 13:34:19 +05:00
jinja_templater Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
oncall_gateway Sync users and teams on tf requests (#1180) 2023-01-24 13:44:07 +08:00
tests Add utility function to get readonly db key if defined (#1264) 2023-02-01 12:07:32 +01: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
database.py Add utility function to get readonly db key if defined (#1264) 2023-02-01 12:07:32 +01:00
public_primary_keys.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
timezones.py centralize timezone validation + add serializer validation for on call shifts and schedules (#924) 2022-12-01 14:13:39 +01:00
utils.py Set DATA_UPLOAD_MAX_MEMORY_SIZE to 1mb (#393) 2022-08-24 11:59:01 +05:00