Merge lp://staging/~gary/juju-gui/nodeChangeHandler into lp://staging/juju-gui/experimental
Status: | Merged |
---|---|
Merged at revision: | 1027 |
Proposed branch: | lp://staging/~gary/juju-gui/nodeChangeHandler |
Merge into: | lp://staging/juju-gui/experimental |
Diff against target: |
282 lines (+93/-51) 5 files modified
app/views/databinding.js (+40/-12) app/views/inspector.js (+1/-1) test/test_databinding.js (+49/-35) test/test_inspector_constraints.js (+1/-1) test/test_inspector_settings.js (+2/-2) |
To merge this branch: | bzr merge lp://staging/~gary/juju-gui/nodeChangeHandler |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email:
|
Description of the change
Refactor and rename BindingEngine.
This is a small clean-up branch in preparation to cleaning up some of the conflict resolution edge cases. It is largely about refactoring and renaming BindingEngine.
* BindingEngine.
* That method simply calls out to the new method _nodeChanged. It takes a node rather than an event with a node.
* Factored _getBinding out of _nodeChanged to make the code read better and to test the functionality independently.
* Adjusted tests to use _nodeChanged.
* Refactored tests to reuse more code and clean up some lint.
* Added tests for _getBinding.
In addition to those related changes, I made one more peripheral change: I removed an unused argument to unsyncedFields.
Reviewers: mp+184901_ code.launchpad. net,
Message:
Please take a look.
Description: _storeChanged
Refactor and rename BindingEngine.
This is a small clean-up branch in preparation to cleaning up some of _storeChanged.
the conflict resolution edge cases. It is largely about refactoring and
renaming BindingEngine.
* BindingEngine. _storeChanged is now called _nodeChangeHandler.
* That method simply calls out to the new method _nodeChanged. It takes
a node rather than an event with a node.
* Factored _getBinding out of _nodeChanged to make the code read better
and to test the functionality independently.
* Adjusted tests to use _nodeChanged.
* Refactored tests to reuse more code and clean up some lint.
* Added tests for _getBinding.
In addition to those related changes, I made one more peripheral change:
I removed an unused argument to unsyncedFields.
There's not much to QA here. It's just moving bits of code around.
https:/ /code.launchpad .net/~gary/ juju-gui/ nodeChangeHandl er/+merge/ 184901
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/13265045/
Affected files (+95, -51 lines): databinding. js inspector. js databinding. js inspector_ constraints. js inspector_ settings. js
A [revision details]
M app/views/
M app/views/
M test/test_
M test/test_
M test/test_