Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(596)

Issue 13373052: Fix conflict resolution

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by gary.poster
Modified:
10 years, 8 months ago
Reviewers:
mp+184916, jeff.pihach
Visibility:
Public.

Description

Fix conflict resolution Prior to this branch, conflict resolution did not play nicely with our new functionality to show modified fields and to hide/reveal save controls as appropriate. Specifically, these were two problems. * If you set a model value but choose the user's value, the user's value will not be seen as a modified value. * If you resolve a conflict that changes the DOM to match the model, the save dialog should disappear but does not. This branch addresses these issues entirely within the databinding code. In addition, I added a test of basic conflict handling. I cleaned up _getBinding further from my most recent branch. I bound the "resolve" method with the known arguments to make client code simpler. https://code.launchpad.net/~gary/juju-gui/fixConflictResolution/+merge/184916 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix conflict resolution #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -25 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M app/views/databinding.js View 4 chunks +19 lines, -17 lines 0 comments Download
M app/views/inspector.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/test_databinding.js View 3 chunks +86 lines, -6 lines 0 comments Download

Messages

Total messages: 3
gary.poster
Please take a look.
10 years, 8 months ago (2013-09-11 03:35:38 UTC) #1
jeff.pihach
Love the new interactions! LGTM QA OK IE OK https://codereview.appspot.com/13373052/diff/1/app/views/databinding.js File app/views/databinding.js (right): https://codereview.appspot.com/13373052/diff/1/app/views/databinding.js#newcode814 app/views/databinding.js:814: ...
10 years, 8 months ago (2013-09-11 13:11:18 UTC) #2
gary.poster
10 years, 8 months ago (2013-09-11 13:27:06 UTC) #3
*** Submitted:

Fix conflict resolution

Prior to this branch, conflict resolution did not play nicely with our new
functionality to show modified fields and to hide/reveal save controls as
appropriate.  Specifically, these were two problems.

* If you set a model value but choose the user's value, the user's value will
not be seen as a modified value.
* If you resolve a conflict that changes the DOM to match the model, the save
dialog should disappear but does not.

This branch addresses these issues entirely within the databinding code.

In addition, I added a test of basic conflict handling.  I cleaned up
_getBinding further from my most recent branch.  I bound the "resolve" method
with the known arguments to make client code simpler.

R=jeff.pihach
CC=
https://codereview.appspot.com/13373052
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b