Skip to content

config: persist config subgroups with their name and group id - #14050

Open
nagaboinaramgopal wants to merge 1 commit into
apache:4.20from
nagaboinaramgopal:fix/config-subgroup-null-name
Open

config: persist config subgroups with their name and group id#14050
nagaboinaramgopal wants to merge 1 commit into
apache:4.20from
nagaboinaramgopal:fix/config-subgroup-null-name

Conversation

@nagaboinaramgopal

Copy link
Copy Markdown

createOrupdateConfigObject created a missing configuration subgroup with the no-arg ConfigurationSubGroupVO constructor, so the row was written with a null name and null group_id. Because the name stayed null, the next findByNameAndGroup lookup missed again and inserted another null row on every management-server restart. Build the subgroup with its name and precedence and set its group id, matching the sibling configuration-group branch.

Tested: new unit test createConfigObjectPersistsSubGroupWithNameAndGroupId (captures the persisted VO); ConfigDepotImplTest green.

createOrupdateConfigObject created a missing configuration subgroup with the
no-arg ConfigurationSubGroupVO constructor, so the row was written with a null
name and null group_id. Because the name stayed null, the next
findByNameAndGroup lookup missed again and inserted another null row on every
management-server restart. Build the subgroup with its name and precedence and
set its group id, matching the sibling configuration-group branch.
@DaanHoogland DaanHoogland added this to the 4.20.4 milestone Sep 4, 2026
@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 16.35%. Comparing base (2cd8c5e) to head (ad12283).

Additional details and impacted files
@@            Coverage Diff            @@
##               4.20   #14050   +/-   ##
=========================================
  Coverage     16.34%   16.35%           
- Complexity    13574    13579    +5     
=========================================
  Files          5669     5669           
  Lines        501368   501369    +1     
  Branches      60903    60903           
=========================================
+ Hits          81964    81982   +18     
+ Misses       410219   410205   -14     
+ Partials       9185     9182    -3     
Flag Coverage Δ
uitests 4.14% <ø> (ø)
unittests 17.21% <100.00%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 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

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

3 participants