Skip to content

Add classification filter for latest images.#178

Merged
Gerrit91 merged 2 commits into
mainfrom
latest-image-classification
Apr 2, 2026
Merged

Add classification filter for latest images.#178
Gerrit91 merged 2 commits into
mainfrom
latest-image-classification

Conversation

@Gerrit91
Copy link
Copy Markdown
Contributor

@Gerrit91 Gerrit91 commented Apr 2, 2026

Description

Depends on:

Closes #150.

Used AI-Tools ✨

  • None used for generation

@metal-robot metal-robot Bot added the area: control-plane Affects the metal-stack control-plane area. label Apr 2, 2026
@metal-robot metal-robot Bot added this to Development Apr 2, 2026
Comment thread pkg/repository/image.go
}

internalImages = append(internalImages, i)
func (r *imageRepository) GetMostRecentImageFor(ctx context.Context, rq *apiv2.ImageServiceLatestRequest) (*apiv2.Image, error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This overlaps with what i already changed in #128

@majst01 majst01 marked this pull request as ready for review April 2, 2026 09:35
@majst01 majst01 requested a review from a team as a code owner April 2, 2026 09:35
@Gerrit91 Gerrit91 merged commit e0f67f2 into main Apr 2, 2026
24 of 26 checks passed
@Gerrit91 Gerrit91 deleted the latest-image-classification branch April 2, 2026 09:43
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 2, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.28%. Comparing base (f86af7d) to head (775c846).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/repository/image.go 71.42% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #178      +/-   ##
==========================================
- Coverage   71.28%   71.28%   -0.01%     
==========================================
  Files         189      189              
  Lines       14144    14140       -4     
==========================================
- Hits        10083    10079       -4     
  Misses       3071     3071              
  Partials      990      990              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

area: control-plane Affects the metal-stack control-plane area.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Allow specify classification for GetLatestImage endpoint

2 participants