{"action":"created","comment":{"url":"https://api.github.com/repos/codice/alliance/pulls/comments/57222272","id":57222272,"diff_hunk":"@@ -855,7 +873,9 @@ private void availabilityChanged(boolean isAvailable) {\n      */\n     private SortAttribute[] getSortAttributes(SortBy sortBy) {\n         if (sortBy == null || sortableAttributes == null) {\n-            return new SortAttribute[0];\n+            //Default to sorting by Date/Time modified if no sorting provided\n+            return new SortAttribute[] {new SortAttribute(NsiliConstants.NSIL_CARD+\".\"+NsiliConstants.DATE_TIME_MODIFIED,","path":"catalog/nsili/catalog-nsili-source/src/main/java/org/codice/alliance/nsili/source/NsiliSource.java","position":119,"original_position":119,"commit_id":"9cc170681e167f607f5eb46d8fad9bb4ce0c6f80","original_commit_id":"9cc170681e167f607f5eb46d8fad9bb4ce0c6f80","user":{"login":"bdeining","id":6551038,"avatar_url":"https://avatars.githubusercontent.com/u/6551038?v=3","gravatar_id":"","url":"https://api.github.com/users/bdeining","html_url":"https://github.com/bdeining","followers_url":"https://api.github.com/users/bdeining/followers","following_url":"https://api.github.com/users/bdeining/following{/other_user}","gists_url":"https://api.github.com/users/bdeining/gists{/gist_id}","starred_url":"https://api.github.com/users/bdeining/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdeining/subscriptions","organizations_url":"https://api.github.com/users/bdeining/orgs","repos_url":"https://api.github.com/users/bdeining/repos","events_url":"https://api.github.com/users/bdeining/events{/privacy}","received_events_url":"https://api.github.com/users/bdeining/received_events","type":"User","site_admin":false},"body":"Formatting","created_at":"2016-03-23T19:29:27Z","updated_at":"2016-03-23T19:29:27Z","html_url":"https://github.com/codice/alliance/pull/14#discussion_r57222272","pull_request_url":"https://api.github.com/repos/codice/alliance/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/codice/alliance/pulls/comments/57222272"},"html":{"href":"https://github.com/codice/alliance/pull/14#discussion_r57222272"},"pull_request":{"href":"https://api.github.com/repos/codice/alliance/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/codice/alliance/pulls/14","id":63824089,"html_url":"https://github.com/codice/alliance/pull/14","diff_url":"https://github.com/codice/alliance/pull/14.diff","patch_url":"https://github.com/codice/alliance/pull/14.patch","issue_url":"https://api.github.com/repos/codice/alliance/issues/14","number":14,"state":"open","locked":false,"title":"CAL-23 Fixes for NSILI source for remote queries and product downloads.","user":{"login":"troymohl","id":17255437,"avatar_url":"https://avatars.githubusercontent.com/u/17255437?v=3","gravatar_id":"","url":"https://api.github.com/users/troymohl","html_url":"https://github.com/troymohl","followers_url":"https://api.github.com/users/troymohl/followers","following_url":"https://api.github.com/users/troymohl/following{/other_user}","gists_url":"https://api.github.com/users/troymohl/gists{/gist_id}","starred_url":"https://api.github.com/users/troymohl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troymohl/subscriptions","organizations_url":"https://api.github.com/users/troymohl/orgs","repos_url":"https://api.github.com/users/troymohl/repos","events_url":"https://api.github.com/users/troymohl/events{/privacy}","received_events_url":"https://api.github.com/users/troymohl/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nFixes for the NSILI source on executing remote queries and downloading products.\r\n#### Who is reviewing it?\r\n@bdeining \r\n@kcwire \r\n@jaymcnallie \r\n@jlcsmith \r\n#### How should this be tested?\r\nJUnit Tests\r\nIntegration with NSILI/STANAG-4559 system.\r\n#### Any background context you want to provide?\r\nThe dependent PRs need to be merged before this will work.\r\nhttps://github.com/codice/ddf/pull/636 -> Must be merged or build problems will occur\r\nhttps://github.com/codice/ddf/pull/635 -> Needs to be in place for the product downloads to work correctly if the source system returns a HTTP Redirect\r\n#### What are the relevant tickets?\r\nCAL-23\r\nDDF-1958 -> Add common geospatial libraries to DDF\r\nDDF-1588 -> Fix product downloads to support redirects\r\n#### Screenshots (if appropriate)\r\n#### Checklist:\r\n- [ ] Documentation Updated\r\n- [X] Update / Add Unit Tests\r\n   -> Unit tests have been updated to reflect the changes in behavior required.\r\n- [ ] Update / Add Integration Tests\r\n","created_at":"2016-03-23T02:47:10Z","updated_at":"2016-03-23T19:29:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2d7051670781a1284263b69fe747fa080078b30","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codice/alliance/pulls/14/commits","review_comments_url":"https://api.github.com/repos/codice/alliance/pulls/14/comments","review_comment_url":"https://api.github.com/repos/codice/alliance/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codice/alliance/issues/14/comments","statuses_url":"https://api.github.com/repos/codice/alliance/statuses/9cc170681e167f607f5eb46d8fad9bb4ce0c6f80","head":{"label":"troymohl:CAL-23","ref":"CAL-23","sha":"9cc170681e167f607f5eb46d8fad9bb4ce0c6f80","user":{"login":"troymohl","id":17255437,"avatar_url":"https://avatars.githubusercontent.com/u/17255437?v=3","gravatar_id":"","url":"https://api.github.com/users/troymohl","html_url":"https://github.com/troymohl","followers_url":"https://api.github.com/users/troymohl/followers","following_url":"https://api.github.com/users/troymohl/following{/other_user}","gists_url":"https://api.github.com/users/troymohl/gists{/gist_id}","starred_url":"https://api.github.com/users/troymohl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troymohl/subscriptions","organizations_url":"https://api.github.com/users/troymohl/orgs","repos_url":"https://api.github.com/users/troymohl/repos","events_url":"https://api.github.com/users/troymohl/events{/privacy}","received_events_url":"https://api.github.com/users/troymohl/received_events","type":"User","site_admin":false},"repo":{"id":53149794,"name":"alliance","full_name":"troymohl/alliance","owner":{"login":"troymohl","id":17255437,"avatar_url":"https://avatars.githubusercontent.com/u/17255437?v=3","gravatar_id":"","url":"https://api.github.com/users/troymohl","html_url":"https://github.com/troymohl","followers_url":"https://api.github.com/users/troymohl/followers","following_url":"https://api.github.com/users/troymohl/following{/other_user}","gists_url":"https://api.github.com/users/troymohl/gists{/gist_id}","starred_url":"https://api.github.com/users/troymohl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troymohl/subscriptions","organizations_url":"https://api.github.com/users/troymohl/orgs","repos_url":"https://api.github.com/users/troymohl/repos","events_url":"https://api.github.com/users/troymohl/events{/privacy}","received_events_url":"https://api.github.com/users/troymohl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/troymohl/alliance","description":"","fork":true,"url":"https://api.github.com/repos/troymohl/alliance","forks_url":"https://api.github.com/repos/troymohl/alliance/forks","keys_url":"https://api.github.com/repos/troymohl/alliance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/troymohl/alliance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/troymohl/alliance/teams","hooks_url":"https://api.github.com/repos/troymohl/alliance/hooks","issue_events_url":"https://api.github.com/repos/troymohl/alliance/issues/events{/number}","events_url":"https://api.github.com/repos/troymohl/alliance/events","assignees_url":"https://api.github.com/repos/troymohl/alliance/assignees{/user}","branches_url":"https://api.github.com/repos/troymohl/alliance/branches{/branch}","tags_url":"https://api.github.com/repos/troymohl/alliance/tags","blobs_url":"https://api.github.com/repos/troymohl/alliance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/troymohl/alliance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/troymohl/alliance/git/refs{/sha}","trees_url":"https://api.github.com/repos/troymohl/alliance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/troymohl/alliance/statuses/{sha}","languages_url":"https://api.github.com/repos/troymohl/alliance/languages","stargazers_url":"https://api.github.com/repos/troymohl/alliance/stargazers","contributors_url":"https://api.github.com/repos/troymohl/alliance/contributors","subscribers_url":"https://api.github.com/repos/troymohl/alliance/subscribers","subscription_url":"https://api.github.com/repos/troymohl/alliance/subscription","commits_url":"https://api.github.com/repos/troymohl/alliance/commits{/sha}","git_commits_url":"https://api.github.com/repos/troymohl/alliance/git/commits{/sha}","comments_url":"https://api.github.com/repos/troymohl/alliance/comments{/number}","issue_comment_url":"https://api.github.com/repos/troymohl/alliance/issues/comments{/number}","contents_url":"https://api.github.com/repos/troymohl/alliance/contents/{+path}","compare_url":"https://api.github.com/repos/troymohl/alliance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/troymohl/alliance/merges","archive_url":"https://api.github.com/repos/troymohl/alliance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/troymohl/alliance/downloads","issues_url":"https://api.github.com/repos/troymohl/alliance/issues{/number}","pulls_url":"https://api.github.com/repos/troymohl/alliance/pulls{/number}","milestones_url":"https://api.github.com/repos/troymohl/alliance/milestones{/number}","notifications_url":"https://api.github.com/repos/troymohl/alliance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/troymohl/alliance/labels{/name}","releases_url":"https://api.github.com/repos/troymohl/alliance/releases{/id}","deployments_url":"https://api.github.com/repos/troymohl/alliance/deployments","created_at":"2016-03-04T16:39:28Z","updated_at":"2016-03-04T16:39:29Z","pushed_at":"2016-03-23T02:35:27Z","git_url":"git://github.com/troymohl/alliance.git","ssh_url":"git@github.com:troymohl/alliance.git","clone_url":"https://github.com/troymohl/alliance.git","svn_url":"https://github.com/troymohl/alliance","homepage":null,"size":196,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"codice:master","ref":"master","sha":"de920f2046c068b539a959bde9d547882074e8f2","user":{"login":"codice","id":2386734,"avatar_url":"https://avatars.githubusercontent.com/u/2386734?v=3","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"repo":{"id":52804523,"name":"alliance","full_name":"codice/alliance","owner":{"login":"codice","id":2386734,"avatar_url":"https://avatars.githubusercontent.com/u/2386734?v=3","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codice/alliance","description":"","fork":false,"url":"https://api.github.com/repos/codice/alliance","forks_url":"https://api.github.com/repos/codice/alliance/forks","keys_url":"https://api.github.com/repos/codice/alliance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codice/alliance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codice/alliance/teams","hooks_url":"https://api.github.com/repos/codice/alliance/hooks","issue_events_url":"https://api.github.com/repos/codice/alliance/issues/events{/number}","events_url":"https://api.github.com/repos/codice/alliance/events","assignees_url":"https://api.github.com/repos/codice/alliance/assignees{/user}","branches_url":"https://api.github.com/repos/codice/alliance/branches{/branch}","tags_url":"https://api.github.com/repos/codice/alliance/tags","blobs_url":"https://api.github.com/repos/codice/alliance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codice/alliance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codice/alliance/git/refs{/sha}","trees_url":"https://api.github.com/repos/codice/alliance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codice/alliance/statuses/{sha}","languages_url":"https://api.github.com/repos/codice/alliance/languages","stargazers_url":"https://api.github.com/repos/codice/alliance/stargazers","contributors_url":"https://api.github.com/repos/codice/alliance/contributors","subscribers_url":"https://api.github.com/repos/codice/alliance/subscribers","subscription_url":"https://api.github.com/repos/codice/alliance/subscription","commits_url":"https://api.github.com/repos/codice/alliance/commits{/sha}","git_commits_url":"https://api.github.com/repos/codice/alliance/git/commits{/sha}","comments_url":"https://api.github.com/repos/codice/alliance/comments{/number}","issue_comment_url":"https://api.github.com/repos/codice/alliance/issues/comments{/number}","contents_url":"https://api.github.com/repos/codice/alliance/contents/{+path}","compare_url":"https://api.github.com/repos/codice/alliance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codice/alliance/merges","archive_url":"https://api.github.com/repos/codice/alliance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codice/alliance/downloads","issues_url":"https://api.github.com/repos/codice/alliance/issues{/number}","pulls_url":"https://api.github.com/repos/codice/alliance/pulls{/number}","milestones_url":"https://api.github.com/repos/codice/alliance/milestones{/number}","notifications_url":"https://api.github.com/repos/codice/alliance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codice/alliance/labels{/name}","releases_url":"https://api.github.com/repos/codice/alliance/releases{/id}","deployments_url":"https://api.github.com/repos/codice/alliance/deployments","created_at":"2016-02-29T16:10:33Z","updated_at":"2016-03-03T17:41:58Z","pushed_at":"2016-03-23T19:26:43Z","git_url":"git://github.com/codice/alliance.git","ssh_url":"git@github.com:codice/alliance.git","clone_url":"https://github.com/codice/alliance.git","svn_url":"https://github.com/codice/alliance","homepage":null,"size":6543,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":5,"forks":8,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codice/alliance/pulls/14"},"html":{"href":"https://github.com/codice/alliance/pull/14"},"issue":{"href":"https://api.github.com/repos/codice/alliance/issues/14"},"comments":{"href":"https://api.github.com/repos/codice/alliance/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/codice/alliance/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/codice/alliance/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codice/alliance/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/codice/alliance/statuses/9cc170681e167f607f5eb46d8fad9bb4ce0c6f80"}}}}