Skip to content

refactor: Replace MergeValues with full reload in applyWritableUpdates#878

Merged
judehung merged 1 commit intoedgexfoundry:mainfrom
FelixTing:issue-877
Jul 3, 2025
Merged

refactor: Replace MergeValues with full reload in applyWritableUpdates#878
judehung merged 1 commit intoedgexfoundry:mainfrom
FelixTing:issue-877

Conversation

@FelixTing
Copy link
Member

@FelixTing FelixTing commented Jul 2, 2025

fix: #877 #534

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/go-mod-bootstrap/blob/main/.github/Contributing.md

PR Checklist

Please check if your PR fulfills the following requirements:

  • I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
  • I am not introducing a new dependency (add notes below if you are)
  • I have added unit tests for the new feature or bug fix (if not, why?)
  • I have fully tested (add details below) this the new feature or bug fix (if not, why?)
  • I have opened a PR for the related docs change (if not, why?)

@FelixTing FelixTing requested a review from judehung July 2, 2025 01:10

if err := utils.MergeValues(serviceConfig.GetWritablePtr(), raw); err != nil {
lc.Errorf("failed to apply Writable change to service configuration: %v", err)
serviceConfigCopy, err := copyConfigurationStruct(serviceConfig)
Copy link
Member

@judehung judehung Jul 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added error check

Signed-off-by: FelixTing <felix@iotechsys.com>
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 32 lines in your changes missing coverage. Please review.

Project coverage is 46.15%. Comparing base (1ba04f9) to head (b283963).

Files with missing lines Patch % Lines
bootstrap/config/config.go 0.00% 32 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #878      +/-   ##
==========================================
- Coverage   46.40%   46.15%   -0.26%     
==========================================
  Files          62       62              
  Lines        3644     3664      +20     
==========================================
  Hits         1691     1691              
- Misses       1831     1851      +20     
  Partials      122      122              

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

@FelixTing FelixTing requested a review from judehung July 2, 2025 07:50
Copy link
Member

@judehung judehung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@judehung judehung merged commit 797bfb7 into edgexfoundry:main Jul 3, 2025
3 checks passed
@FelixTing FelixTing deleted the issue-877 branch July 3, 2025 13:52
FelixTing added a commit to FelixTing/go-mod-bootstrap that referenced this pull request Oct 14, 2025
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.

applyWritableUpdates cannot handle deleted config keys

3 participants