Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fast-forward merge master into maltese-falcon #3146

Merged
merged 21 commits into from
Aug 28, 2015

Conversation

cmars
Copy link
Contributor

@cmars cmars commented Aug 28, 2015

waigani and others added 21 commits August 25, 2015 17:57
Separate out LastLogin from the userDoc into it's own collection. Operate directly on docs in this collection without using txns. Do the same for LastConnection in the envUserDoc. No tests where added as existing behaviour should remain the same and is already covered.
To the singular, as per the implementation source file. Also changed
the suite name to match.
envStateCollection.Insert now performs the required modification of
inserted documents to isolate them from documents for other
environments.
envStateCollection insert munging

state: renamed collections_test.go
    
...to the singular, as per the implementation source file. Also changed the suite name to match.

---

state: make Inserts into multi-env collections safer
    
envStateCollection.Insert now performs the required modification of inserted documents to isolate them from documents for other environments.

---

state: status history inserts no longer need to include EnvUUID
    
envStateCollection handles this now.


(Review request: http://reviews.vapour.ws/r/2496/)
Conflicts:
	state/upgrades.go
	state/upgrades_test.go
	upgrades/steps125.go
	upgrades/steps125_test.go
State: separate collections for LastLogin and LastConnection

Separate out LastLogin from the userDoc into it's own collection. Operate directly on docs in this collection without using txns. Do the same for LastConnection in the envUserDoc. No tests where added as existing behaviour should remain the same and is already covered.

(Review request: http://reviews.vapour.ws/r/2250/)
1. multiEnvRunner no longer modifies the []txn.Op it sees in-place. A
new copy is created instead. This is safer and less surprising. Big
comment from Will about this removed.

This lifts a number of restrictions - for example, previously struct
values that needed multi-env adjustments weren't supported.

2. The code for munging txn Inserts to address multi-env concerns has
been greatly simplified by rounding tripping documents through BSON to
bson.D. This also has the benefit of opening up support for document
types that weren't allowed before.

3. The envuser code and tests seemed to be the only area that was
upset about #1. AddEnvironmentUser has been updated to re-read the new
user from the DB so ensure consistent user field values.

4. Moved/removed some dumb and unnecessary internal tests for envuser.

More to come...
Fixed tests broken by AssignPrivateIPAddress change in environ.go
More tests for space and subnet constraints
…ints

Net cli ec2 space constraints

EC2 space constraints take into account subnets and availability zones.
Fixed map ordering problems in TestSubnets

(Review request: http://reviews.vapour.ws/r/2510/)
state: big multi-env txn handling cleanup

1. multiEnvRunner no longer modifies the []txn.Op it sees in-place. A new copy is created instead. This is safer and less surprising. Big comment from Will about this removed. This lifts a number of restrictions - for example, previously struct values that needed multi-env adjustments weren't supported.

2. The code for munging txn Inserts to address multi-env concerns has been greatly simplified by rounding tripping documents through BSON to bson.D. This also has the benefit of opening up support for document types that weren't allowed before.

3. The envuser code and tests seemed to be the only area that was upset about point 1. AddEnvironmentUser has been updated to re-read the new user from the DB so ensure consistent user field values.

4. Moved/removed some dumb and unnecessary internal tests for envuser.

More to come...

(Review request: http://reviews.vapour.ws/r/2516/)
Fixes lp:1489896 regression in juju upgrade.

This reverts commit 5656861, reversing
changes made to 716cafd.
Revert pr juju#2871 from waigani/last-conn

Fixes lp:1489896 regression in juju upgrade.

This reverts commit 5656861, reversing
changes made to 716cafd.

(Review request: http://reviews.vapour.ws/r/2523/)
@cmars
Copy link
Contributor Author

cmars commented Aug 28, 2015

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Aug 28, 2015

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

jujubot added a commit that referenced this pull request Aug 28, 2015
Fast-forward merge master into maltese-falcon



(Review request: http://reviews.vapour.ws/r/2524/)
@jujubot jujubot merged commit ebcd278 into juju:maltese-falcon Aug 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants