oncall-engine/engine
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
..
apps fake-data generation script + fixes for django-silk and django-debug-toolbar (#1128) 2023-01-20 09:19:41 +01:00
common Introduce org uuid (#947) 2022-12-06 22:42:58 +08:00
config_integrations Add escalation chain option when creating a direct page alert group (#1143) 2023-01-18 12:58:26 -03:00
engine fake-data generation script + fixes for django-silk and django-debug-toolbar (#1128) 2023-01-20 09:19:41 +01:00
settings fake-data generation script + fixes for django-silk and django-debug-toolbar (#1128) 2023-01-20 09:19:41 +01:00
static/images World, meet OnCall! 2022-06-03 08:09:47 -06:00
.dockerignore One startup command to rule them all (#760) 2022-11-07 16:34:43 +01:00
.gitignore modify push notification settings + use fcm-django library (#998) 2022-12-20 12:41:34 +01:00
celery_with_exporter.sh Add flag to debug logs (#912) 2022-11-29 11:16:42 +08:00
conftest.py Enforce cloud connection to send push notifications on OSS (#1132) 2023-01-19 11:15:56 +00:00
Dockerfile swap psycopg2-binary to psycopg2 in requirements.txt (#1062) 2023-01-03 13:47:03 +01:00
manage.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
pyproject.toml World, meet OnCall! 2022-06-03 08:09:47 -06:00
requirements.txt fake-data generation script + fixes for django-silk and django-debug-toolbar (#1128) 2023-01-20 09:19:41 +01:00
tox.ini Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
uwsgi.ini Update uwsgi.ini 2022-06-15 19:13:50 +03:00
wait_for_test_mysql_start.sh World, meet OnCall! 2022-06-03 08:09:47 -06:00