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

Fixes reading properties with the same type #427

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

m1kola
Copy link
Member

@m1kola m1kola commented Sep 21, 2023

Some properties like olm.package only can appear in a bundle once and we currently handle this correctly.

However properties such as olm.gvk and olm.gvk.required can be present multiple times in the list. The current implementation overrides all the instances with the one which is the last in the list.

This modifies the code to be able to read in both cases.

Closes #258

Description

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 21, 2023
@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Patch coverage: 92.59% and project coverage change: -0.06% ⚠️

Comparison is base (52a1e28) 84.42% compared to head (915505f) 84.37%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #427      +/-   ##
==========================================
- Coverage   84.42%   84.37%   -0.06%     
==========================================
  Files          23       23              
  Lines         777      787      +10     
==========================================
+ Hits          656      664       +8     
- Misses         86       87       +1     
- Partials       35       36       +1     
Flag Coverage Δ
e2e 66.83% <74.07%> (-0.09%) ⬇️
unit 76.73% <92.59%> (+0.04%) ⬆️

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

Files Changed Coverage Δ
internal/catalogmetadata/types.go 97.29% <92.59%> (-2.71%) ⬇️

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

@m1kola m1kola marked this pull request as ready for review September 21, 2023 10:16
@m1kola m1kola requested a review from a team as a code owner September 21, 2023 10:16
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 21, 2023
Some properties like `olm.package` only can appear in a bundle once
and we currently handle this correctly.

However properties such as `olm.gvk` and `olm.gvk.required`
can be present multiple times in the list. The current
implementation overrides all the instances with the one which is
the last in the list.

This modifies the code to be able to read in both cases.

Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
@joelanford joelanford added this pull request to the merge queue Sep 21, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Sep 21, 2023
@m1kola m1kola added this pull request to the merge queue Sep 21, 2023
Merged via the queue into operator-framework:main with commit 06f97d1 Sep 21, 2023
11 of 12 checks passed
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.

Ensure the FBC --> entity translation for bundle properties is not lossy
2 participants