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

Use service id #734

Merged
merged 3 commits into from
Jan 27, 2019
Merged

Use service id #734

merged 3 commits into from
Jan 27, 2019

Conversation

krhubert
Copy link
Contributor

No description provided.

Copy link
Contributor

@ilgooz ilgooz left a comment

Choose a reason for hiding this comment

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

I think we should be using sid and hash together whenever possible and convert sid to service's latest deployed hash.

It should be possible to deploy/start/stop a specific version of the service by using hash. or when sid used, devs should know which version(hash) they're getting.

For example:

  • while deploying a service with sid, we should both return sid and hash as a reply for successful deployments. Same applies to other commands(apis) as well.
  • or when hash is used to deploy, again we should return both with the corresponding sid and this hash in the reply.
  • we should use and return sid & hash in error types(NotRunningServiceError etc.) too.

@antho1404
Copy link
Member

I agree with @ilgooz about having both. For now we have a 1 to 1 relation between sid and hash but this will probably evolve in 1 to many and in that case the deploy needs to return the hash like that we can delete only the version of the hash.

If there is no good reasons to change to sid I think we should not do it

@krhubert
Copy link
Contributor Author

I agree with @ilgooz too, but this PR is about being consistent so when there is variable service id use sid. The next prs will add hash to api, database etc ... But here is the first simple step

@antho1404 antho1404 merged commit 938c878 into dev Jan 27, 2019
@antho1404 antho1404 deleted the fix/consistent-sid branch January 27, 2019 14:19
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.

3 participants