oncall-engine/engine/apps
Joey Orlando 98241b9a10
fake-data generation script + fixes for django-silk and django-debug-toolbar (#1128)
# What this PR does

## Main stuff

- add Python script to populate local Grafana/OnCall setup w/ large
amounts of fake data. Right now the data types that can be generated
are:
- teams and Admin users via the Grafana API (must be synced manually by
going into the UI before going onto the next step)
- Calendar Schedules which have three 8h oncall-shifts, via the OnCall
public API
- fixes `django-debug-toolbar` when being run in `docker-compose`
locally

## Other stuff
- documents how to easily modify the Grafana `docker-compose` container
provisioning configuration
- document solutions for two backend setup related issues encountered
when running the engine/celery workers locally, outside of
`docker-compose`, on an Apple silicon Mac
- fixes small bug in `grafana_plugin.helpers.client.APIClient.call_api`
where it would call `response.json()` for all requests, regardless of
whether or not the response actually contained data or not
- in `engine/settings/dev.py`, properly setup `django-silk` and document
the steps to use it locally
- make it possible to log out debug SQL queries by specifying
`DEV_DEBUG_VIEW_SQL_QUERIES` env var, rather than having to uncomment
out a section of `settings/dev.py`

## Which issue(s) this PR fixes

- Some local setup issues when trying to use `django-silk` and
`django-debug-toolbar`
- Makes it much easier to populate your local setup with a lot of fake
data
- Makes it possible to easily modify your local grafana's provisioning
configuration

## Checklist

- [ ] Tests updated (N/A)
- [ ] Documentation added (N/A)
- [ ] `CHANGELOG.md` updated (N/A)
2023-01-20 09:19:41 +01:00
..
alerts Fix UnboundLocalError in webhooks (#1165) 2023-01-19 15:50:22 -07:00
api fake-data generation script + fixes for django-silk and django-debug-toolbar (#1128) 2023-01-20 09:19:41 +01:00
api_for_grafana_incident World, meet OnCall! 2022-06-03 08:09:47 -06:00
auth_token Org soft-delete (#1073) 2023-01-05 12:42:55 +08:00
base Allow messaging backends to be enabled/disabled per organization (#1151) 2023-01-18 15:52:25 +00:00
email Allow no-auth SMTP connection for email notifications (#759) 2022-11-03 16:18:37 +00:00
grafana_plugin fake-data generation script + fixes for django-silk and django-debug-toolbar (#1128) 2023-01-20 09:19:41 +01:00
heartbeat Insight logs (#348) 2022-08-24 12:04:44 +05:00
integrations Add escalation chain option when creating a direct page alert group (#1143) 2023-01-18 12:58:26 -03:00
mobile_app Fix circular import 2023-01-19 11:53:05 +00:00
oss_installation Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
public_api Add alert groups state filter (#1133) 2023-01-17 10:28:29 +00:00
schedules Schedule score backend (#338) 2023-01-04 16:49:58 +00:00
slack Add a dummy step for declare incident button in slack (#1157) 2023-01-19 14:50:02 +01:00
social_auth Support of oncall-gw (#741) 2022-11-08 14:43:22 +08:00
telegram remove send_link_to_channel_message_or_fallback_to_full_incident 2023-01-06 11:34:11 +00:00
twilioapp Add simple check if using API key instead of AUTH token 2022-11-09 21:52:42 -07:00
user_management Integration with grafana incident (#1081) 2023-01-17 13:04:50 +01:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00