{"action":"created","comment":{"url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/pulls/comments/61629997","id":61629997,"diff_hunk":"@@ -0,0 +1,235 @@\n+package gov.usgswim.sparrow.postgres.action;\n+\n+import gov.usgswim.sparrow.action.Action;\n+import gov.usgswim.sparrow.domain.PredictionContext;\n+import java.sql.PreparedStatement;\n+import java.sql.ResultSet;\n+import java.sql.Statement;\n+import java.sql.Timestamp;\n+import java.time.Instant;\n+import java.util.ArrayList;\n+import java.util.HashMap;\n+import java.util.Iterator;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.Set;\n+import org.slf4j.LoggerFactory;\n+\n+/**\n+ * Rather than write a dbf file out, this writes a row out to the postgres\n+ * model_output table.\n+ *\n+ * @author smlarson\n+ */\n+public class CreateViewForLayer extends Action<List> {\n+\n+    private static final org.slf4j.Logger LOGGER = LoggerFactory.getLogger(CreateViewForLayer.class);\n+\n+    private int model_nbr;\n+    private int model_output_id;\n+    private HashMap modelOutputValueMap;\n+\n+    /**\n+     *\n+     * @param context\n+     * @param map consists of the dbf_identifier as the key and a double as a\n+     * value\n+     */\n+    public CreateViewForLayer(PredictionContext context, HashMap map) {\n+        init(context, map);\n+    }\n+\n+    private void init(PredictionContext context, HashMap map) //int identifier, double dbfValue)\n+    {\n+        this.model_nbr = context.getModelID().intValue();  //two digits typically\n+        this.modelOutputValueMap = map; //map key is an integer 81017, map value is a double 39120.7\n+        this.model_output_id = context.getId();  // 776208324  -no prefix, can be negative. Was the dbf ID.\n+\n+    }\n+\n+    //#TODO# add validate method - makes sure the map is not empty\n+    /**\n+     * Take the former dbf output and insert it into a Postgres table, then\n+     * create the view by joining to the river network shape file. Later the\n+     * view is exposed as a layer in Geoserver.\n+     *\n+     * @return boolean true if Inserted 1 row successfully\n+     * @throws java.lang.Exception\n+     */\n+    @Override\n+    public List doAction() throws Exception {\n+\n+        insertModelOutputRow(this.modelOutputValueMap);\n+        List result = createViews(); // always create two views: one for catchment, the other for flows (aka reaches).\n+\n+        return result; //somthing from the select like the modelregion\n+\n+    }\n+\n+    /**\n+     *\n+     * @return Timestamp a current UTC sql timestamp\n+     */\n+    public static Timestamp getUTCNowAsSQLTimestamp() {\n+\n+        Instant now = Instant.now();\n+        Timestamp currentTimestamp = Timestamp.from(now);\n+        return currentTimestamp;\n+    }\n+\n+    /**\n+     * As the dbf writer would write to a file, this inserts rows into a table.\n+     * Parms: $MODEL_NBR$, $IDENTIFIER$, $VALUE$, $MODEL_OUTPUT_ID$,\n+     * $LAST_UPDATE$\n+     *\n+     * @param map\n+     * @throws java.lang.Exception\n+     */\n+    public void insertModelOutputRow(HashMap map) throws Exception {\n+        Timestamp now = getUTCNowAsSQLTimestamp(); //2016-04-20 08:26:26.345\n+\n+        if (!exists()) { // if the model_output_id is not found on the model_output table, perform the insert\n+            //get the values out of the map, each set requires an insert statement\n+            Map<String, Object> paramMap = new HashMap<>();// this map is for sql parms\n+            paramMap.put(\"MODEL_NBR\", this.model_nbr);\n+            paramMap.put(\"MODEL_OUTPUT_ID\", this.model_output_id);\n+            paramMap.put(\"LAST_UPDATE\", now); // check to see if this is formatted #TODO# ISO_8601 2007-04-05T12:30\n+\n+            Set set = map.keySet();\n+            Iterator it = set.iterator();\n+\n+            while (it.hasNext()) {\n+\n+                int key = (int) it.next();\n+                double value = (double) map.get(key);\n+\n+                paramMap.put(\"IDENTIFIER\", key);  //iterate thru the map to get the id value\n+                paramMap.put(\"VALUE\", value);\n+\n+                PreparedStatement insertSqlps = getPostgresPSFromPropertiesFile(\"InsertModelOutputRow\", null, paramMap);\n+                //LOGGER.info(\"Postgres insert sql: \" + insertSqlps.toString());\n+                insertSqlps.executeUpdate();\n+            }\n+        } else {\n+            LOGGER.info(\"Insert for model_output_id: \" + this.model_output_id + \" will not be performed. Already exists on model_output table.\");\n+        }\n+    }\n+\n+    // if the quantity returned is greater than zero, return true \n+    private boolean exists() throws Exception {\n+        //checks to see if the model_ouput has already been inserted for the first record\n+        //assumption is that the dbf id would be different if any of the data in the rows was different\n+        //and therefore doesnt require an upsert\n+        Map<String, Object> paramMap = new HashMap<>();\n+        paramMap.put(\"MODEL_OUTPUT_ID\", this.model_output_id);\n+\n+        PreparedStatement sql = getPostgresPSFromPropertiesFile(\"SelectExists\", null, paramMap);\n+        LOGGER.info(\"Check existence with: \" + sql.toString());\n+        ResultSet rset = null;\n+        int quantity = 0;\n+\n+        try {\n+            rset = sql.executeQuery();\n+            addResultSetForAutoClose(rset);\n+\n+            while (rset.next()) {\n+                quantity = rset.getInt(1);\n+            }\n+\n+        } finally {\n+            // rset can be null if there is an sql error. \n+            if (rset != null) {\n+                rset.close();","path":"sparrow-business/src/main/java/gov/usgswim/sparrow/postgres/action/CreateViewForLayer.java","position":152,"original_position":142,"commit_id":"ddd32f28d8fed3db6088a00991d3d084233e93d5","original_commit_id":"cebba1b7527c3892d568f22d4f9d123fb89c1cda","user":{"login":"cschroed-usgs","id":3419837,"avatar_url":"https://avatars.githubusercontent.com/u/3419837?v=3","gravatar_id":"","url":"https://api.github.com/users/cschroed-usgs","html_url":"https://github.com/cschroed-usgs","followers_url":"https://api.github.com/users/cschroed-usgs/followers","following_url":"https://api.github.com/users/cschroed-usgs/following{/other_user}","gists_url":"https://api.github.com/users/cschroed-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/cschroed-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cschroed-usgs/subscriptions","organizations_url":"https://api.github.com/users/cschroed-usgs/orgs","repos_url":"https://api.github.com/users/cschroed-usgs/repos","events_url":"https://api.github.com/users/cschroed-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/cschroed-usgs/received_events","type":"User","site_admin":false},"body":"Ok. We may want to find a way to handle that in the addResultSetForAutoClose method later.","created_at":"2016-04-29T19:06:03Z","updated_at":"2016-04-29T19:06:03Z","html_url":"https://github.com/USGS-CIDA/sparrow-dss/pull/255#discussion_r61629997","pull_request_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/pulls/255","_links":{"self":{"href":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/pulls/comments/61629997"},"html":{"href":"https://github.com/USGS-CIDA/sparrow-dss/pull/255#discussion_r61629997"},"pull_request":{"href":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/pulls/255"}}},"pull_request":{"url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/pulls/255","id":65005477,"html_url":"https://github.com/USGS-CIDA/sparrow-dss/pull/255","diff_url":"https://github.com/USGS-CIDA/sparrow-dss/pull/255.diff","patch_url":"https://github.com/USGS-CIDA/sparrow-dss/pull/255.patch","issue_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/issues/255","number":255,"state":"open","locked":false,"title":"Just a heads up on how things are shaping up...adding CreateViewForLa…","user":{"login":"smlarson-usgs","id":14985213,"avatar_url":"https://avatars.githubusercontent.com/u/14985213?v=3","gravatar_id":"","url":"https://api.github.com/users/smlarson-usgs","html_url":"https://github.com/smlarson-usgs","followers_url":"https://api.github.com/users/smlarson-usgs/followers","following_url":"https://api.github.com/users/smlarson-usgs/following{/other_user}","gists_url":"https://api.github.com/users/smlarson-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/smlarson-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smlarson-usgs/subscriptions","organizations_url":"https://api.github.com/users/smlarson-usgs/orgs","repos_url":"https://api.github.com/users/smlarson-usgs/repos","events_url":"https://api.github.com/users/smlarson-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/smlarson-usgs/received_events","type":"User","site_admin":false},"body":"…yer and PostgresDAO","created_at":"2016-04-01T21:08:16Z","updated_at":"2016-04-29T19:06:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5928aec80d1b067c4e78861d54ece9e34f76ef63","assignee":{"login":"cschroed-usgs","id":3419837,"avatar_url":"https://avatars.githubusercontent.com/u/3419837?v=3","gravatar_id":"","url":"https://api.github.com/users/cschroed-usgs","html_url":"https://github.com/cschroed-usgs","followers_url":"https://api.github.com/users/cschroed-usgs/followers","following_url":"https://api.github.com/users/cschroed-usgs/following{/other_user}","gists_url":"https://api.github.com/users/cschroed-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/cschroed-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cschroed-usgs/subscriptions","organizations_url":"https://api.github.com/users/cschroed-usgs/orgs","repos_url":"https://api.github.com/users/cschroed-usgs/repos","events_url":"https://api.github.com/users/cschroed-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/cschroed-usgs/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/pulls/255/commits","review_comments_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/pulls/255/comments","review_comment_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/pulls/comments{/number}","comments_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/issues/255/comments","statuses_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/statuses/ddd32f28d8fed3db6088a00991d3d084233e93d5","head":{"label":"smlarson-usgs:master","ref":"master","sha":"ddd32f28d8fed3db6088a00991d3d084233e93d5","user":{"login":"smlarson-usgs","id":14985213,"avatar_url":"https://avatars.githubusercontent.com/u/14985213?v=3","gravatar_id":"","url":"https://api.github.com/users/smlarson-usgs","html_url":"https://github.com/smlarson-usgs","followers_url":"https://api.github.com/users/smlarson-usgs/followers","following_url":"https://api.github.com/users/smlarson-usgs/following{/other_user}","gists_url":"https://api.github.com/users/smlarson-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/smlarson-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smlarson-usgs/subscriptions","organizations_url":"https://api.github.com/users/smlarson-usgs/orgs","repos_url":"https://api.github.com/users/smlarson-usgs/repos","events_url":"https://api.github.com/users/smlarson-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/smlarson-usgs/received_events","type":"User","site_admin":false},"repo":{"id":52104621,"name":"sparrow-dss","full_name":"smlarson-usgs/sparrow-dss","owner":{"login":"smlarson-usgs","id":14985213,"avatar_url":"https://avatars.githubusercontent.com/u/14985213?v=3","gravatar_id":"","url":"https://api.github.com/users/smlarson-usgs","html_url":"https://github.com/smlarson-usgs","followers_url":"https://api.github.com/users/smlarson-usgs/followers","following_url":"https://api.github.com/users/smlarson-usgs/following{/other_user}","gists_url":"https://api.github.com/users/smlarson-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/smlarson-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smlarson-usgs/subscriptions","organizations_url":"https://api.github.com/users/smlarson-usgs/orgs","repos_url":"https://api.github.com/users/smlarson-usgs/repos","events_url":"https://api.github.com/users/smlarson-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/smlarson-usgs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smlarson-usgs/sparrow-dss","description":"","fork":true,"url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss","forks_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/forks","keys_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/teams","hooks_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/hooks","issue_events_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/issues/events{/number}","events_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/events","assignees_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/assignees{/user}","branches_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/branches{/branch}","tags_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/tags","blobs_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/git/refs{/sha}","trees_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/statuses/{sha}","languages_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/languages","stargazers_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/stargazers","contributors_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/contributors","subscribers_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/subscribers","subscription_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/subscription","commits_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/commits{/sha}","git_commits_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/git/commits{/sha}","comments_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/comments{/number}","issue_comment_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/issues/comments{/number}","contents_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/contents/{+path}","compare_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/merges","archive_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/downloads","issues_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/issues{/number}","pulls_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/pulls{/number}","milestones_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/milestones{/number}","notifications_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/labels{/name}","releases_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/releases{/id}","deployments_url":"https://api.github.com/repos/smlarson-usgs/sparrow-dss/deployments","created_at":"2016-02-19T17:30:55Z","updated_at":"2016-02-19T17:31:00Z","pushed_at":"2016-04-28T21:11:33Z","git_url":"git://github.com/smlarson-usgs/sparrow-dss.git","ssh_url":"git@github.com:smlarson-usgs/sparrow-dss.git","clone_url":"https://github.com/smlarson-usgs/sparrow-dss.git","svn_url":"https://github.com/smlarson-usgs/sparrow-dss","homepage":"http://cida.usgs.gov/sparrow/","size":243703,"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":"USGS-CIDA:master","ref":"master","sha":"59f83aca74c78221439cd15393d8af96e118ac32","user":{"login":"USGS-CIDA","id":918179,"avatar_url":"https://avatars.githubusercontent.com/u/918179?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-CIDA","html_url":"https://github.com/USGS-CIDA","followers_url":"https://api.github.com/users/USGS-CIDA/followers","following_url":"https://api.github.com/users/USGS-CIDA/following{/other_user}","gists_url":"https://api.github.com/users/USGS-CIDA/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-CIDA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-CIDA/subscriptions","organizations_url":"https://api.github.com/users/USGS-CIDA/orgs","repos_url":"https://api.github.com/users/USGS-CIDA/repos","events_url":"https://api.github.com/users/USGS-CIDA/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-CIDA/received_events","type":"Organization","site_admin":false},"repo":{"id":17598655,"name":"sparrow-dss","full_name":"USGS-CIDA/sparrow-dss","owner":{"login":"USGS-CIDA","id":918179,"avatar_url":"https://avatars.githubusercontent.com/u/918179?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-CIDA","html_url":"https://github.com/USGS-CIDA","followers_url":"https://api.github.com/users/USGS-CIDA/followers","following_url":"https://api.github.com/users/USGS-CIDA/following{/other_user}","gists_url":"https://api.github.com/users/USGS-CIDA/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-CIDA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-CIDA/subscriptions","organizations_url":"https://api.github.com/users/USGS-CIDA/orgs","repos_url":"https://api.github.com/users/USGS-CIDA/repos","events_url":"https://api.github.com/users/USGS-CIDA/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-CIDA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/USGS-CIDA/sparrow-dss","description":"","fork":false,"url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss","forks_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/forks","keys_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/keys{/key_id}","collaborators_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/teams","hooks_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/hooks","issue_events_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/issues/events{/number}","events_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/events","assignees_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/assignees{/user}","branches_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/branches{/branch}","tags_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/tags","blobs_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/git/refs{/sha}","trees_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/git/trees{/sha}","statuses_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/statuses/{sha}","languages_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/languages","stargazers_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/stargazers","contributors_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/contributors","subscribers_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/subscribers","subscription_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/subscription","commits_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/commits{/sha}","git_commits_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/git/commits{/sha}","comments_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/comments{/number}","issue_comment_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/issues/comments{/number}","contents_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/contents/{+path}","compare_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/compare/{base}...{head}","merges_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/merges","archive_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/downloads","issues_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/issues{/number}","pulls_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/pulls{/number}","milestones_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/milestones{/number}","notifications_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/labels{/name}","releases_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/releases{/id}","deployments_url":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/deployments","created_at":"2014-03-10T16:00:00Z","updated_at":"2016-02-19T18:30:39Z","pushed_at":"2016-04-29T17:51:07Z","git_url":"git://github.com/USGS-CIDA/sparrow-dss.git","ssh_url":"git@github.com:USGS-CIDA/sparrow-dss.git","clone_url":"https://github.com/USGS-CIDA/sparrow-dss.git","svn_url":"https://github.com/USGS-CIDA/sparrow-dss","homepage":"http://cida.usgs.gov/sparrow/","size":243780,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":2,"forks":8,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/pulls/255"},"html":{"href":"https://github.com/USGS-CIDA/sparrow-dss/pull/255"},"issue":{"href":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/issues/255"},"comments":{"href":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/issues/255/comments"},"review_comments":{"href":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/pulls/255/comments"},"review_comment":{"href":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/pulls/255/commits"},"statuses":{"href":"https://api.github.com/repos/USGS-CIDA/sparrow-dss/statuses/ddd32f28d8fed3db6088a00991d3d084233e93d5"}}}}