oncall-engine/engine/apps/api/serializers
Joey Orlando b260a8e82b
fix: address RBAC Admin issue (#5087)
# What this PR does

**NOTE**: should be merged/released after
https://github.com/grafana/irm/pull/183 has been rolled out to most
stacks (as that frontend update is what will grant that new RBAC
"action" to users whom already have the "OnCall Admin" RBAC role
assigned)

tldr; from the comment in the `RBACPermission.Permission.ADMIN` comment
in `engine/apps/api/permissions.py`:

> NOTE: this is a bit of a hack for now. See
https://github.com/grafana/support-escalations/issues/12625
> Basically when it comes to filtering teams that are configured to
share their resources with
> "Team members and admins", we have no way of knowing, when a user is
ACTUALLY an Admin when RBAC is involed.
>
> Example: Take a user with the basic role of None/Editor/Viewer but
with the "OnCall Admin" role assigned.
> Without this RBAC permission, we have no way of knowing that the user
is ACTUALLY an "Admin".

## Which issue(s) this PR closes

Closes https://github.com/grafana/support-escalations/issues/12625

## 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] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-09-26 12:40:07 -04:00
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert.py Improve OpenAPI schema coverage (#3629) 2024-01-12 15:11:22 +00:00
alert_group.py Speed up internal api endpoints (#4830) 2024-08-15 14:20:55 +00:00
alert_group_escalation_snapshot.py cleanup CustomButton backend code + add ngrok/express outgoing webhook e2e test (#2544) 2024-03-28 15:37:22 +00:00
alert_group_table_settings.py Fix alert group columns validation (#3577) 2023-12-15 17:15:50 +00:00
alert_receive_channel.py Reduce a number of requests to db on alert_receive_channel internal api endpoint (#4805) 2024-08-13 09:24:30 +00:00
alert_receive_channel_connection.py Backend support for "connected" integrations (#4030) 2024-03-07 17:47:33 +00:00
alerts_field_cache_buster_mixin.py Fix broken openapi schema + add integration test (#3364) 2023-11-16 12:15:05 +00:00
channel_filter.py Update regex to jinja route conversion to correctly escape double quotes (#4705) 2024-07-19 11:56:22 +00:00
custom_serializers.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
direct_paging.py add POST /escalation public API endpoint + add public API docs for teams/organization endpoints (#4815) 2024-08-15 18:31:35 +00:00
escalation_chain.py Fix team changing on PUT request if team is not in request data (#3530) 2023-12-07 14:44:52 +00:00
escalation_policy.py Allow custom wait delay (#4446) 2024-06-03 13:06:47 +00:00
integration_heartbeat.py Improve OpenAPI schema coverage (#3629) 2024-01-12 15:11:22 +00:00
labels.py Support prescribed labels (#3848) 2024-02-20 14:42:51 +08:00
live_setting.py Allow no-auth SMTP connection for email notifications (#759) 2022-11-03 16:18:37 +00:00
on_call_shifts.py fix: Add rolling users validation for oncall shift API (#5050) 2024-09-20 21:06:33 +00:00
organization.py Unified Slack app reinstall (#4682) 2024-07-19 11:53:06 +00:00
organization_slack_settings.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
public_api_token.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
resolution_note.py Resolution note source mobile app (#3174) 2023-10-20 15:22:45 +01:00
schedule_base.py Speed up internal api endpoints (#4830) 2024-08-15 14:20:55 +00:00
schedule_calendar.py Refactor gaps and empty shift checks (#3785) 2024-01-31 15:25:06 +01:00
schedule_ical.py Refactor gaps and empty shift checks (#3785) 2024-01-31 15:25:06 +01:00
schedule_polymorphic.py Speed up internal api endpoints (#4830) 2024-08-15 14:20:55 +00:00
schedule_reminder.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
schedule_web.py Refactor gaps and empty shift checks (#3785) 2024-01-31 15:25:06 +01:00
shift_swap.py Speed up internal api endpoints (#4830) 2024-08-15 14:20:55 +00:00
slack_channel.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
slack_user_identity.py Improve OpenAPI schema coverage (#3629) 2024-01-12 15:11:22 +00:00
team.py Fix calculating number of oncall users per team (#3773) 2024-01-29 14:32:03 +00:00
telegram.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
user.py Speed up internal api endpoints (#4830) 2024-08-15 14:20:55 +00:00
user_group.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
user_notification_policy.py fix: address RBAC Admin issue (#5087) 2024-09-26 12:40:07 -04:00
webhook.py Allow setting integration_filter to null in webhooks internal API (#4011) 2024-03-05 17:11:47 +00:00