{"action":"created","issue":{"url":"https://api.github.com/repos/wit-ai/wit/issues/699","repository_url":"https://api.github.com/repos/wit-ai/wit","labels_url":"https://api.github.com/repos/wit-ai/wit/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/wit-ai/wit/issues/699/comments","events_url":"https://api.github.com/repos/wit-ai/wit/issues/699/events","html_url":"https://github.com/wit-ai/wit/issues/699","id":248276061,"number":699,"title":"[bug] take role into account in POST /samples","user":{"login":"javimoya","id":371882,"avatar_url":"https://avatars1.githubusercontent.com/u/371882?v=4","gravatar_id":"","url":"https://api.github.com/users/javimoya","html_url":"https://github.com/javimoya","followers_url":"https://api.github.com/users/javimoya/followers","following_url":"https://api.github.com/users/javimoya/following{/other_user}","gists_url":"https://api.github.com/users/javimoya/gists{/gist_id}","starred_url":"https://api.github.com/users/javimoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javimoya/subscriptions","organizations_url":"https://api.github.com/users/javimoya/orgs","repos_url":"https://api.github.com/users/javimoya/repos","events_url":"https://api.github.com/users/javimoya/events{/privacy}","received_events_url":"https://api.github.com/users/javimoya/received_events","type":"User","site_admin":false},"labels":[{"id":83830088,"url":"https://api.github.com/repos/wit-ai/wit/labels/bad-ux","name":"bad-ux","color":"eb6420","default":false},{"id":46805401,"url":"https://api.github.com/repos/wit-ai/wit/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"stopachka","id":984574,"avatar_url":"https://avatars0.githubusercontent.com/u/984574?v=4","gravatar_id":"","url":"https://api.github.com/users/stopachka","html_url":"https://github.com/stopachka","followers_url":"https://api.github.com/users/stopachka/followers","following_url":"https://api.github.com/users/stopachka/following{/other_user}","gists_url":"https://api.github.com/users/stopachka/gists{/gist_id}","starred_url":"https://api.github.com/users/stopachka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stopachka/subscriptions","organizations_url":"https://api.github.com/users/stopachka/orgs","repos_url":"https://api.github.com/users/stopachka/repos","events_url":"https://api.github.com/users/stopachka/events{/privacy}","received_events_url":"https://api.github.com/users/stopachka/received_events","type":"User","site_admin":false},"assignees":[{"login":"stopachka","id":984574,"avatar_url":"https://avatars0.githubusercontent.com/u/984574?v=4","gravatar_id":"","url":"https://api.github.com/users/stopachka","html_url":"https://github.com/stopachka","followers_url":"https://api.github.com/users/stopachka/followers","following_url":"https://api.github.com/users/stopachka/following{/other_user}","gists_url":"https://api.github.com/users/stopachka/gists{/gist_id}","starred_url":"https://api.github.com/users/stopachka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stopachka/subscriptions","organizations_url":"https://api.github.com/users/stopachka/orgs","repos_url":"https://api.github.com/users/stopachka/repos","events_url":"https://api.github.com/users/stopachka/events{/privacy}","received_events_url":"https://api.github.com/users/stopachka/received_events","type":"User","site_admin":false}],"milestone":null,"comments":12,"created_at":"2017-08-06T22:25:06Z","updated_at":"2017-08-23T05:00:59Z","closed_at":null,"body":"**Do you want to request a feature, report a bug, or ask a question about wit?**\r\nFeature\r\n\r\n**What is the current behavior?**\r\nCurrently POST samples API endpoint doesn't support creating samples where you specify a role in the entities.\r\n\r\n**What is the expected behavior?**\r\nA way to create entities with roles using POST /samples API endpoint\r\n\r\nsample json:\r\n`[{\r\n      \"text\" : \"donde está mi envío 69441 para el cp 69116\",\r\n      \"entities\" : [\r\n        {\r\n          \"entity\" : \"intent\",\r\n          \"value\" : \"\\\"info_paquete\\\"\"\r\n        },\r\n        {\r\n          \"entity\" : \"wit$number\",\r\n          \"value\" : \"69441\",\r\n          \"role\" : \"localizador\",\r\n          \"start\" : 20,\r\n          \"end\" : 25\r\n        },\r\n        {\r\n          \"entity\" : \"wit$number\",\r\n          \"value\" : \"69116\",\r\n          \"role\" : \"cp\",\r\n          \"start\" : 37,\r\n          \"end\" : 42\r\n        }\r\n      ]\r\n    }]`"},"comment":{"url":"https://api.github.com/repos/wit-ai/wit/issues/comments/324221536","html_url":"https://github.com/wit-ai/wit/issues/699#issuecomment-324221536","issue_url":"https://api.github.com/repos/wit-ai/wit/issues/699","id":324221536,"user":{"login":"l5t","id":6992759,"avatar_url":"https://avatars0.githubusercontent.com/u/6992759?v=4","gravatar_id":"","url":"https://api.github.com/users/l5t","html_url":"https://github.com/l5t","followers_url":"https://api.github.com/users/l5t/followers","following_url":"https://api.github.com/users/l5t/following{/other_user}","gists_url":"https://api.github.com/users/l5t/gists{/gist_id}","starred_url":"https://api.github.com/users/l5t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l5t/subscriptions","organizations_url":"https://api.github.com/users/l5t/orgs","repos_url":"https://api.github.com/users/l5t/repos","events_url":"https://api.github.com/users/l5t/events{/privacy}","received_events_url":"https://api.github.com/users/l5t/received_events","type":"User","site_admin":false},"created_at":"2017-08-23T05:00:59Z","updated_at":"2017-08-23T05:00:59Z","body":"The sample queue is empty now. So it should be better. We are also working on improving the process to prevent this in the future"}}
{"actor":{"display_login":"l5t"}}