Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
state: Database and modelBackend refactoring #7050
Conversation
mjs
added some commits
Feb 28, 2017
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Tests failed |
|
$$mongodb-death-on-windows$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
jujubot
merged commit 8a97067
into
juju:develop
Mar 1, 2017
mjs
deleted the
mjs:state-modelbackend-refactor
branch
Mar 1, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mjs commentedMar 1, 2017
Description of change
In order to support new State-like types (coming soon) and allow them to leverage existing functionality in the state package, some low level txn functionality which was on State has been moved onto Database. Additionally the modelBackend interface has been extended to allow it to be used more widely, providing access to the underlying Database.
The state settings and watcher implementations are now completely based on modelBackend instead of State, allowing alternative State types to use these areas too.
QA steps
This change shouldn't affect external behaviour. Unit tests still pass and a simple bootstrap, deploy, destroy check was undertaken to ensure basic functionality is still OK.
Documentation changes
Not required - no used visible changes.
Bug reference
N.A.