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

feat: Add custom structured configuration capability #753

Merged
merged 5 commits into from
Mar 24, 2021

Conversation

lenny-goodell
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

No custom structured configuration capability exists
No capability to watch custom configuration for changes exists

Issue Number: #557 & #578

What is the new behavior?

Custom structured configuration capability now exists
Capability to watch a section of the custom configuration for changes when using the Configuration Provider now exists

Does this PR introduce a breaking change?

  • Yes
  • No

Are there any new imports or modules? If so, what are they used for and why?

No

Are there any specific instructions or things that should be known prior to reviewing?

Other information

@lenny-goodell lenny-goodell changed the title feat: Add custom structure configuration capability feat: Add custom structured configuration capability Mar 22, 2021
Includes capability to watch a section of the custom configuration for changes when using the Configuration Provider

closes #557 & #578

Signed-off-by: lenny <leonard.goodell@intel.com>
AlexCuse
AlexCuse previously approved these changes Mar 22, 2021
jim-wang-intel
jim-wang-intel previously approved these changes Mar 22, 2021
Copy link
Contributor

@jim-wang-intel jim-wang-intel left a comment

Choose a reason for hiding this comment

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

LGTM

app-service-template/main.go Outdated Show resolved Hide resolved
…hanges

Thease are need for the service's witaing got chnages wait loop so it exits properly

Signed-off-by: lenny <leonard.goodell@intel.com>
jim-wang-intel
jim-wang-intel previously approved these changes Mar 22, 2021
Signed-off-by: lenny <leonard.goodell@intel.com>
jim-wang-intel
jim-wang-intel previously approved these changes Mar 23, 2021
AlexCuse
AlexCuse previously approved these changes Mar 23, 2021
Copy link
Contributor

@AlexCuse AlexCuse left a comment

Choose a reason for hiding this comment

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

Good catch

jim-wang-intel
jim-wang-intel previously approved these changes Mar 23, 2021
Copy link
Contributor

@jim-wang-intel jim-wang-intel left a comment

Choose a reason for hiding this comment

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

LGTM

Use of channel causes too much unneeded complexity when a callback function will suffice.

Signed-off-by: lenny <leonard.goodell@intel.com>
jim-wang-intel
jim-wang-intel previously approved these changes Mar 23, 2021
Signed-off-by: lenny <leonard.goodell@intel.com>
@lenny-goodell lenny-goodell merged commit bc08826 into edgexfoundry:master Mar 24, 2021
@lenny-goodell lenny-goodell deleted the custom-config2 branch March 24, 2021 17:29
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.

Add support for custom structures in ApplicationSettings Add callback for configuration changes from Consul
3 participants