fog / fog-google

Fog for Google Cloud Platform
MIT License
98 stars 146 forks source link

Instance groups model semantics are incorrect #132

Closed Temikus closed 8 years ago

Temikus commented 8 years ago

@areznikov-kabam seems to be right in #115 , instance_groups methods include:

def add_instance(params)
def remove_instance(params)
def get_instances(params)

, which should be in instance_group model according to current structure.

Since people are relying on those already, I propose either:

@icco @plribeiro3000 - WDYT?

plribeiro3000 commented 8 years ago

Does the ones at instance_groups work at all?

If the don't just remove them and add in the right place otherwise i guess for now we should add the methods on the right place and deprecate the wrong ones.

Temikus commented 8 years ago

@plribeiro3000 That's the problem, the ones in instance_groups do work. So we'll need to deprecate them somehow eventually. I deprecated only the get_instances from the collection since it wasn't working anyway due to an unrelated bug.

plribeiro3000 commented 8 years ago

Hmmm. Lets deprecate them. And add the correct ones. Then we do a minor release and on a Major one we remove the deprecated apis.

Temikus commented 8 years ago

@plribeiro3000 I already did ;) See the #133

plribeiro3000 commented 8 years ago

👍

Temikus commented 8 years ago

Fixed by #133