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

Delete instance api #1037

Merged
merged 22 commits into from
Jun 17, 2019
Merged

Delete instance api #1037

merged 22 commits into from
Jun 17, 2019

Conversation

antho1404
Copy link
Member

dependency: #1036

@antho1404 antho1404 force-pushed the feature/instance-delete-server branch from 77f3e5c to eaa1873 Compare June 9, 2019 15:11
@ilgooz
Copy link
Contributor

ilgooz commented Jun 9, 2019

service:delete deletes the service even if an instance is running which is the opposite behavior in the proposal

protobuf/api/instance.proto Outdated Show resolved Hide resolved
}

message DeleteInstanceResponse {
string hash = 1; // Instance hash
Copy link
Contributor

@krhubert krhubert Jun 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why return instance hash in response if it was sent in the request

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind much about that, I can remove but the idea is that when we delete a resource we have the id of the resource delete in order to be able to have a full asynchrony application that can on one side send the request and on the other side just receive the result and know how to update a local store or anything.

But again I'm happy to delete it if needed

database/instance_db.go Outdated Show resolved Hide resolved
database/instance_db.go Outdated Show resolved Hide resolved
database/instance_db.go Outdated Show resolved Hide resolved
instance/instance.go Outdated Show resolved Hide resolved
sdk/instance/instance.go Outdated Show resolved Hide resolved
database/instance_db.go Outdated Show resolved Hide resolved
NicolasMahe
NicolasMahe previously approved these changes Jun 16, 2019
@antho1404 antho1404 merged commit b4ec2a0 into dev Jun 17, 2019
@antho1404 antho1404 deleted the feature/instance-delete-server branch June 17, 2019 02:46
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.

4 participants