Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve UI Order in Recurrence group in rotation #5427

Open
jayhyuk opened this issue Jan 29, 2025 · 1 comment
Open

Preserve UI Order in Recurrence group in rotation #5427

jayhyuk opened this issue Jan 29, 2025 · 1 comment

Comments

@jayhyuk
Copy link

jayhyuk commented Jan 29, 2025

What would you like to see!

Image
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

Copy link
Contributor

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 😄!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant