{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/addons-server/issues/2660","repository_url":"https://api.github.com/repos/mozilla/addons-server","labels_url":"https://api.github.com/repos/mozilla/addons-server/issues/2660/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/addons-server/issues/2660/comments","events_url":"https://api.github.com/repos/mozilla/addons-server/issues/2660/events","html_url":"https://github.com/mozilla/addons-server/issues/2660","id":154690623,"number":2660,"title":"Handle Personas in the search/detail API","user":{"login":"diox","id":187006,"avatar_url":"https://avatars.githubusercontent.com/u/187006?v=3","gravatar_id":"","url":"https://api.github.com/users/diox","html_url":"https://github.com/diox","followers_url":"https://api.github.com/users/diox/followers","following_url":"https://api.github.com/users/diox/following{/other_user}","gists_url":"https://api.github.com/users/diox/gists{/gist_id}","starred_url":"https://api.github.com/users/diox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diox/subscriptions","organizations_url":"https://api.github.com/users/diox/orgs","repos_url":"https://api.github.com/users/diox/repos","events_url":"https://api.github.com/users/diox/events{/privacy}","received_events_url":"https://api.github.com/users/diox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"diox","id":187006,"avatar_url":"https://avatars.githubusercontent.com/u/187006?v=3","gravatar_id":"","url":"https://api.github.com/users/diox","html_url":"https://github.com/diox","followers_url":"https://api.github.com/users/diox/followers","following_url":"https://api.github.com/users/diox/following{/other_user}","gists_url":"https://api.github.com/users/diox/gists{/gist_id}","starred_url":"https://api.github.com/users/diox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diox/subscriptions","organizations_url":"https://api.github.com/users/diox/orgs","repos_url":"https://api.github.com/users/diox/repos","events_url":"https://api.github.com/users/diox/events{/privacy}","received_events_url":"https://api.github.com/users/diox/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mozilla/addons-server/milestones/17","html_url":"https://github.com/mozilla/addons-server/milestones/49.2","labels_url":"https://api.github.com/repos/mozilla/addons-server/milestones/17/labels","id":1687770,"number":17,"title":"49.2","description":"","creator":{"login":"andymckay","id":74699,"avatar_url":"https://avatars.githubusercontent.com/u/74699?v=3","gravatar_id":"","url":"https://api.github.com/users/andymckay","html_url":"https://github.com/andymckay","followers_url":"https://api.github.com/users/andymckay/followers","following_url":"https://api.github.com/users/andymckay/following{/other_user}","gists_url":"https://api.github.com/users/andymckay/gists{/gist_id}","starred_url":"https://api.github.com/users/andymckay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andymckay/subscriptions","organizations_url":"https://api.github.com/users/andymckay/orgs","repos_url":"https://api.github.com/users/andymckay/repos","events_url":"https://api.github.com/users/andymckay/events{/privacy}","received_events_url":"https://api.github.com/users/andymckay/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":20,"state":"open","created_at":"2016-04-06T16:52:24Z","updated_at":"2016-05-13T14:35:48Z","due_on":"2016-05-20T07:00:00Z","closed_at":null},"comments":1,"created_at":"2016-05-13T11:25:24Z","updated_at":"2016-05-13T16:20:48Z","closed_at":null,"body":"We don't currently return Personas attributes in the search/detail API, making them a bit useless. This will require a bit of thinking.\r\n\r\nA couple thoughts about the code:\r\n- Do we add a different serializer and switch according to the Addon `type` ? Or do we add somehow the extra fields in the regular `AddonSerializer`/`ESAddonSerializer` ?\r\n- In any case, it means we need to add the fields to ES, and then we need to make sure to create a fake `Persona` instance in the serializer as well, otherwise we'll cause a bunch of SQL queries in the search API"},"comment":{"url":"https://api.github.com/repos/mozilla/addons-server/issues/comments/219090974","html_url":"https://github.com/mozilla/addons-server/issues/2660#issuecomment-219090974","issue_url":"https://api.github.com/repos/mozilla/addons-server/issues/2660","id":219090974,"user":{"login":"andymckay","id":74699,"avatar_url":"https://avatars.githubusercontent.com/u/74699?v=3","gravatar_id":"","url":"https://api.github.com/users/andymckay","html_url":"https://github.com/andymckay","followers_url":"https://api.github.com/users/andymckay/followers","following_url":"https://api.github.com/users/andymckay/following{/other_user}","gists_url":"https://api.github.com/users/andymckay/gists{/gist_id}","starred_url":"https://api.github.com/users/andymckay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andymckay/subscriptions","organizations_url":"https://api.github.com/users/andymckay/orgs","repos_url":"https://api.github.com/users/andymckay/repos","events_url":"https://api.github.com/users/andymckay/events{/privacy}","received_events_url":"https://api.github.com/users/andymckay/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T16:20:48Z","updated_at":"2016-05-13T16:20:48Z","body":"Ideally this should not only be personas, but all add-on types."}}