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

Issue 87970043: New constraints validation and merge (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by wallyworld
Modified:
10 years ago
Reviewers:
mp+215807, fwereade
Visibility:
Public.

Description

New constraints validation and merge A new constraints Validator implementation is introduced, which provides validation and merging support for constraints. It allows for conflicting attributes and unsupported attributes to be registered, and does the right thing with these. To illustrate the point, a new constraints attribute instance-type is also added, which will be used in a followup branch. https://code.launchpad.net/~wallyworld/juju-core/constraints-validation-merge/+merge/215807 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : New constraints validation and merge #

Patch Set 3 : New constraints validation and merge #

Patch Set 4 : New constraints validation and merge #

Total comments: 6

Patch Set 5 : New constraints validation and merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+746 lines, -184 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M constraints/constraints.go View 10 chunks +131 lines, -50 lines 0 comments Download
M constraints/constraints_test.go View 5 chunks +152 lines, -131 lines 0 comments Download
A constraints/export_test.go View 1 chunk +18 lines, -0 lines 0 comments Download
A constraints/validation.go View 1 2 3 4 1 chunk +134 lines, -0 lines 0 comments Download
A constraints/validation_test.go View 1 2 3 4 1 chunk +296 lines, -0 lines 0 comments Download
M state/addmachine.go View 1 chunk +5 lines, -1 line 0 comments Download
M state/prechecker_test.go View 1 chunk +3 lines, -1 line 0 comments Download
M state/service.go View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 7
wallyworld
Please take a look.
10 years ago (2014-04-15 05:33:39 UTC) #1
wallyworld
Please take a look.
10 years ago (2014-04-16 01:09:02 UTC) #2
wallyworld
Please take a look.
10 years ago (2014-04-16 03:30:54 UTC) #3
wallyworld
Please take a look.
10 years ago (2014-04-16 03:49:29 UTC) #4
fwereade
LGTM apart from the overly-broad interface. https://codereview.appspot.com/87970043/diff/60001/constraints/validation.go File constraints/validation.go (right): https://codereview.appspot.com/87970043/diff/60001/constraints/validation.go#newcode17 constraints/validation.go:17: type Validator interface ...
10 years ago (2014-04-18 07:48:20 UTC) #5
wallyworld
Please take a look. https://codereview.appspot.com/87970043/diff/60001/constraints/validation.go File constraints/validation.go (right): https://codereview.appspot.com/87970043/diff/60001/constraints/validation.go#newcode17 constraints/validation.go:17: type Validator interface { On ...
10 years ago (2014-04-18 13:10:57 UTC) #6
fwereade
10 years ago (2014-04-21 10:34:14 UTC) #7
Still LGTM, with a vague feeling that an explicit UnsupportedConstraints error,
with a method that itself returns the []string, would be even nicer -- and then
it's a similar story, you try to validate and can either ignore or handle the
specific error as you please. I'll leave it to your judgment, though.
Sign in to reply to this message.

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