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

fix(config): ignore first change notification in ListenForCustomConfi… #315

Merged
merged 1 commit into from
Mar 28, 2022

Conversation

jenmwms
Copy link
Contributor

@jenmwms jenmwms commented Mar 28, 2022

…gChanges

The first change notification causes issues with values that have
been overriden. It needs to be ignored, similar to regular config
ListenForChanges.

Fixes #314

Signed-off-by: Jennifer Williams [email protected]

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?)

Testing Instructions

Tested with WSL using the app-functions-sdk-go/app-service-template. Consul already running, make build the new-app-service, and apply override of SomeValue with anything other than default 123:
APPCUSTOM_SOMEVALUE=334 ./new-app-service -cp

New Dependency Instructions (If applicable)

…gChanges

The first change notification causes issues with values that have
been overriden. It needs to be ignored, similar to regular config
ListenForChanges.

Fixes edgexfoundry#314

Signed-off-by: Jennifer Williams <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Merging #315 (698b846) into main (e2d14c6) will decrease coverage by 0.20%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #315      +/-   ##
==========================================
- Coverage   56.83%   56.62%   -0.21%     
==========================================
  Files          18       18              
  Lines        1105     1109       +4     
==========================================
  Hits          628      628              
- Misses        453      457       +4     
  Partials       24       24              
Impacted Files Coverage Δ
bootstrap/config/config.go 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e2d14c6...698b846. Read the comment docs.

Copy link
Member

@lenny-goodell lenny-goodell left a comment

Choose a reason for hiding this comment

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

LGTM

@lenny-goodell lenny-goodell merged commit 6332299 into edgexfoundry:main Mar 28, 2022
jinlinGuan pushed a commit to IOTechSystems/go-mod-bootstrap that referenced this pull request Apr 29, 2022
…gChanges (edgexfoundry#315)

The first change notification causes issues with values that have
been overriden. It needs to be ignored, similar to regular config
ListenForChanges.

Fixes edgexfoundry#314

Signed-off-by: Jennifer Williams <[email protected]>
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.

Issue overriding AppCustom settings with enviroment variables
3 participants