chore: replace disabled with enabled in DP configs#3098
Conversation
Signed-off-by: Hope Hadfield <hhadfiel@redhat.com>
Signed-off-by: Hope Hadfield <hhadfiel@redhat.com>
PR Summary by QodoReplace dynamic-plugins
AI Description
Diagram
High-Level Assessment
Files changed (24)
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3098 +/- ##
==========================================
+ Coverage 61.51% 61.76% +0.25%
==========================================
Files 37 37
Lines 2162 2171 +9
==========================================
+ Hits 1330 1341 +11
+ Misses 691 690 -1
+ Partials 141 140 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Code Review by Qodo
Context used 1.
|
| existingPlugin.Enabled = plugin.Enabled | ||
| existingPlugin.Disabled = plugin.Disabled | ||
| pluginMap[plugin.Package] = existingPlugin |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Signed-off-by: Hope Hadfield <hhadfiel@redhat.com>
| if plugin.Enabled != nil { | ||
| existingPlugin.Enabled = plugin.Enabled | ||
| } |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
Code review by qodo was updated up to the latest commit b1b4040 |
gazarenkov
left a comment
There was a problem hiding this comment.
As we claim backward compatibility, related tests required.
See also comment from qodo, it is related.
| if plugin.Enabled != nil { | ||
| existingPlugin.Enabled = plugin.Enabled | ||
| } |
Signed-off-by: Hope Hadfield <hhadfiel@redhat.com>
Signed-off-by: Hope Hadfield <hhadfiel@redhat.com>
|



Description
Replace
disabled: true/falsewithenabled: true/falseacross all YAML configs, examples, and test data.pkg/model/dynamic-plugins.go: addedEnabled*bool field toDynaPlugin, addedIsDisabled()resolver (Enabledtakes precedence overDisabled), merge copies both fieldsIsDisabled()assertionsWhich issue(s) does this PR fix or relate to
PR acceptance criteria
How to test changes / Special notes to the reviewer
Building Container Images for Testing
Need to test container images from this PR?
For Maintainers: To trigger a test image build, review the code and comment
/build-images.This always builds the HEAD of the PR branch.
For Contributors: Ask a maintainer to run
/build-images.Images will be built and pushed to Quay with links posted in comments.