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

Remove the start/end filtering from aggregates resource query #1396

Conversation

pedro-martins
Copy link
Contributor

@pedro-martins pedro-martins commented Aug 19, 2024

The use of the start/end filtering in resources listage in the aggregates api was generating an undesired behavior that was not showing measures of resources when the measures timestamp were from before the resources start time, which were displayed before this filter was introduced. This patch restores the old behavior.

To achieve the current filtering behavior, now the users must explicitly apply these start/end filtering in the "search"
parameter in the aggregates query.

The use of the start/end filtering in resources listage in the
aggregates api was generating an undesired behavior that was
not showing measures of resources when the measures timestamp
were from before the resources start time, which were displayed
before this filter was introduced. This patch restores the old
behavior.
Copy link
Member

@chungg chungg left a comment

Choose a reason for hiding this comment

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

lgtm if we're ok with behaviour

Copy link
Contributor

@tobias-urdin tobias-urdin left a comment

Choose a reason for hiding this comment

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

am i understanding it correctly that this brings back looping through the entire dataset like was done before? so we keep the same behaviour that metrics with timestamp before resource start date is shown in the result?

but we still keep parts of the previous commit because it improves resource history by filtering in query instead of in code?

gnocchi/rest/aggregates/api.py Show resolved Hide resolved
@tobias-urdin tobias-urdin merged commit 73e034b into gnocchixyz:master Aug 19, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants