{"action":"created","issue":{"url":"https://api.github.com/repos/D-PLACE/dplace/issues/311","repository_url":"https://api.github.com/repos/D-PLACE/dplace","labels_url":"https://api.github.com/repos/D-PLACE/dplace/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/D-PLACE/dplace/issues/311/comments","events_url":"https://api.github.com/repos/D-PLACE/dplace/issues/311/events","html_url":"https://github.com/D-PLACE/dplace/issues/311","id":147979796,"number":311,"title":"Separate request to load tree(s) in search results","user":{"login":"xrotwang","id":870184,"avatar_url":"https://avatars.githubusercontent.com/u/870184?v=3","gravatar_id":"","url":"https://api.github.com/users/xrotwang","html_url":"https://github.com/xrotwang","followers_url":"https://api.github.com/users/xrotwang/followers","following_url":"https://api.github.com/users/xrotwang/following{/other_user}","gists_url":"https://api.github.com/users/xrotwang/gists{/gist_id}","starred_url":"https://api.github.com/users/xrotwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xrotwang/subscriptions","organizations_url":"https://api.github.com/users/xrotwang/orgs","repos_url":"https://api.github.com/users/xrotwang/repos","events_url":"https://api.github.com/users/xrotwang/events{/privacy}","received_events_url":"https://api.github.com/users/xrotwang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/D-PLACE/dplace/milestones/1","html_url":"https://github.com/D-PLACE/dplace/milestones/First%20Release","labels_url":"https://api.github.com/repos/D-PLACE/dplace/milestones/1/labels","id":1164758,"number":1,"title":"First Release","description":"Required features/fixes for release of D-PLACE web portal and submission of database paper.","creator":{"login":"SimonGreenhill","id":220169,"avatar_url":"https://avatars.githubusercontent.com/u/220169?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonGreenhill","html_url":"https://github.com/SimonGreenhill","followers_url":"https://api.github.com/users/SimonGreenhill/followers","following_url":"https://api.github.com/users/SimonGreenhill/following{/other_user}","gists_url":"https://api.github.com/users/SimonGreenhill/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonGreenhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonGreenhill/subscriptions","organizations_url":"https://api.github.com/users/SimonGreenhill/orgs","repos_url":"https://api.github.com/users/SimonGreenhill/repos","events_url":"https://api.github.com/users/SimonGreenhill/events{/privacy}","received_events_url":"https://api.github.com/users/SimonGreenhill/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":65,"state":"open","created_at":"2015-06-15T12:03:49Z","updated_at":"2016-06-29T18:35:50Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-04-13T08:04:44Z","updated_at":"2016-06-30T11:17:07Z","closed_at":null,"body":"To separate the the two most time-consuming server-side tasks when serving a search request, trees should be requested separately. AFAIKT the only information needed to serve the trees is a list of society ids, which is available to the front-end code as `$scope.results.societies`."},"comment":{"url":"https://api.github.com/repos/D-PLACE/dplace/issues/comments/229630487","html_url":"https://github.com/D-PLACE/dplace/issues/311#issuecomment-229630487","issue_url":"https://api.github.com/repos/D-PLACE/dplace/issues/311","id":229630487,"user":{"login":"xrotwang","id":870184,"avatar_url":"https://avatars.githubusercontent.com/u/870184?v=3","gravatar_id":"","url":"https://api.github.com/users/xrotwang","html_url":"https://github.com/xrotwang","followers_url":"https://api.github.com/users/xrotwang/followers","following_url":"https://api.github.com/users/xrotwang/following{/other_user}","gists_url":"https://api.github.com/users/xrotwang/gists{/gist_id}","starred_url":"https://api.github.com/users/xrotwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xrotwang/subscriptions","organizations_url":"https://api.github.com/users/xrotwang/orgs","repos_url":"https://api.github.com/users/xrotwang/repos","events_url":"https://api.github.com/users/xrotwang/events{/privacy}","received_events_url":"https://api.github.com/users/xrotwang/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T11:17:07Z","updated_at":"2016-06-30T11:17:07Z","body":"@stefelisabeth I don't understand. The idea was to just move the [tree loading part of `result_set_from_query_dict`](https://github.com/D-PLACE/dplace/blob/3d7308205067ceecf437ca37b52d3b8de54e241e/dplace_app/api_views.py#L323-L358) to a separate request (which would have to pass all society IDs back to the server). So while it may take some time, the two requests together should take roughly as long as a single search request takes now, no?"}}
{"actor":{"display_login":"xrotwang"}}