Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Use unique ID for local data sources #277

Closed
forman opened this issue Jul 3, 2017 · 1 comment
Closed

Use unique ID for local data sources #277

forman opened this issue Jul 3, 2017 · 1 comment
Assignees
Milestone

Comments

@forman
Copy link
Member

forman commented Jul 3, 2017

Expected behavior

Every newly created local data source should be assigned a unique ID and a human-readable name. The ID should be part of the filenames used to persist local data sources, e.g. <name>-<id>

Actual behavior

Cate uses the data source name passed by users. If it is empty, a name will be generated. As most users don't provide a unique name or not a name at all, they'll end up with an error, saying the data source already exists, even if created with different subset criteria. This is both surprising and frustrating.

See also https://github.com/CCI-Tools/cate-desktop/issues/30

Steps to reproduce the problem

In the GUI:

  1. Download data source
  2. When done, download same selection once more, with other constraints, don't change name
  3. --> Error

Specifications

Cate 0.9.0dev2

@forman forman added this to the IPM6 milestone Jul 3, 2017
@forman
Copy link
Member Author

forman commented Jul 3, 2017

in cate.util.im.image.AbstractTiledImage we use str(uuid.uuid4()).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants