cdn icon indicating copy to clipboard operation
cdn copied to clipboard

Make sure that a template is unique

Open dilshat opened this issue 6 years ago • 4 comments

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

dilshat avatar May 22 '18 06:05 dilshat

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

emli avatar May 22 '18 06:05 emli

@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 avatar May 22 '18 07:05 dilshat

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

dilshat avatar May 22 '18 07:05 dilshat

Fixed on Master

kurmanbekova6 avatar Jun 11 '18 05:06 kurmanbekova6