{"action":"created","issue":{"url":"https://api.github.com/repos/inveniosoftware/invenio/issues/1045","repository_url":"https://api.github.com/repos/inveniosoftware/invenio","labels_url":"https://api.github.com/repos/inveniosoftware/invenio/issues/1045/labels{/name}","comments_url":"https://api.github.com/repos/inveniosoftware/invenio/issues/1045/comments","events_url":"https://api.github.com/repos/inveniosoftware/invenio/issues/1045/events","html_url":"https://github.com/inveniosoftware/invenio/issues/1045","id":32547366,"number":1045,"title":"BibKnowledge: less disruptive LHS rule check for uniqueness","user":{"login":"jeromecaffaro","id":1829647,"avatar_url":"https://avatars.githubusercontent.com/u/1829647?v=3","gravatar_id":"","url":"https://api.github.com/users/jeromecaffaro","html_url":"https://github.com/jeromecaffaro","followers_url":"https://api.github.com/users/jeromecaffaro/followers","following_url":"https://api.github.com/users/jeromecaffaro/following{/other_user}","gists_url":"https://api.github.com/users/jeromecaffaro/gists{/gist_id}","starred_url":"https://api.github.com/users/jeromecaffaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeromecaffaro/subscriptions","organizations_url":"https://api.github.com/users/jeromecaffaro/orgs","repos_url":"https://api.github.com/users/jeromecaffaro/repos","events_url":"https://api.github.com/users/jeromecaffaro/events{/privacy}","received_events_url":"https://api.github.com/users/jeromecaffaro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/inveniosoftware/invenio/labels/c_BibKnowledge","name":"c_BibKnowledge","color":"ededed"},{"url":"https://api.github.com/repos/inveniosoftware/invenio/labels/p_minor","name":"p_minor","color":"f7c6c7"},{"url":"https://api.github.com/repos/inveniosoftware/invenio/labels/t_enhancement","name":"t_enhancement","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2014-04-30T15:48:31Z","updated_at":"2016-07-04T14:23:06Z","closed_at":"2016-07-04T14:23:06Z","body":"Originally on 2012-05-08\n\nCurrently when one wants to add a new mapping \"foo->bar\" in a knowledge base X, and that key \"foo\" already exists in another knowledge base Y, the user is presented a warning that the rule already exists, asking to confirm the insertion.\n\nThe warning is really disrupting the task of adding multiple entries to a KB. It is very likely that the LHS already exists in another KB, and very unlikely that the KBs are related in a way that the LHS should be unique. It is proposed that this behavior is flipped, so that the rule is added anyway (and user returns to the standard BibKnowledge form, ready to insert next mapping) , and that a panel is displayed in case the user would like to cancel the insertion (in a non-modal way). See attached mockup.\n\nOne could also want to flip between these two behaviours on a CFG_ variable basis, or as a per-user setting, or per knowledge base (new knowledge base attribute)\n\nSee also #652\n\n(One could further streamline the task of inserting entries by sending asynchronous insertion requests in order to avoid full reload of the page, but that would be the aim of another ticket)"},"comment":{"url":"https://api.github.com/repos/inveniosoftware/invenio/issues/comments/230301755","html_url":"https://github.com/inveniosoftware/invenio/issues/1045#issuecomment-230301755","issue_url":"https://api.github.com/repos/inveniosoftware/invenio/issues/1045","id":230301755,"user":{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T14:23:06Z","updated_at":"2016-07-04T14:23:06Z","body":"Invenio-Knowledge [model for values](https://github.com/inveniosoftware/invenio-knowledge/blob/master/invenio_knowledge/models.py) requires unique keys per knowledge base."}}
{"actor":{"display_login":"jirikuncar"}}