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

Fix getFromThrough() function for ShortRefs #11386

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented Dec 5, 2023

What this PR does / why we need it:

Since chunks don't necessarily have the same duration, we cannot assume that the last item of a slice sorted by From time also has the greatest Through time.

Copy link
Contributor

github-actions bot commented Dec 5, 2023

Trivy scan found the following vulnerabilities:

@chaudum chaudum force-pushed the chaudum/fix-getfromthrough-func branch from b9fc557 to bd9287d Compare December 5, 2023 09:37
@pull-request-size pull-request-size bot added size/M and removed size/S labels Dec 5, 2023
@chaudum chaudum marked this pull request as ready for review December 5, 2023 09:37
@chaudum chaudum requested a review from a team as a code owner December 5, 2023 09:37
Since chunks don't necessarily have the same duration, we cannot assume
that the last item of a slice sorted by From time also has the greatest
Through time.

Signed-off-by: Christian Haudum <[email protected]>
@chaudum chaudum force-pushed the chaudum/fix-getfromthrough-func branch from bd9287d to 80141bb Compare December 5, 2023 10:33
@chaudum chaudum merged commit 79693d7 into main Dec 5, 2023
7 checks passed
@chaudum chaudum deleted the chaudum/fix-getfromthrough-func branch December 5, 2023 13:58
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
**What this PR does / why we need it**:

Since chunks don't necessarily have the same duration, we cannot assume
that the last item of a slice sorted by `From` time also has the
greatest `Through` time.

Signed-off-by: Christian Haudum <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants