{"action":"created","issue":{"url":"https://api.github.com/repos/aiidateam/aiida_core/issues/1719","repository_url":"https://api.github.com/repos/aiidateam/aiida_core","labels_url":"https://api.github.com/repos/aiidateam/aiida_core/issues/1719/labels{/name}","comments_url":"https://api.github.com/repos/aiidateam/aiida_core/issues/1719/comments","events_url":"https://api.github.com/repos/aiidateam/aiida_core/issues/1719/events","html_url":"https://github.com/aiidateam/aiida_core/issues/1719","id":338870471,"node_id":"MDU6SXNzdWUzMzg4NzA0NzE=","number":1719,"title":"`verdi code setup` allows to setup code with identical name on same computer","user":{"login":"sphuber","id":6992332,"node_id":"MDQ6VXNlcjY5OTIzMzI=","avatar_url":"https://avatars3.githubusercontent.com/u/6992332?v=4","gravatar_id":"","url":"https://api.github.com/users/sphuber","html_url":"https://github.com/sphuber","followers_url":"https://api.github.com/users/sphuber/followers","following_url":"https://api.github.com/users/sphuber/following{/other_user}","gists_url":"https://api.github.com/users/sphuber/gists{/gist_id}","starred_url":"https://api.github.com/users/sphuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sphuber/subscriptions","organizations_url":"https://api.github.com/users/sphuber/orgs","repos_url":"https://api.github.com/users/sphuber/repos","events_url":"https://api.github.com/users/sphuber/events{/privacy}","received_events_url":"https://api.github.com/users/sphuber/received_events","type":"User","site_admin":false},"labels":[{"id":522097474,"node_id":"MDU6TGFiZWw1MjIwOTc0NzQ=","url":"https://api.github.com/repos/aiidateam/aiida_core/labels/priority/important","name":"priority/important","color":"d95f0b","default":false},{"id":522091859,"node_id":"MDU6TGFiZWw1MjIwOTE4NTk=","url":"https://api.github.com/repos/aiidateam/aiida_core/labels/topic/VerdiCommandLine","name":"topic/VerdiCommandLine","color":"eeeeee","default":false},{"id":506125013,"node_id":"MDU6TGFiZWw1MDYxMjUwMTM=","url":"https://api.github.com/repos/aiidateam/aiida_core/labels/type/bug","name":"type/bug","color":"ee0701","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/aiidateam/aiida_core/milestones/7","html_url":"https://github.com/aiidateam/aiida_core/milestone/7","labels_url":"https://api.github.com/repos/aiidateam/aiida_core/milestones/7/labels","id":2825107,"node_id":"MDk6TWlsZXN0b25lMjgyNTEwNw==","number":7,"title":"v1.0.0","description":"","creator":{"login":"ltalirz","id":1053245,"node_id":"MDQ6VXNlcjEwNTMyNDU=","avatar_url":"https://avatars0.githubusercontent.com/u/1053245?v=4","gravatar_id":"","url":"https://api.github.com/users/ltalirz","html_url":"https://github.com/ltalirz","followers_url":"https://api.github.com/users/ltalirz/followers","following_url":"https://api.github.com/users/ltalirz/following{/other_user}","gists_url":"https://api.github.com/users/ltalirz/gists{/gist_id}","starred_url":"https://api.github.com/users/ltalirz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltalirz/subscriptions","organizations_url":"https://api.github.com/users/ltalirz/orgs","repos_url":"https://api.github.com/users/ltalirz/repos","events_url":"https://api.github.com/users/ltalirz/events{/privacy}","received_events_url":"https://api.github.com/users/ltalirz/received_events","type":"User","site_admin":false},"open_issues":87,"closed_issues":245,"state":"open","created_at":"2017-10-09T16:23:17Z","updated_at":"2018-08-02T20:38:09Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-07-06T09:31:33Z","updated_at":"2018-08-03T13:50:52Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Currently it is possible to create two codes with an identical name on the same computer, e.g. `doubler@localhost` and `verdi code setup` will not complain. However, loading either of these codes will then be impossible because the loader will always throw an `MultipleObjectsError`"},"comment":{"url":"https://api.github.com/repos/aiidateam/aiida_core/issues/comments/410260283","html_url":"https://github.com/aiidateam/aiida_core/issues/1719#issuecomment-410260283","issue_url":"https://api.github.com/repos/aiidateam/aiida_core/issues/1719","id":410260283,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDI2MDI4Mw==","user":{"login":"sphuber","id":6992332,"node_id":"MDQ6VXNlcjY5OTIzMzI=","avatar_url":"https://avatars3.githubusercontent.com/u/6992332?v=4","gravatar_id":"","url":"https://api.github.com/users/sphuber","html_url":"https://github.com/sphuber","followers_url":"https://api.github.com/users/sphuber/followers","following_url":"https://api.github.com/users/sphuber/following{/other_user}","gists_url":"https://api.github.com/users/sphuber/gists{/gist_id}","starred_url":"https://api.github.com/users/sphuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sphuber/subscriptions","organizations_url":"https://api.github.com/users/sphuber/orgs","repos_url":"https://api.github.com/users/sphuber/repos","events_url":"https://api.github.com/users/sphuber/events{/privacy}","received_events_url":"https://api.github.com/users/sphuber/received_events","type":"User","site_admin":false},"created_at":"2018-08-03T13:50:52Z","updated_at":"2018-08-03T13:50:52Z","author_association":"CONTRIBUTOR","body":"With the new entity loaders that I implemented for the `click` migration, yes they can be loaded. The loaders will infer the identifier type from the value, since through the command line all values are strings and type information is lost. In fact, one can always use the pk's since that is the first type that is attempted by the loader and those are guaranteed to be unique. I guess regarding policy, we can allow it. We should just think about replacing older ways of loading entities, because `Code.get_from_string` will of course be useless in that situation, but this is a separate issue I would say"}}
{"actor":{"display_login":"sphuber"}}