{"action":"opened","number":55,"pull_request":{"url":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/55","id":180654279,"html_url":"https://github.com/DataBiosphere/data-explorer/pull/55","diff_url":"https://github.com/DataBiosphere/data-explorer/pull/55.diff","patch_url":"https://github.com/DataBiosphere/data-explorer/pull/55.patch","issue_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/55","number":55,"state":"open","locked":false,"title":"Return facets in the order they're found in the config","user":{"login":"alahwa","id":6598882,"avatar_url":"https://avatars0.githubusercontent.com/u/6598882?v=4","gravatar_id":"","url":"https://api.github.com/users/alahwa","html_url":"https://github.com/alahwa","followers_url":"https://api.github.com/users/alahwa/followers","following_url":"https://api.github.com/users/alahwa/following{/other_user}","gists_url":"https://api.github.com/users/alahwa/gists{/gist_id}","starred_url":"https://api.github.com/users/alahwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alahwa/subscriptions","organizations_url":"https://api.github.com/users/alahwa/orgs","repos_url":"https://api.github.com/users/alahwa/repos","events_url":"https://api.github.com/users/alahwa/events{/privacy}","received_events_url":"https://api.github.com/users/alahwa/received_events","type":"User","site_admin":false},"body":"Changing the `current_app.config['ELASTICSEARCH_FACETS']` to be an `OrderedDict` instead of a regular `dict` ensures that we can access the list of facets in the same order we input them in (one row at a time in the CSV). `elasticsearch-dsl` provides some kind of sort functionality, but it's unclear what this does or how it would work for us given that the `Response` object from calling `search.execute()` always returns a `dict` of facets, which is by definition, unordered. ","created_at":"2018-04-10T16:09:35Z","updated_at":"2018-04-10T16:09:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/55/commits","review_comments_url":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/55/comments","review_comment_url":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/55/comments","statuses_url":"https://api.github.com/repos/DataBiosphere/data-explorer/statuses/eeb0ba1ca1c4fe64c06ad25dd63c2e2ce0aa3507","head":{"label":"DataBiosphere:ah/order-facets","ref":"ah/order-facets","sha":"eeb0ba1ca1c4fe64c06ad25dd63c2e2ce0aa3507","user":{"login":"DataBiosphere","id":32805087,"avatar_url":"https://avatars0.githubusercontent.com/u/32805087?v=4","gravatar_id":"","url":"https://api.github.com/users/DataBiosphere","html_url":"https://github.com/DataBiosphere","followers_url":"https://api.github.com/users/DataBiosphere/followers","following_url":"https://api.github.com/users/DataBiosphere/following{/other_user}","gists_url":"https://api.github.com/users/DataBiosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/DataBiosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataBiosphere/subscriptions","organizations_url":"https://api.github.com/users/DataBiosphere/orgs","repos_url":"https://api.github.com/users/DataBiosphere/repos","events_url":"https://api.github.com/users/DataBiosphere/events{/privacy}","received_events_url":"https://api.github.com/users/DataBiosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":119908069,"name":"data-explorer","full_name":"DataBiosphere/data-explorer","owner":{"login":"DataBiosphere","id":32805087,"avatar_url":"https://avatars0.githubusercontent.com/u/32805087?v=4","gravatar_id":"","url":"https://api.github.com/users/DataBiosphere","html_url":"https://github.com/DataBiosphere","followers_url":"https://api.github.com/users/DataBiosphere/followers","following_url":"https://api.github.com/users/DataBiosphere/following{/other_user}","gists_url":"https://api.github.com/users/DataBiosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/DataBiosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataBiosphere/subscriptions","organizations_url":"https://api.github.com/users/DataBiosphere/orgs","repos_url":"https://api.github.com/users/DataBiosphere/repos","events_url":"https://api.github.com/users/DataBiosphere/events{/privacy}","received_events_url":"https://api.github.com/users/DataBiosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DataBiosphere/data-explorer","description":null,"fork":false,"url":"https://api.github.com/repos/DataBiosphere/data-explorer","forks_url":"https://api.github.com/repos/DataBiosphere/data-explorer/forks","keys_url":"https://api.github.com/repos/DataBiosphere/data-explorer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataBiosphere/data-explorer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataBiosphere/data-explorer/teams","hooks_url":"https://api.github.com/repos/DataBiosphere/data-explorer/hooks","issue_events_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/events{/number}","events_url":"https://api.github.com/repos/DataBiosphere/data-explorer/events","assignees_url":"https://api.github.com/repos/DataBiosphere/data-explorer/assignees{/user}","branches_url":"https://api.github.com/repos/DataBiosphere/data-explorer/branches{/branch}","tags_url":"https://api.github.com/repos/DataBiosphere/data-explorer/tags","blobs_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataBiosphere/data-explorer/statuses/{sha}","languages_url":"https://api.github.com/repos/DataBiosphere/data-explorer/languages","stargazers_url":"https://api.github.com/repos/DataBiosphere/data-explorer/stargazers","contributors_url":"https://api.github.com/repos/DataBiosphere/data-explorer/contributors","subscribers_url":"https://api.github.com/repos/DataBiosphere/data-explorer/subscribers","subscription_url":"https://api.github.com/repos/DataBiosphere/data-explorer/subscription","commits_url":"https://api.github.com/repos/DataBiosphere/data-explorer/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataBiosphere/data-explorer/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataBiosphere/data-explorer/contents/{+path}","compare_url":"https://api.github.com/repos/DataBiosphere/data-explorer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataBiosphere/data-explorer/merges","archive_url":"https://api.github.com/repos/DataBiosphere/data-explorer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataBiosphere/data-explorer/downloads","issues_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues{/number}","pulls_url":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls{/number}","milestones_url":"https://api.github.com/repos/DataBiosphere/data-explorer/milestones{/number}","notifications_url":"https://api.github.com/repos/DataBiosphere/data-explorer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataBiosphere/data-explorer/labels{/name}","releases_url":"https://api.github.com/repos/DataBiosphere/data-explorer/releases{/id}","deployments_url":"https://api.github.com/repos/DataBiosphere/data-explorer/deployments","created_at":"2018-02-01T23:53:44Z","updated_at":"2018-04-04T20:37:26Z","pushed_at":"2018-04-10T16:06:12Z","git_url":"git://github.com/DataBiosphere/data-explorer.git","ssh_url":"git@github.com:DataBiosphere/data-explorer.git","clone_url":"https://github.com/DataBiosphere/data-explorer.git","svn_url":"https://github.com/DataBiosphere/data-explorer","homepage":null,"size":387,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":1,"open_issues":11,"watchers":1,"default_branch":"master"}},"base":{"label":"DataBiosphere:master","ref":"master","sha":"fc00cca0d17bed190c82cda6f1c1eec68b3d4040","user":{"login":"DataBiosphere","id":32805087,"avatar_url":"https://avatars0.githubusercontent.com/u/32805087?v=4","gravatar_id":"","url":"https://api.github.com/users/DataBiosphere","html_url":"https://github.com/DataBiosphere","followers_url":"https://api.github.com/users/DataBiosphere/followers","following_url":"https://api.github.com/users/DataBiosphere/following{/other_user}","gists_url":"https://api.github.com/users/DataBiosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/DataBiosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataBiosphere/subscriptions","organizations_url":"https://api.github.com/users/DataBiosphere/orgs","repos_url":"https://api.github.com/users/DataBiosphere/repos","events_url":"https://api.github.com/users/DataBiosphere/events{/privacy}","received_events_url":"https://api.github.com/users/DataBiosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":119908069,"name":"data-explorer","full_name":"DataBiosphere/data-explorer","owner":{"login":"DataBiosphere","id":32805087,"avatar_url":"https://avatars0.githubusercontent.com/u/32805087?v=4","gravatar_id":"","url":"https://api.github.com/users/DataBiosphere","html_url":"https://github.com/DataBiosphere","followers_url":"https://api.github.com/users/DataBiosphere/followers","following_url":"https://api.github.com/users/DataBiosphere/following{/other_user}","gists_url":"https://api.github.com/users/DataBiosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/DataBiosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataBiosphere/subscriptions","organizations_url":"https://api.github.com/users/DataBiosphere/orgs","repos_url":"https://api.github.com/users/DataBiosphere/repos","events_url":"https://api.github.com/users/DataBiosphere/events{/privacy}","received_events_url":"https://api.github.com/users/DataBiosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DataBiosphere/data-explorer","description":null,"fork":false,"url":"https://api.github.com/repos/DataBiosphere/data-explorer","forks_url":"https://api.github.com/repos/DataBiosphere/data-explorer/forks","keys_url":"https://api.github.com/repos/DataBiosphere/data-explorer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataBiosphere/data-explorer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataBiosphere/data-explorer/teams","hooks_url":"https://api.github.com/repos/DataBiosphere/data-explorer/hooks","issue_events_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/events{/number}","events_url":"https://api.github.com/repos/DataBiosphere/data-explorer/events","assignees_url":"https://api.github.com/repos/DataBiosphere/data-explorer/assignees{/user}","branches_url":"https://api.github.com/repos/DataBiosphere/data-explorer/branches{/branch}","tags_url":"https://api.github.com/repos/DataBiosphere/data-explorer/tags","blobs_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataBiosphere/data-explorer/statuses/{sha}","languages_url":"https://api.github.com/repos/DataBiosphere/data-explorer/languages","stargazers_url":"https://api.github.com/repos/DataBiosphere/data-explorer/stargazers","contributors_url":"https://api.github.com/repos/DataBiosphere/data-explorer/contributors","subscribers_url":"https://api.github.com/repos/DataBiosphere/data-explorer/subscribers","subscription_url":"https://api.github.com/repos/DataBiosphere/data-explorer/subscription","commits_url":"https://api.github.com/repos/DataBiosphere/data-explorer/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataBiosphere/data-explorer/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataBiosphere/data-explorer/contents/{+path}","compare_url":"https://api.github.com/repos/DataBiosphere/data-explorer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataBiosphere/data-explorer/merges","archive_url":"https://api.github.com/repos/DataBiosphere/data-explorer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataBiosphere/data-explorer/downloads","issues_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues{/number}","pulls_url":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls{/number}","milestones_url":"https://api.github.com/repos/DataBiosphere/data-explorer/milestones{/number}","notifications_url":"https://api.github.com/repos/DataBiosphere/data-explorer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataBiosphere/data-explorer/labels{/name}","releases_url":"https://api.github.com/repos/DataBiosphere/data-explorer/releases{/id}","deployments_url":"https://api.github.com/repos/DataBiosphere/data-explorer/deployments","created_at":"2018-02-01T23:53:44Z","updated_at":"2018-04-04T20:37:26Z","pushed_at":"2018-04-10T16:06:12Z","git_url":"git://github.com/DataBiosphere/data-explorer.git","ssh_url":"git@github.com:DataBiosphere/data-explorer.git","clone_url":"https://github.com/DataBiosphere/data-explorer.git","svn_url":"https://github.com/DataBiosphere/data-explorer","homepage":null,"size":387,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":1,"open_issues":11,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/55"},"html":{"href":"https://github.com/DataBiosphere/data-explorer/pull/55"},"issue":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/55"},"comments":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/statuses/eeb0ba1ca1c4fe64c06ad25dd63c2e2ce0aa3507"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":19,"deletions":16,"changed_files":2}}
{"actor":{"display_login":"alahwa"}}