oncall-engine/engine/apps
Matias Bordese 09e4a4d378
Add list shifts for swap request endpoint (#2697)
Example request/response:

`GET /api/internal/v1/shift_swaps/SSR3FJC9H3HZCHT/shifts`

```
{
	"events": [
		{
			"all_day": false,
			"start": "2023-08-01T00:00:00Z",
			"end": "2023-08-01T03:00:00Z",
			"users": [
				{
					"display_name": "testing",
					"email": "testing",
					"pk": "UWJWIN8MQ1GYL",
					"avatar_full": "http://localhost:3000/avatar/ae2b1fca515949e5d54fb22b8ed95575",
					"swap_request": {
						"pk": "SSR3FJC9H3HZCHT"
					}
				}
			],
			"missing_users": [],
			"priority_level": 1,
			"source": "web",
			"calendar_type": 0,
			"is_empty": false,
			"is_gap": false,
			"is_override": false,
			"shift": {
				"pk": "OK9SS5YP42XRG"
			}
		},
		{
			"all_day": false,
			"start": "2023-08-01T03:00:00Z",
			"end": "2023-08-02T00:00:00Z",
			"users": [
				{
					"display_name": "testing",
					"email": "testing",
					"pk": "UWJWIN8MQ1GYL",
					"avatar_full": "http://localhost:3000/avatar/ae2b1fca515949e5d54fb22b8ed95575",
					"swap_request": {
						"pk": "SSR3FJC9H3HZCHT"
					}
				}
			],
			"missing_users": [],
			"priority_level": 1,
			"source": "web",
			"calendar_type": 0,
			"is_empty": false,
			"is_gap": false,
			"is_override": false,
			"shift": {
				"pk": "OK9SS5YP42XRG"
			}
		}
	]
}
```
2023-07-31 15:13:35 -03:00
..
alerts Shift Swap Requests in Slack + improve typing for Slack django app (#2653) 2023-07-28 15:11:38 +00:00
api Add list shifts for swap request endpoint (#2697) 2023-07-31 15:13:35 -03:00
api_for_grafana_incident remove references to AlertGroup.is_archived and AlertGroup.unarchived_objects (#2524) 2023-07-18 11:48:34 +00:00
auth_token add missing database migrations 2023-07-05 18:27:56 +02:00
base apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
email Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
grafana_plugin Paginate calls to get instances from gcom (#2669) 2023-07-28 21:19:27 +00:00
heartbeat apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
integrations Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
metrics_exporter Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
mobile_app Refactoring schedule final events (#2651) 2023-07-28 11:59:33 +00:00
oss_installation Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
phone_notifications Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
public_api Refactoring schedule final events (#2651) 2023-07-28 11:59:33 +00:00
schedules Add list shifts for swap request endpoint (#2697) 2023-07-31 15:13:35 -03:00
slack Shift Swap Requests in Slack + improve typing for Slack django app (#2653) 2023-07-28 15:11:38 +00:00
social_auth apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
telegram apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
twilioapp Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
user_management Shift Swap Requests in Slack + improve typing for Slack django app (#2653) 2023-07-28 15:11:38 +00:00
webhooks apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
zvonok Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00