feat: add enabled field in DP config - #4937
Conversation
Code Review by Qodo
Context used✅ Tickets:
RHIDP-11988 1. Enabled ignored in bundle
|
PR Summary by QodoAdd WalkthroughsDescription• Introduces enabled as the preferred plugin activation flag, keeping disabled supported. • Centralizes precedence rules (enabled wins) and emits warnings when both fields are set. • Updates installer/merger logic, unit tests, and docs to use enabled consistently. Diagramgraph TD
Cfg[("Dynamic plugins cfg")] --> Merger["merger.ts"] --> Types["types.ts: isPluginDisabled"] --> Oci["installer-oci.ts"] & Npm["installer-npm.ts"]
Types --> Index["index.ts categorize"]
Docs["Docs examples"] --> Cfg
subgraph Legend
direction LR
_cfg[("Config")] ~~~ _code["Code module"] ~~~ _doc["Documentation"]
end
High-Level AssessmentThe following are alternative approaches to this PR: 1. Normalization step at config-load time
2. Hard deprecation (remove `disabled` support sooner)
3. Schema validation (fail on both fields instead of warning)
Recommendation: The chosen approach (introduce File ChangesEnhancement (5)
Tests (3)
Documentation (4)
|
Signed-off-by: Hope Hadfield <hhadfiel@redhat.com>
Signed-off-by: Hope Hadfield <hhadfiel@redhat.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4937 +/- ##
==========================================
- Coverage 55.82% 55.25% -0.58%
==========================================
Files 121 109 -12
Lines 2350 2132 -218
Branches 562 536 -26
==========================================
- Hits 1312 1178 -134
+ Misses 1032 954 -78
+ Partials 6 0 -6
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Signed-off-by: Hope Hadfield <hhadfiel@redhat.com>
|
The container image build workflow finished with status: |
|
The container image build workflow finished with status: |
Signed-off-by: Hope Hadfield <hhadfiel@redhat.com>
Signed-off-by: Hope Hadfield <hhadfiel@redhat.com>
|
fe578e0
into
redhat-developer:main



Description
Adds the
enabledfield with backwards compatibilitySee redhat-developer/rhdh-plugin-export-overlays#2577 for relevant change in DPDY generation
Which issue(s) does this PR fix
PR acceptance criteria
Please make sure that the following steps are complete:
How to test changes / Special notes to the reviewer