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

feat: add limit to SelectSeries API #3602

Merged
merged 3 commits into from
Oct 3, 2024
Merged

feat: add limit to SelectSeries API #3602

merged 3 commits into from
Oct 3, 2024

Conversation

kolesnikovae
Copy link
Collaborator

@kolesnikovae kolesnikovae commented Oct 2, 2024

Resolves #2758

cc @grafakus

Note that the change affects the order of series: even if the limit is not specified, series are ordered by value first (descending) and then by labels (ascending). AFAIK, we do not rely on the order anywhere.

@kolesnikovae kolesnikovae marked this pull request as ready for review October 2, 2024 09:00
@kolesnikovae kolesnikovae requested a review from a team as a code owner October 2, 2024 09:00
@kolesnikovae kolesnikovae requested a review from grafakus October 2, 2024 09:00
@grafakus
Copy link
Collaborator

grafakus commented Oct 2, 2024

Looks great, thank you!

Copy link
Contributor

@bryanhuhta bryanhuhta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

pkg/model/time_series_merger.go Outdated Show resolved Hide resolved
Co-authored-by: Bryan Huhta <32787160+bryanhuhta@users.noreply.github.com>
@kolesnikovae kolesnikovae enabled auto-merge (squash) October 3, 2024 02:51
@kolesnikovae kolesnikovae merged commit a3b9a83 into main Oct 3, 2024
18 checks passed
@kolesnikovae kolesnikovae deleted the feat/series-limit branch October 3, 2024 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option to limit the number of series returned in SelectSeries API
3 participants