{"action":"created","comment":{"url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/pulls/comments/27249084","id":27249084,"diff_hunk":"@@ -0,0 +1,389 @@\n+package com.rackspace.feeds.archives\n+\n+import java.util.UUID\n+\n+import org.apache.spark.rdd.RDD\n+import org.apache.spark.sql.hive.HiveContext\n+import org.apache.spark.sql._\n+import org.apache.spark._\n+import org.apache.spark.SparkContext._\n+\n+import org.slf4j.LoggerFactory\n+\n+import scala.collection.JavaConverters\n+\n+\n+/**\n+ * Takes in the application's configurations and actually runs the archiving process.\n+ *\n+ * @param runConfig\n+ */\n+class Archiver( runConfig : RunConfig ) {\n+\n+  import com.rackspace.feeds.archives.Preferences._\n+  import com.rackspace.feeds.archives.CreateFilesFeed._\n+  import com.rackspace.feeds.archives.Archiver._\n+\n+  val logger = LoggerFactory.getLogger(getClass)\n+\n+  val conf = runConfig.config\n+\n+  //\n+  // map of UUIDs for feeds\n+  //\n+  val feedUuidMap = runConfig.feeds.map(\n+    _ -> s\"urn:uuid:${UUID.randomUUID().toString}\"\n+  ).toMap\n+\n+  //\n+  // map of URIs for the live feeds\n+  //\n+  val liveUriMap = {\n+\n+    import JavaConverters._\n+\n+    conf.getObject(\"tiamat.feeds.liveUri\").keySet().asScala.map(k =>\n+\n+      k -> conf.getString( s\"tiamat.feeds.liveUri.${k}\" )\n+    ).toMap\n+  }\n+\n+  //\n+  // Identity interfaces\n+  //\n+  val identity = new Identity(conf.getString(\"tiamat.identity.endpoint\"),\n+    conf.getString(\"tiamat.identity.user\"),\n+    conf.getString(\"tiamat.identity.apiKey\"),\n+    conf.getString(\"tiamat.identity.password\"))\n+\n+  val token = identity.getToken()\n+\n+  //\n+  // Spark interfaces\n+  //\n+  val sparkConf = new SparkConf().setAppName( this.getClass.getCanonicalName )\n+  sparkConf.set( \"spark.eventLog.enabled\", \"true\" )\n+\n+  val spark = new SparkContext(sparkConf)\n+  val hive = new HiveContext(spark)\n+\n+  //\n+  // map of tenant preferences\n+  // map of impersonation tokens\n+  // list of errors associated with accessing identity & preferences\n+  //\n+  val (prefMap, impMap, errorsImp) = makePrefs()\n+\n+  //\n+  // Get Tenant Id for the given Nast Id\n+  //\n+  def getTenantIdForNastId = makeNastIdToTenantMap( prefMap, runConfig.getNastFeeds() )\n+\n+\n+  /**\n+   * Run & archive\n+   *\n+   * @return errors\n+   */\n+  def run() : Iterable[TiamatError] = {\n+\n+    val grouped = indexEntries()\n+\n+    val writer = new ArchiverHelper( prefMap, impMap, getTenantIdForNastId, feedUuidMap, liveUriMap )\n+\n+    val (writtenSet, errorsWrite) = writer.writeFeedsWithEntries( grouped )\n+\n+    val errorsWriteEmpty = writer.writeFeedsWithoutEntries( writtenSet, runConfig, spark )\n+\n+    errorsImp ++ errorsWrite ++ errorsWriteEmpty\n+  }\n+\n+\n+  /**\n+   * Make\n+   * <ul>\n+   *   <li>preferences map from the preferences table.\n+   *   <li>map of tenant to impersonation token\n+   *   <li>any errors dealing with identity\n+   * </ul>\n+   *\n+   * @return\n+   */\n+  def makePrefs() : (Map[String, TenantPrefs], Map[String, String], Iterable[TiamatError])= {\n+\n+    // tenant-related maps\n+    val prefRdd = tenantPrefs( hive, runConfig )\n+\n+    val (impMap, errorsImp) = impersonationMap( token, prefRdd, identity )\n+\n+    // FYI: filterKeys returns unserializable Map!\n+    // https://issues.scala-lang.org/browse/SI-6654\n+    val prefMap = prefRdd.filter( i => impMap.keySet.contains( i._1 ) ).collect.toMap\n+\n+    (prefMap, impMap, errorsImp)\n+  }\n+\n+  /**\n+   * Get the events, filter, process into JSON (if necessary) and return indexed by tenant-feed-date-archive-file format.\n+   *\n+   * @return\n+   */\n+  def indexEntries(): RDD[(ArchiveKey, Iterable[AtomEntry])] = {\n+    // group entries by tenant,feed,region,date\n+    val grouped = getEntries(runConfig, hive)\n+      .map( toEntry )\n+      .filter(viewableForArchivers(prefMap.values, runConfig.feeds.toSet, runConfig.regions.toSet))\n+      .flatMap(index(prefMap))\n+      .map(processJson)\n+      .groupByKey()\n+    grouped\n+  }\n+\n+  def getEntries(runConfig: RunConfig, hive: HiveContext): SchemaRDD = {\n+    val dateWhere = runConfig.dates.map(d => s\"date = '${dayFormat.print(d)}'\").mkString(\" OR \")\n+    hive.sql( s\"\"\"select tenantid, region, feed, entrybody, datelastupdated, id, categories, date from entries where ${dateWhere}\"\"\")\n+  }\n+}\n+\n+/**\n+ * Due to spark serialization issues, I've encapsulated the following methods into they're own class.  The serialization issues are:\n+ * <ul>\n+ *   <li>Spark serializes the function being run on the cluster to send to the data nodes\n+ *   <li>When an anonymous function is serialized, all fields of the encompassing class are included\n+ *   <li>spark & hive contexts are not serializable\n+ * </ul>\n+ *\n+ * I'm sure there is a way to execute this code without a helper class, but I was banging my head on it and figured\n+ * we can refactor this later.\n+ *\n+ * @param prefMap\n+ * @param impMap\n+ * @param getTenantIdForNastId\n+ * @param feedUuidMap\n+ * @param liveUriMap\n+ */\n+class ArchiverHelper( prefMap : Map[String, TenantPrefs],\n+                      impMap : Map[String, String],\n+                      getTenantIdForNastId : (String, String) => String,\n+                      feedUuidMap : Map[String, String], liveUriMap : Map[String, String ]) extends Serializable {\n+\n+  /**\n+   * Write out empty feeds for any dc-tenant-feed-date-regions-file format combinations which didn't have any events.\n+   *\n+   * @param writtenSet - feeds that have already been written because they have events\n+   * @return any errors.\n+   */\n+  def writeFeedsWithoutEntries(writtenSet: Set[ArchiveKey], runConfig : RunConfig, spark : SparkContext ): Array[TiamatError] = {\n+\n+    import CreateFilesFeed._\n+\n+    // write out empty feeds\n+    val expectedFiles = (for {t <- prefMap.keySet;\n+                              f <- runConfig.feeds;\n+                              d <- prefMap(t).containers.keySet;","path":"tiamat/src/main/scala/com/rackspace/feeds/archives/Archiver.scala","position":183,"original_position":183,"commit_id":"359071477dd9b9596b8d907eac6c8d5bfb02ecbd","original_commit_id":"359071477dd9b9596b8d907eac6c8d5bfb02ecbd","user":{"login":"shintasmith","id":3640870,"avatar_url":"https://avatars.githubusercontent.com/u/3640870?v=3","gravatar_id":"","url":"https://api.github.com/users/shintasmith","html_url":"https://github.com/shintasmith","followers_url":"https://api.github.com/users/shintasmith/followers","following_url":"https://api.github.com/users/shintasmith/following{/other_user}","gists_url":"https://api.github.com/users/shintasmith/gists{/gist_id}","starred_url":"https://api.github.com/users/shintasmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shintasmith/subscriptions","organizations_url":"https://api.github.com/users/shintasmith/orgs","repos_url":"https://api.github.com/users/shintasmith/repos","events_url":"https://api.github.com/users/shintasmith/events{/privacy}","received_events_url":"https://api.github.com/users/shintasmith/received_events","type":"User","site_admin":false},"body":"omg, one letter variable ala 1970s","created_at":"2015-03-26T19:49:13Z","updated_at":"2015-03-26T19:49:13Z","html_url":"https://github.com/rackerlabs/cloudfeeds-nabu/pull/8#discussion_r27249084","pull_request_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/pulls/comments/27249084"},"html":{"href":"https://github.com/rackerlabs/cloudfeeds-nabu/pull/8#discussion_r27249084"},"pull_request":{"href":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/pulls/8","id":30891807,"html_url":"https://github.com/rackerlabs/cloudfeeds-nabu/pull/8","diff_url":"https://github.com/rackerlabs/cloudfeeds-nabu/pull/8.diff","patch_url":"https://github.com/rackerlabs/cloudfeeds-nabu/pull/8.patch","issue_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/issues/8","number":8,"state":"open","locked":false,"title":"CF-534 - productize tiamat","user":{"login":"usnavi","id":1426961,"avatar_url":"https://avatars.githubusercontent.com/u/1426961?v=3","gravatar_id":"","url":"https://api.github.com/users/usnavi","html_url":"https://github.com/usnavi","followers_url":"https://api.github.com/users/usnavi/followers","following_url":"https://api.github.com/users/usnavi/following{/other_user}","gists_url":"https://api.github.com/users/usnavi/gists{/gist_id}","starred_url":"https://api.github.com/users/usnavi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usnavi/subscriptions","organizations_url":"https://api.github.com/users/usnavi/orgs","repos_url":"https://api.github.com/users/usnavi/repos","events_url":"https://api.github.com/users/usnavi/events{/privacy}","received_events_url":"https://api.github.com/users/usnavi/received_events","type":"User","site_admin":false},"body":"Includes the following:\r\n- conf file for staging vs prod environments\r\n- custom command line options\r\n- logging\r\n- per-event & per-tenant error handling.  Errors writing to one tenant's cloud files\r\n  does not stop processing.\r\n- packaging\r\n- unit tests\r\n- moved usmu/tiamat common preinstall script to common location …\r\n- Added logback comments to help","created_at":"2015-03-10T20:58:24Z","updated_at":"2015-03-26T19:49:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0493fc939405ff4397af01d4facbb48c3aeae0c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/pulls/8/commits","review_comments_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/pulls/8/comments","review_comment_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/issues/8/comments","statuses_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/statuses/359071477dd9b9596b8d907eac6c8d5bfb02ecbd","head":{"label":"usnavi:CF-438_archiving","ref":"CF-438_archiving","sha":"359071477dd9b9596b8d907eac6c8d5bfb02ecbd","user":{"login":"usnavi","id":1426961,"avatar_url":"https://avatars.githubusercontent.com/u/1426961?v=3","gravatar_id":"","url":"https://api.github.com/users/usnavi","html_url":"https://github.com/usnavi","followers_url":"https://api.github.com/users/usnavi/followers","following_url":"https://api.github.com/users/usnavi/following{/other_user}","gists_url":"https://api.github.com/users/usnavi/gists{/gist_id}","starred_url":"https://api.github.com/users/usnavi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usnavi/subscriptions","organizations_url":"https://api.github.com/users/usnavi/orgs","repos_url":"https://api.github.com/users/usnavi/repos","events_url":"https://api.github.com/users/usnavi/events{/privacy}","received_events_url":"https://api.github.com/users/usnavi/received_events","type":"User","site_admin":false},"repo":{"id":30777370,"name":"cloudfeeds-nabu","full_name":"usnavi/cloudfeeds-nabu","owner":{"login":"usnavi","id":1426961,"avatar_url":"https://avatars.githubusercontent.com/u/1426961?v=3","gravatar_id":"","url":"https://api.github.com/users/usnavi","html_url":"https://github.com/usnavi","followers_url":"https://api.github.com/users/usnavi/followers","following_url":"https://api.github.com/users/usnavi/following{/other_user}","gists_url":"https://api.github.com/users/usnavi/gists{/gist_id}","starred_url":"https://api.github.com/users/usnavi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usnavi/subscriptions","organizations_url":"https://api.github.com/users/usnavi/orgs","repos_url":"https://api.github.com/users/usnavi/repos","events_url":"https://api.github.com/users/usnavi/events{/privacy}","received_events_url":"https://api.github.com/users/usnavi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/usnavi/cloudfeeds-nabu","description":"Cloud Feeds Archiving solution","fork":true,"url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu","forks_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/forks","keys_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/teams","hooks_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/hooks","issue_events_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/issues/events{/number}","events_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/events","assignees_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/assignees{/user}","branches_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/branches{/branch}","tags_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/tags","blobs_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/git/refs{/sha}","trees_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/statuses/{sha}","languages_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/languages","stargazers_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/stargazers","contributors_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/contributors","subscribers_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/subscribers","subscription_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/subscription","commits_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/commits{/sha}","git_commits_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/git/commits{/sha}","comments_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/comments{/number}","issue_comment_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/issues/comments{/number}","contents_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/contents/{+path}","compare_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/merges","archive_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/downloads","issues_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/issues{/number}","pulls_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/pulls{/number}","milestones_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/milestones{/number}","notifications_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/labels{/name}","releases_url":"https://api.github.com/repos/usnavi/cloudfeeds-nabu/releases{/id}","created_at":"2015-02-13T21:39:27Z","updated_at":"2015-02-13T21:39:29Z","pushed_at":"2015-03-26T19:43:12Z","git_url":"git://github.com/usnavi/cloudfeeds-nabu.git","ssh_url":"git@github.com:usnavi/cloudfeeds-nabu.git","clone_url":"https://github.com/usnavi/cloudfeeds-nabu.git","svn_url":"https://github.com/usnavi/cloudfeeds-nabu","homepage":null,"size":196,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"rackerlabs:master","ref":"master","sha":"29466131285520de692d30dbbc07806acd9db518","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":30371667,"name":"cloudfeeds-nabu","full_name":"rackerlabs/cloudfeeds-nabu","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/cloudfeeds-nabu","description":"Cloud Feeds Archiving solution","fork":false,"url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu","forks_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/forks","keys_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/teams","hooks_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/events","assignees_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/tags","blobs_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/subscription","commits_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/merges","archive_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/downloads","issues_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/releases{/id}","created_at":"2015-02-05T18:40:02Z","updated_at":"2015-03-25T16:10:21Z","pushed_at":"2015-03-26T19:43:12Z","git_url":"git://github.com/rackerlabs/cloudfeeds-nabu.git","ssh_url":"git@github.com:rackerlabs/cloudfeeds-nabu.git","clone_url":"https://github.com/rackerlabs/cloudfeeds-nabu.git","svn_url":"https://github.com/rackerlabs/cloudfeeds-nabu","homepage":null,"size":338,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/pulls/8"},"html":{"href":"https://github.com/rackerlabs/cloudfeeds-nabu/pull/8"},"issue":{"href":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/issues/8"},"comments":{"href":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/rackerlabs/cloudfeeds-nabu/statuses/359071477dd9b9596b8d907eac6c8d5bfb02ecbd"}}}}