{"action":"created","comment":{"url":"https://api.github.com/repos/ngageoint/hootenanny-ui/pulls/comments/89221906","pull_request_review_id":9768156,"id":89221906,"diff_hunk":"@@ -168,10 +179,52 @@ Hoot.control.utilities.importdirectory = function(context) {\n     * @desc gets file list from options in import directory file list\n     **/\n     var _getFilesList = function(){\n-        var filesList = _.map(d3.select('#importDirectoryFilesList').selectAll('option')[0],function(opt){return opt.value;});\n+        var filesList = _.map(d3.select('#importDirectoryFilesList').selectAll('option')[0],function(opt){return {value:opt.value,text:opt.text};});\n         return filesList;\n     };\n \n+    var _checkForDescription = function(){\n+        var mgcpCheck = d3.select('#importDirectorySchema').value().indexOf('MGCP');\n+        var tdsCheck = d3.select('#importDirectorySchema').value().indexOf('TDS');\n+        var cboxBool = mgcpCheck > -1 || tdsCheck > -1;\n+        d3.select('.cboxAppendFCode').classed('hidden',!cboxBool).select('input').property('checked',false);\n+        _getDescriptionList('MGCP');\n+    };\n+\n+    var _getTranslation = function(){\n+        var selectedTrans = d3.select('#importDirectorySchema').datum().combobox.filter(function(d){return d.DESCRIPTION === d3.select('#importDirectorySchema').value();});\n+        var retval;\n+        try{\n+            retval = selectedTrans[0].NAME;\n+        } catch (err) {\n+            retval = 'MGCP';\n+        }\n+\n+        return retval;\n+    };\n+\n+    var _getDescriptionList = function(translation){\n+        if(!translation){translation = _getTranslation();}\n+\n+        d3.xhr(window.location.protocol + '//' + window.location.hostname +\n+            Hoot.model.REST.formatNodeJsPortOrPath(iD.data.hootConfig.translationServerPort)\n+        +'/schema?translation='+translation+'&limit=10000')\n+        .get(function(error, resp){","path":"js/hoot/control/utilities/ImportDirectory.js","position":73,"original_position":73,"commit_id":"f0b56df2a6199de0707207940b2c106f0f869919","original_commit_id":"f0b56df2a6199de0707207940b2c106f0f869919","user":{"login":"brianhatchl","id":2600932,"avatar_url":"https://avatars.githubusercontent.com/u/2600932?v=3","gravatar_id":"","url":"https://api.github.com/users/brianhatchl","html_url":"https://github.com/brianhatchl","followers_url":"https://api.github.com/users/brianhatchl/followers","following_url":"https://api.github.com/users/brianhatchl/following{/other_user}","gists_url":"https://api.github.com/users/brianhatchl/gists{/gist_id}","starred_url":"https://api.github.com/users/brianhatchl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianhatchl/subscriptions","organizations_url":"https://api.github.com/users/brianhatchl/orgs","repos_url":"https://api.github.com/users/brianhatchl/repos","events_url":"https://api.github.com/users/brianhatchl/events{/privacy}","received_events_url":"https://api.github.com/users/brianhatchl/received_events","type":"User","site_admin":false},"body":"We don't really need to make a call to the translation server when we're removing the fcode descriptions.  This class should also probably cache the response to only have to make the call once.","created_at":"2016-11-22T22:14:15Z","updated_at":"2016-11-22T22:14:15Z","html_url":"https://github.com/ngageoint/hootenanny-ui/pull/795#discussion_r89221906","pull_request_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/pulls/795","_links":{"self":{"href":"https://api.github.com/repos/ngageoint/hootenanny-ui/pulls/comments/89221906"},"html":{"href":"https://github.com/ngageoint/hootenanny-ui/pull/795#discussion_r89221906"},"pull_request":{"href":"https://api.github.com/repos/ngageoint/hootenanny-ui/pulls/795"}}},"pull_request":{"url":"https://api.github.com/repos/ngageoint/hootenanny-ui/pulls/795","id":94438780,"html_url":"https://github.com/ngageoint/hootenanny-ui/pull/795","diff_url":"https://github.com/ngageoint/hootenanny-ui/pull/795.diff","patch_url":"https://github.com/ngageoint/hootenanny-ui/pull/795.patch","issue_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/issues/795","number":795,"state":"open","locked":false,"title":"Lookup FCODE/Name on Import","user":{"login":"sisskind","id":6191659,"avatar_url":"https://avatars.githubusercontent.com/u/6191659?v=3","gravatar_id":"","url":"https://api.github.com/users/sisskind","html_url":"https://github.com/sisskind","followers_url":"https://api.github.com/users/sisskind/followers","following_url":"https://api.github.com/users/sisskind/following{/other_user}","gists_url":"https://api.github.com/users/sisskind/gists{/gist_id}","starred_url":"https://api.github.com/users/sisskind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sisskind/subscriptions","organizations_url":"https://api.github.com/users/sisskind/orgs","repos_url":"https://api.github.com/users/sisskind/repos","events_url":"https://api.github.com/users/sisskind/events{/privacy}","received_events_url":"https://api.github.com/users/sisskind/received_events","type":"User","site_admin":false},"body":"refs #758 ","created_at":"2016-11-18T21:19:44Z","updated_at":"2016-11-22T22:38:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1fd84edb6e1d84098869cf6bec90308f1c9ab321","assignee":{"login":"brianhatchl","id":2600932,"avatar_url":"https://avatars.githubusercontent.com/u/2600932?v=3","gravatar_id":"","url":"https://api.github.com/users/brianhatchl","html_url":"https://github.com/brianhatchl","followers_url":"https://api.github.com/users/brianhatchl/followers","following_url":"https://api.github.com/users/brianhatchl/following{/other_user}","gists_url":"https://api.github.com/users/brianhatchl/gists{/gist_id}","starred_url":"https://api.github.com/users/brianhatchl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianhatchl/subscriptions","organizations_url":"https://api.github.com/users/brianhatchl/orgs","repos_url":"https://api.github.com/users/brianhatchl/repos","events_url":"https://api.github.com/users/brianhatchl/events{/privacy}","received_events_url":"https://api.github.com/users/brianhatchl/received_events","type":"User","site_admin":false},"assignees":[{"login":"brianhatchl","id":2600932,"avatar_url":"https://avatars.githubusercontent.com/u/2600932?v=3","gravatar_id":"","url":"https://api.github.com/users/brianhatchl","html_url":"https://github.com/brianhatchl","followers_url":"https://api.github.com/users/brianhatchl/followers","following_url":"https://api.github.com/users/brianhatchl/following{/other_user}","gists_url":"https://api.github.com/users/brianhatchl/gists{/gist_id}","starred_url":"https://api.github.com/users/brianhatchl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianhatchl/subscriptions","organizations_url":"https://api.github.com/users/brianhatchl/orgs","repos_url":"https://api.github.com/users/brianhatchl/repos","events_url":"https://api.github.com/users/brianhatchl/events{/privacy}","received_events_url":"https://api.github.com/users/brianhatchl/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/pulls/795/commits","review_comments_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/pulls/795/comments","review_comment_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/issues/795/comments","statuses_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/statuses/f0b56df2a6199de0707207940b2c106f0f869919","head":{"label":"ngageoint:758","ref":"758","sha":"f0b56df2a6199de0707207940b2c106f0f869919","user":{"login":"ngageoint","id":7175944,"avatar_url":"https://avatars.githubusercontent.com/u/7175944?v=3","gravatar_id":"","url":"https://api.github.com/users/ngageoint","html_url":"https://github.com/ngageoint","followers_url":"https://api.github.com/users/ngageoint/followers","following_url":"https://api.github.com/users/ngageoint/following{/other_user}","gists_url":"https://api.github.com/users/ngageoint/gists{/gist_id}","starred_url":"https://api.github.com/users/ngageoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngageoint/subscriptions","organizations_url":"https://api.github.com/users/ngageoint/orgs","repos_url":"https://api.github.com/users/ngageoint/repos","events_url":"https://api.github.com/users/ngageoint/events{/privacy}","received_events_url":"https://api.github.com/users/ngageoint/received_events","type":"Organization","site_admin":false},"repo":{"id":37526090,"name":"hootenanny-ui","full_name":"ngageoint/hootenanny-ui","owner":{"login":"ngageoint","id":7175944,"avatar_url":"https://avatars.githubusercontent.com/u/7175944?v=3","gravatar_id":"","url":"https://api.github.com/users/ngageoint","html_url":"https://github.com/ngageoint","followers_url":"https://api.github.com/users/ngageoint/followers","following_url":"https://api.github.com/users/ngageoint/following{/other_user}","gists_url":"https://api.github.com/users/ngageoint/gists{/gist_id}","starred_url":"https://api.github.com/users/ngageoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngageoint/subscriptions","organizations_url":"https://api.github.com/users/ngageoint/orgs","repos_url":"https://api.github.com/users/ngageoint/repos","events_url":"https://api.github.com/users/ngageoint/events{/privacy}","received_events_url":"https://api.github.com/users/ngageoint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ngageoint/hootenanny-ui","description":"Hootenanny UI is a submodule of the Hootennany vector conflation project.","fork":false,"url":"https://api.github.com/repos/ngageoint/hootenanny-ui","forks_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/forks","keys_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/teams","hooks_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/hooks","issue_events_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/issues/events{/number}","events_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/events","assignees_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/assignees{/user}","branches_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/branches{/branch}","tags_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/tags","blobs_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/languages","stargazers_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/stargazers","contributors_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/contributors","subscribers_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/subscribers","subscription_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/subscription","commits_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/contents/{+path}","compare_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/merges","archive_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/downloads","issues_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/issues{/number}","pulls_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/labels{/name}","releases_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/releases{/id}","deployments_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/deployments","created_at":"2015-06-16T11:28:37Z","updated_at":"2016-10-22T03:45:27Z","pushed_at":"2016-11-22T16:49:36Z","git_url":"git://github.com/ngageoint/hootenanny-ui.git","ssh_url":"git@github.com:ngageoint/hootenanny-ui.git","clone_url":"https://github.com/ngageoint/hootenanny-ui.git","svn_url":"https://github.com/ngageoint/hootenanny-ui","homepage":"","size":46710,"stargazers_count":11,"watchers_count":11,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":89,"forks":5,"open_issues":89,"watchers":11,"default_branch":"master"}},"base":{"label":"ngageoint:develop","ref":"develop","sha":"352f0580a9a5902ea5f410ea5deaa486cc58eece","user":{"login":"ngageoint","id":7175944,"avatar_url":"https://avatars.githubusercontent.com/u/7175944?v=3","gravatar_id":"","url":"https://api.github.com/users/ngageoint","html_url":"https://github.com/ngageoint","followers_url":"https://api.github.com/users/ngageoint/followers","following_url":"https://api.github.com/users/ngageoint/following{/other_user}","gists_url":"https://api.github.com/users/ngageoint/gists{/gist_id}","starred_url":"https://api.github.com/users/ngageoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngageoint/subscriptions","organizations_url":"https://api.github.com/users/ngageoint/orgs","repos_url":"https://api.github.com/users/ngageoint/repos","events_url":"https://api.github.com/users/ngageoint/events{/privacy}","received_events_url":"https://api.github.com/users/ngageoint/received_events","type":"Organization","site_admin":false},"repo":{"id":37526090,"name":"hootenanny-ui","full_name":"ngageoint/hootenanny-ui","owner":{"login":"ngageoint","id":7175944,"avatar_url":"https://avatars.githubusercontent.com/u/7175944?v=3","gravatar_id":"","url":"https://api.github.com/users/ngageoint","html_url":"https://github.com/ngageoint","followers_url":"https://api.github.com/users/ngageoint/followers","following_url":"https://api.github.com/users/ngageoint/following{/other_user}","gists_url":"https://api.github.com/users/ngageoint/gists{/gist_id}","starred_url":"https://api.github.com/users/ngageoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngageoint/subscriptions","organizations_url":"https://api.github.com/users/ngageoint/orgs","repos_url":"https://api.github.com/users/ngageoint/repos","events_url":"https://api.github.com/users/ngageoint/events{/privacy}","received_events_url":"https://api.github.com/users/ngageoint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ngageoint/hootenanny-ui","description":"Hootenanny UI is a submodule of the Hootennany vector conflation project.","fork":false,"url":"https://api.github.com/repos/ngageoint/hootenanny-ui","forks_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/forks","keys_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/teams","hooks_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/hooks","issue_events_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/issues/events{/number}","events_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/events","assignees_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/assignees{/user}","branches_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/branches{/branch}","tags_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/tags","blobs_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/languages","stargazers_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/stargazers","contributors_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/contributors","subscribers_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/subscribers","subscription_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/subscription","commits_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/contents/{+path}","compare_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/merges","archive_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/downloads","issues_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/issues{/number}","pulls_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/labels{/name}","releases_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/releases{/id}","deployments_url":"https://api.github.com/repos/ngageoint/hootenanny-ui/deployments","created_at":"2015-06-16T11:28:37Z","updated_at":"2016-10-22T03:45:27Z","pushed_at":"2016-11-22T16:49:36Z","git_url":"git://github.com/ngageoint/hootenanny-ui.git","ssh_url":"git@github.com:ngageoint/hootenanny-ui.git","clone_url":"https://github.com/ngageoint/hootenanny-ui.git","svn_url":"https://github.com/ngageoint/hootenanny-ui","homepage":"","size":46710,"stargazers_count":11,"watchers_count":11,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":89,"forks":5,"open_issues":89,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ngageoint/hootenanny-ui/pulls/795"},"html":{"href":"https://github.com/ngageoint/hootenanny-ui/pull/795"},"issue":{"href":"https://api.github.com/repos/ngageoint/hootenanny-ui/issues/795"},"comments":{"href":"https://api.github.com/repos/ngageoint/hootenanny-ui/issues/795/comments"},"review_comments":{"href":"https://api.github.com/repos/ngageoint/hootenanny-ui/pulls/795/comments"},"review_comment":{"href":"https://api.github.com/repos/ngageoint/hootenanny-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ngageoint/hootenanny-ui/pulls/795/commits"},"statuses":{"href":"https://api.github.com/repos/ngageoint/hootenanny-ui/statuses/f0b56df2a6199de0707207940b2c106f0f869919"}}}}
{"actor":{"display_login":"brianhatchl"}}