{"action":"opened","issue":{"url":"https://api.github.com/repos/opendatacube/datacube-core/issues/477","repository_url":"https://api.github.com/repos/opendatacube/datacube-core","labels_url":"https://api.github.com/repos/opendatacube/datacube-core/issues/477/labels{/name}","comments_url":"https://api.github.com/repos/opendatacube/datacube-core/issues/477/comments","events_url":"https://api.github.com/repos/opendatacube/datacube-core/issues/477/events","html_url":"https://github.com/opendatacube/datacube-core/issues/477","id":329662667,"node_id":"MDU6SXNzdWUzMjk2NjI2Njc=","number":477,"title":"dataset add incorrect warning","user":{"login":"Kirill888","id":1428024,"node_id":"MDQ6VXNlcjE0MjgwMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1428024?v=4","gravatar_id":"","url":"https://api.github.com/users/Kirill888","html_url":"https://github.com/Kirill888","followers_url":"https://api.github.com/users/Kirill888/followers","following_url":"https://api.github.com/users/Kirill888/following{/other_user}","gists_url":"https://api.github.com/users/Kirill888/gists{/gist_id}","starred_url":"https://api.github.com/users/Kirill888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kirill888/subscriptions","organizations_url":"https://api.github.com/users/Kirill888/orgs","repos_url":"https://api.github.com/users/Kirill888/repos","events_url":"https://api.github.com/users/Kirill888/events{/privacy}","received_events_url":"https://api.github.com/users/Kirill888/received_events","type":"User","site_admin":false},"labels":[{"id":280940234,"node_id":"MDU6TGFiZWwyODA5NDAyMzQ=","url":"https://api.github.com/repos/opendatacube/datacube-core/labels/operations","name":"operations","color":"fbca04","default":false},{"id":646828111,"node_id":"MDU6TGFiZWw2NDY4MjgxMTE=","url":"https://api.github.com/repos/opendatacube/datacube-core/labels/usability","name":"usability","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-05T23:44:13Z","updated_at":"2018-06-05T23:44:13Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Expected behaviour\r\n\r\nWhen adding new datasets to DB I do not expect to see:\r\n\r\n```\r\nWARNING Duplicate dataset, not inserting: cff40fd0-5aba-11e5-ab9b-ac162d791418\r\n```\r\n\r\nSince I haven't supplied duplicate datasets.\r\n\r\n### Problem analysis\r\n\r\nThese warnings stem from lineage datasets, lineage datasets are added as part of indexing. The way code is written, recursive depth-first lineage tree traversal, there is no way to know whether the dataset is part of lineage data, and therefore it's expected and normal for dataset to be present in the DB already, or it's a top-level dataset and user needs to be warned about duplicates."}}
{"actor":{"display_login":"Kirill888"}}