Skip to content

refactor!: Change Database configuration to be single instance#4308

Merged
lenny-goodell merged 2 commits intoedgexfoundry:mainfrom
lenny-goodell:refactor-db-config
Jan 26, 2023
Merged

refactor!: Change Database configuration to be single instance#4308
lenny-goodell merged 2 commits intoedgexfoundry:mainfrom
lenny-goodell:refactor-db-config

Conversation

@lenny-goodell
Copy link
Copy Markdown
Member

@lenny-goodell lenny-goodell commented Jan 25, 2023

BREAKING CHANGE: Database configuration for services has changed from a Map to a single instance

closes #4131

Signed-off-by: Leonard Goodell leonard.goodell@intel.com

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/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?) N/A
  • 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?)
    TBD

Testing Instructions

run make docker using this branch
run make run ds-virtual dev from compose builder from edgexfoundry/edgex-compose#328
Verify all service bootstrap successfully

New Dependency Instructions (If applicable)

BREAKING CHANGE: Database configuation for services has changed from a Map to a single instance

closes edgexfoundry#4131

Signed-off-by: Leonard Goodell <leonard.goodell@intel.com>
Copy link
Copy Markdown

@jim-wang-yutsung jim-wang-yutsung left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Leonard Goodell <leonard.goodell@intel.com>
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
36.7% 36.7% Duplication

Copy link
Copy Markdown
Collaborator

@bnevis-i bnevis-i left a comment

Choose a reason for hiding this comment

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

Look ok, but honestly I don't think a lot of these services need "database" anymore as much as they need "messagebus"

@lenny-goodell
Copy link
Copy Markdown
Member Author

Look ok, but honestly I don't think a lot of these services need "database" anymore as much as they need "messagebus"

@bnevis-i , the MessageBus doesn't provide any persistence. ;-)

@lenny-goodell lenny-goodell merged commit a37026e into edgexfoundry:main Jan 26, 2023
@lenny-goodell lenny-goodell deleted the refactor-db-config branch January 26, 2023 00:01
Copy link
Copy Markdown

@marcpfuller marcpfuller left a comment

Choose a reason for hiding this comment

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

LGTM

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.

[Edgex 3.0] Refactor Database config to simplify to single DB rather than collection of DBs

4 participants