{"action":"created","issue":{"url":"https://api.github.com/repos/webanno/webanno/issues/385","repository_url":"https://api.github.com/repos/webanno/webanno","labels_url":"https://api.github.com/repos/webanno/webanno/issues/385/labels{/name}","comments_url":"https://api.github.com/repos/webanno/webanno/issues/385/comments","events_url":"https://api.github.com/repos/webanno/webanno/issues/385/events","html_url":"https://github.com/webanno/webanno/issues/385","id":183116331,"number":385,"title":"Confusion over annotation_feature \"name\" column","user":{"login":"GiantEnemyCrab","id":1326079,"avatar_url":"https://avatars.githubusercontent.com/u/1326079?v=3","gravatar_id":"","url":"https://api.github.com/users/GiantEnemyCrab","html_url":"https://github.com/GiantEnemyCrab","followers_url":"https://api.github.com/users/GiantEnemyCrab/followers","following_url":"https://api.github.com/users/GiantEnemyCrab/following{/other_user}","gists_url":"https://api.github.com/users/GiantEnemyCrab/gists{/gist_id}","starred_url":"https://api.github.com/users/GiantEnemyCrab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GiantEnemyCrab/subscriptions","organizations_url":"https://api.github.com/users/GiantEnemyCrab/orgs","repos_url":"https://api.github.com/users/GiantEnemyCrab/repos","events_url":"https://api.github.com/users/GiantEnemyCrab/events{/privacy}","received_events_url":"https://api.github.com/users/GiantEnemyCrab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-14T18:13:21Z","updated_at":"2016-10-15T13:25:27Z","closed_at":null,"body":"It happens that a colleague of mine misspelt \"NamedEntities\" as \"NamedEntites\" on the initial tagset creation. He then corrected this in the project settings UI.\r\n\r\nLater, he created xmi file, which is pre-annotated with some values for the custom NamedEntities tagset. But it didn't work during import. The reason is that annotation_feature table, which the Java code refers to, still kept the misspelt version as \"NamedEntites\". So, the spell-corrected \"NamedEntities\" in xmi did not work.\r\n\r\nHe found out that by writing the misspelt version in xmi, the document import worked fine.\r\n\r\nWhat is happening is the once webanno users change the feature name in the UI, the change gets reflected in the uiName field of the DB, but the original value of the feature name is kept, which makes it confusing for users. \r\n\r\nThis problem also happens when writing constraints. The java code refers to the \"name\" field in annotation_feature, but people who are writing constraints would normally only see the \"uiName\", without knowing what the original values were for those.\r\n\r\nI am not sure what would a good solution for this.\r\n\r\nOne least-costly way, I imagine, would be to show this original value stored in DB, somewhere in the project settings UI.\r\n"},"comment":{"url":"https://api.github.com/repos/webanno/webanno/issues/comments/253984134","html_url":"https://github.com/webanno/webanno/issues/385#issuecomment-253984134","issue_url":"https://api.github.com/repos/webanno/webanno/issues/385","id":253984134,"user":{"login":"reckart","id":1410238,"avatar_url":"https://avatars.githubusercontent.com/u/1410238?v=3","gravatar_id":"","url":"https://api.github.com/users/reckart","html_url":"https://github.com/reckart","followers_url":"https://api.github.com/users/reckart/followers","following_url":"https://api.github.com/users/reckart/following{/other_user}","gists_url":"https://api.github.com/users/reckart/gists{/gist_id}","starred_url":"https://api.github.com/users/reckart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reckart/subscriptions","organizations_url":"https://api.github.com/users/reckart/orgs","repos_url":"https://api.github.com/users/reckart/repos","events_url":"https://api.github.com/users/reckart/events{/privacy}","received_events_url":"https://api.github.com/users/reckart/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T13:25:27Z","updated_at":"2016-10-15T13:25:27Z","body":"I have added a display for the \"internal name\" also for features now. It is also important for people that want to build constraint rules."}}
{"actor":{"display_login":"reckart"}}