You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like to preserve order of rotation in Recurrence group
Current code
users = queryset.filter(organization=request.user.organization, public_primary_key__in=data).distinct()
preserve order
users = []
for pk in data:
user = queryset.filter(public_primary_key=pk).first()
if not user:
raise serializers.ValidationError(f"User with ID {pk} does not exist.")
users.append(user)
If it possible that we provide PR for this ?
Product Area
Schedules
Anything else to add?
No response
The text was updated successfully, but these errors were encountered:
The current version of Grafana OnCall, at the time this issue was opened, is v1.14.1. If your issue pertains to an older version of Grafana OnCall, please be sure to list it in the PR description. Thank you 😄!
What would you like to see!
We would like to preserve order of rotation in Recurrence group
Current code
users = queryset.filter(organization=request.user.organization, public_primary_key__in=data).distinct()
preserve order
users = []
for pk in data:
user = queryset.filter(public_primary_key=pk).first()
if not user:
raise serializers.ValidationError(f"User with ID {pk} does not exist.")
users.append(user)
If it possible that we provide PR for this ?
Product Area
Schedules
Anything else to add?
No response
The text was updated successfully, but these errors were encountered: