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

Issue 13340047: Eliminate unnecessary conflicts

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by gary.poster
Modified:
10 years, 7 months ago
Reviewers:
mp+185256, rharding, benjamin.saller
Visibility:
Public.

Description

Eliminate unnecessary conflicts Fixes the following issues: * If you change one model parent.child value (e.g. constraints.arch) in the inspector and then set a model parent.child value (e.g., constaints.cpu-cores) in the db, you will get an unnecessary conflict on the arch. * resetDOMToModel could not clear conflicts. I also added a lot of comments, and a couple of tests for pre-existing functionality that I broke during my refactoring. https://code.launchpad.net/~gary/juju-gui/eliminateUnnecessaryConflicts/+merge/185256 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Eliminate unnecessary conflicts #

Patch Set 3 : Eliminate unnecessary conflicts #

Total comments: 11

Patch Set 4 : Eliminate unnecessary conflicts #

Total comments: 4

Patch Set 5 : Eliminate unnecessary conflicts #

Patch Set 6 : Eliminate unnecessary conflicts #

Total comments: 25

Patch Set 7 : Eliminate unnecessary conflicts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -137 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M app/views/databinding.js View 1 2 3 4 11 chunks +173 lines, -62 lines 0 comments Download
M app/views/inspector.js View 1 2 3 4 12 chunks +27 lines, -36 lines 0 comments Download
M test/test_conflict_ux.js View 1 2 3 4 2 chunks +3 lines, -5 lines 0 comments Download
M test/test_databinding.js View 1 2 3 4 10 chunks +155 lines, -34 lines 0 comments Download

Messages

Total messages: 17
gary.poster
Please take a look.
10 years, 7 months ago (2013-09-12 13:00:31 UTC) #1
gary.poster
Please take a look.
10 years, 7 months ago (2013-09-12 13:05:42 UTC) #2
gary.poster
Please take a look.
10 years, 7 months ago (2013-09-12 13:14:04 UTC) #3
rharding
code looks good. One note about resolver being able to be null and that should ...
10 years, 7 months ago (2013-09-12 13:42:24 UTC) #4
rharding
QA not good: - Using the qa instructions, when I have the back end change ...
10 years, 7 months ago (2013-09-12 13:47:54 UTC) #5
rharding
Noted where the change is happening. https://codereview.appspot.com/13340047/diff/13001/app/views/databinding.js File app/views/databinding.js (right): https://codereview.appspot.com/13340047/diff/13001/app/views/databinding.js#newcode1000 app/views/databinding.js:1000: binding.field.set(node, value); this ...
10 years, 7 months ago (2013-09-12 15:14:12 UTC) #6
rharding
Final note on where I think the issue is and I'm not sure I follow ...
10 years, 7 months ago (2013-09-12 15:23:33 UTC) #7
rharding
LGTM qa-ok. I was missing the .set() call was not touching one field in the ...
10 years, 7 months ago (2013-09-12 17:54:50 UTC) #8
gary.poster
On 2013/09/12 17:54:50, rharding wrote: > LGTM qa-ok. I was missing the .set() call was ...
10 years, 7 months ago (2013-09-12 18:01:50 UTC) #9
gary.poster
https://codereview.appspot.com/13340047/diff/13001/app/views/databinding.js File app/views/databinding.js (right): https://codereview.appspot.com/13340047/diff/13001/app/views/databinding.js#newcode906 app/views/databinding.js:906: var value = binding.values[binding.name] = binding.get(model); On 2013/09/12 15:23:34, ...
10 years, 7 months ago (2013-09-12 18:04:24 UTC) #10
benjamin.saller
LGTM, but I do think we need to verify the format case is as expected. ...
10 years, 7 months ago (2013-09-12 18:30:35 UTC) #11
gary.poster
Please take a look.
10 years, 7 months ago (2013-09-13 03:58:06 UTC) #12
gary.poster
Please take a look.
10 years, 7 months ago (2013-09-13 03:59:12 UTC) #13
gary.poster
Thank you to both Rick and Ben for their reviews. I responded to both of ...
10 years, 7 months ago (2013-09-13 04:26:46 UTC) #14
gary.poster
Rick, I should add that I suggest looking at the incremental diff by comparing revision ...
10 years, 7 months ago (2013-09-13 04:29:11 UTC) #15
rharding
LGTM thanks for update and the walk through on hangouts. I appreciate that you thought ...
10 years, 7 months ago (2013-09-13 12:20:38 UTC) #16
gary.poster
10 years, 7 months ago (2013-09-13 12:27:12 UTC) #17
*** Submitted:

Eliminate unnecessary conflicts

Fixes the following issues:
 * If you change one model parent.child value (e.g. constraints.arch) in the
inspector and then set a model parent.child value (e.g., constaints.cpu-cores)
in the db, you will get an unnecessary conflict on the arch.
 * resetDOMToModel could not clear conflicts.

I also added a lot of comments, and a couple of tests for pre-existing
functionality that I broke during my refactoring.

R=rharding, benjamin.saller
CC=
https://codereview.appspot.com/13340047
Sign in to reply to this message.

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