oncall-engine/engine/apps/schedules
Joey Orlando 6214ffbd66
fix missing users in rotations when RBAC is enabled (#3380)
# Which issue(s) this PR fixes
1. Enable RBAC
2. Create a schedule rotation layer which includes a user whom is Viewer
+ has role `Notifications Receiver` (this is the RBAC role we use to
filter which users show up in the user dropdown in the rotations modal
when creating a rotation)
3. The user _sorta_ shows up in the schedule but they are listed in
`missing_users`

<img width="1166" alt="Screenshot 2023-11-17 at 10 12 30"
src="https://github.com/grafana/oncall/assets/9406895/ae4d6449-3aff-4087-9b05-64645e84b40a">
<img width="1173" alt="Screenshot 2023-11-17 at 10 15 04"
src="https://github.com/grafana/oncall/assets/9406895/3ac4f0b9-49b3-4a7d-bfcf-39a8c51bbb74">


## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [ ] 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-11-20 11:31:07 +00:00
..
ical_events Upgrade to django 4.2.6 and other deps updates (#3176) 2023-10-27 18:45:00 +00:00
migrations add missing db migrations + add additional backend db migration check to CI (#3234) 2023-10-31 16:00:55 -04:00
models Upgrade to django 4.2.6 and other deps updates (#3176) 2023-10-27 18:45:00 +00:00
tasks Notify user when their shift swap request is taken (#2992) 2023-09-07 14:59:54 +00:00
tests fix missing users in rotations when RBAC is enabled (#3380) 2023-11-20 11:31:07 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
constants.py Fix returned shift PK in current user events endpoint (#3036) 2023-09-18 17:49:21 +00:00
exceptions.py shift swap requests model + CRUD endpoints (#2597) 2023-07-21 19:35:19 +00:00
ical_utils.py fix missing users in rotations when RBAC is enabled (#3380) 2023-11-20 11:31:07 +00:00