Skip to content

Tiny fixes - part 2#19531

Open
charmik-redhat wants to merge 2 commits intomasterfrom
charmik/another-couple-of-small-fixes
Open

Tiny fixes - part 2#19531
charmik-redhat wants to merge 2 commits intomasterfrom
charmik/another-couple-of-small-fixes

Conversation

@charmik-redhat
Copy link
Contributor

@charmik-redhat charmik-redhat commented Mar 20, 2026

Description

  • central/deployment/datastore/internal/store/postgres/full_store.go : ContainerImagesView in deployment store should clone the passed query to avoid modifying the original query.
  • central/image/datastore/singleton.go : Skip initializing old image datastore when FlattenImage flag is enabled
  • central/image/service/service_impl.go : ClusterLocal images should be re-enriched (not just pulled existing image from db) after the scan is expired. This check exists for old image model. It was missed when adding equivalent functions for ImageV2

Changes were assisted by Cursor

User-facing documentation

  • CHANGELOG update is not needed
  • documentation is not needed

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

Updated unit tests to verify changes to image service. Changes to deployment datastore and image datastore singleton didn't break anything but are good to have.

@charmik-redhat charmik-redhat requested a review from a team as a code owner March 20, 2026 20:42
@charmik-redhat charmik-redhat requested review from a team and removed request for a team March 20, 2026 20:44
@rhacs-bot
Copy link
Contributor

rhacs-bot commented Mar 20, 2026

Images are ready for the commit at 0402bb0.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-401-g0402bb03b7.

@codecov
Copy link

codecov bot commented Mar 20, 2026

Codecov Report

❌ Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.24%. Comparing base (1765c9e) to head (0402bb0).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
...nt/datastore/internal/store/postgres/full_store.go 0.00% 4 Missing ⚠️
central/image/datastore/singleton.go 0.00% 3 Missing ⚠️
central/image/service/service_impl.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19531      +/-   ##
==========================================
- Coverage   49.24%   49.24%   -0.01%     
==========================================
  Files        2727     2727              
  Lines      205787   205794       +7     
==========================================
  Hits       101345   101345              
- Misses      96906    96913       +7     
  Partials     7536     7536              
Flag Coverage Δ
go-unit-tests 49.24% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants