oncall-engine/engine/apps/slack/tests
Joey Orlando 2576954b51
add shifts property to shift swap request response schema + finalize slack message layout (#2712)
# What this PR does

- drop `GET /api/internal/v1/shift_swaps/<id>/shifts` endpoint in favour
of adding a `shifts` property to the response schema for all shift swap
endpoints (expect `GET /api/internal/v1/shift_swaps` (ie. list all))
- Update the Slack message layout:

<img width="590" alt="Screenshot 2023-08-01 at 17 28 44"
src="https://github.com/grafana/oncall/assets/9406895/84a51614-5dd6-48ec-ae81-fef4bc32fec9">

**Note**: about the highlighted lines. This is a small issue w/ the
`ShiftSwapRequest.shifts` method. @matiasb is already helping out here 🙏

**Other stuff**
- adds some type hints related to the code I was working around with
- slightly refactor `apps.slack.utils.format_datetime_to_slack` to make
it more generic for the use case in this PR

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2023-08-01 14:21:02 -04:00
..
test_scenario_steps add shifts property to shift swap request response schema + finalize slack message layout (#2712) 2023-08-01 14:21:02 -04:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
conftest.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
factories.py remove SlackActionRecord model/table (#2201) 2023-06-13 10:56:06 +00:00
test_interactive_api_endpoint.py Shift Swap Requests in Slack + improve typing for Slack django app (#2653) 2023-07-28 15:11:38 +00:00
test_parse_slack_usernames.py Schedules alpha fixes (#541) 2022-09-21 11:19:59 +01:00
test_populate_slack_channels.py Fix slack channels sync (#2571) 2023-07-19 07:17:21 +00:00
test_reset_slack.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_slack_renderer.py Update Slack "invite" feature to use direct paging (#2562) 2023-07-18 08:36:11 +00:00
test_user_group.py Fix test 2023-02-02 14:28:37 +00:00