subutai-io / cdn

Gorjun is a golang replacement for Kurjun project.
Apache License 2.0
19 stars 13 forks source link

Make sure that a template is unique #404

Open dilshat opened 6 years ago

dilshat commented 6 years ago

Only one template exists for a single combination of name, owner and version. The combination of name+owner+version is a unique composite key for a template which can be used interchangeably with ID

emli commented 6 years ago

Duplicated https://github.com/subutai-io/cdn/issues/220

dilshat commented 6 years ago

@emli no this is now a bit different. Issue https://github.com/subutai-io/cdn/issues/220 was valid before multiversion support was introduced No we have to stick to the logic described above

dilshat commented 6 years ago

About uploading a template with the same key (name+owner+version): If a template with such key already exists then upload must fail and be allowed only if new version is higher

kurmanbekova6 commented 6 years ago

Fixed on Master