{"action":"created","comment":{"url":"https://api.github.com/repos/democracyworks/election-authority-works/pulls/comments/45132778","id":45132778,"diff_hunk":"@@ -133,6 +135,174 @@\n       (is (= :error (:status resp)))\n       (is (= :validation (get-in resp [:error :type]))))))\n \n+(defn search-us []\n+  (:authorities\n+   (search-authority\n+    {:ocd-divisions [\"ocd-division/country:us\"]})))\n+\n+(defn count-us []\n+  (count (search-us)))\n+\n+(defn names-us []\n+  (->> (search-us)\n+       (map :office-name)\n+       set))\n+\n+(defn rand-str []\n+  (str (java.util.UUID/randomUUID)))\n+\n+(defn no-auth []\n+  (-> auth\n+      (assoc :office-name (rand-str))\n+      (dissoc :types)))\n+\n+(defn two-auth []\n+  (-> auth\n+      (assoc :office-name (rand-str))))\n+\n+(defn reg-auth []\n+  (-> auth\n+      (assoc :office-name (rand-str))\n+      (assoc :types #{:registration})))\n+\n+(defn el-auth []\n+  (-> auth\n+      (assoc :office-name (rand-str))\n+      (assoc :types #{:election})))\n+\n+(deftest create-authority-idempotent-no-types->no-types-test\n+  (testing \"replaces existing no-type authority\"\n+    (let [{a1 :authority} (create-authority (no-auth))\n+          {a2 :authority} (create-authority (no-auth))]\n+      (is (= #{(:office-name a2)} (names-us)))\n+      (is (= 1 (count-us))))))\n+\n+(deftest create-authority-idempotent-no-types->one-type-test\n+  (testing \"replaces existing no-type authority with one-type authority\"\n+    (let [{a1 :authority} (create-authority (no-auth))\n+          {a2 :authority} (create-authority (reg-auth))]\n+      (is (= #{(:office-name a2)} (names-us)))\n+      (is (= 1 (count-us))))))\n+\n+(deftest create-authority-idempotent-no-types->two-types-test\n+  (testing \"replaces existing no-type authority with two-type authority\"\n+    (let [{a1 :authority} (create-authority (no-auth))\n+          {a2 :authority} (create-authority (two-auth))]\n+      (is (= #{(:office-name a2)} (names-us)))\n+      (is (= 1 (count-us))))))\n+\n+(deftest create-authority-idempotent-one-type->no-type-test\n+  (testing \"replaces existing one-type authority\"\n+    (let [{a1 :authority} (create-authority (reg-auth))\n+          {a2 :authority} (create-authority (no-auth))]\n+      (is (= #{(:office-name a2)} (names-us)))\n+      (is (= 1 (count-us))))))\n+\n+(deftest create-authority-idempotent-one-type->one-type-same-type-test\n+  (testing \"replaces existing one-type authority\"\n+    (let [{a1 :authority} (create-authority (reg-auth))\n+          {a2 :authority} (create-authority (reg-auth))]\n+      (is (= #{(:office-name a2)} (names-us)))\n+      (is (= 1 (count-us))))))\n+\n+(deftest create-authority-idempotent-one-type->one-type-other-type-test\n+  (testing \"replaces existing one-type authority\"\n+    (let [{a1 :authority} (create-authority (reg-auth))\n+          {a2 :authority} (create-authority (el-auth))]\n+      (is (= #{(:office-name a2)\n+               (:office-name a1)} (names-us)))\n+      (is (= 2 (count-us))))))\n+\n+(deftest create-authority-idempotent-one-type->two-types-test\n+  (testing \"replaces existing one-type authority\"\n+    (let [{a1 :authority} (create-authority (reg-auth))\n+          {a2 :authority} (create-authority (two-auth))]\n+      (is (= #{(:office-name a2)} (names-us)))\n+      (is (= 1 (count-us))))))\n+\n+(deftest create-authority-idempotent-two-types->no-types-test\n+  (testing \"replaces existing two-type authority with a no-type authority\"\n+    (let [{a1 :authority} (create-authority (two-auth))\n+          {a2 :authority} (create-authority (no-auth))]\n+      (is (= #{(:office-name a2)} (names-us)))\n+      (is (= 1 (count-us))))))\n+\n+(deftest create-authority-idempotent-two-types->one-type-test\n+  (testing \"replaces existing two-type authority with a one-type authority\"\n+    (let [{a1 :authority} (create-authority (two-auth))\n+          {a2 :authority} (create-authority (reg-auth))]\n+      (is (= #{(:office-name a2)} (names-us)))\n+      (is (= 1 (count-us))))))\n+\n+(deftest create-authority-idempotent-two-types->two-types-test\n+  (testing \"replaces existing two-type authority\"\n+    (let [{a1 :authority} (create-authority (two-auth))\n+          {a2 :authority} (create-authority (two-auth))]\n+      (is (= #{(:office-name a2)} (names-us)))\n+      (is (= 1 (count-us))))))\n+\n+(deftest create-authority-idempotent-two-authorities-one-type-each->one-authority-two-types-test\n+  (testing \"replaces two existing one-type authorities with one one-type authority\"\n+    (create-authority (el-auth))\n+    (let [{a1 :authority} (create-authority (reg-auth))\n+          {a2 :authority} (create-authority (two-auth))]\n+      (is (= #{(:office-name a2)} (names-us)))\n+      (is (= 1 (count-us))))))\n+\n+(defn one-auth-no-types? [auths]\n+  (and (= 1 (count auths))\n+       (empty? (:types (first auths)))))\n+\n+(defn one-auth-two-types? [auths]\n+  (and (= 1 (count auths))\n+       (= 2 (count (:types (first auths))))))\n+\n+(defn one-auth-one-type? [auths]\n+  (and (= 1 (count auths))\n+       (= 1 (count (:types (first auths))))))\n+\n+(defn two-auths-different-types? [auths]\n+  (let [[a1 a2] auths]\n+    (and (= 2 (count auths))\n+         (= 1 (count (:types a1)))\n+         (= 1 (count (:types a2)))\n+         (not= (:types a1) (:types a2)))))\n+\n+(defmacro dopar [bindings & body]\n+  `(let [latch# (async/chan)\n+         threads# (doall\n+                   (for ~bindings\n+                     (async/thread\n+                       (async/<!! latch#)\n+                       ~@body)))]\n+     (async/close! latch#)\n+     (doseq [thread# threads#]\n+       (async/<!! thread#))))\n+\n+(deftest parallel-execution-test\n+  (let [streams [(take 100 (cycle [(two-auth)\n+                                   (two-auth)\n+                                   (reg-auth)\n+                                   nil]))\n+                 (take 100 (cycle [(no-auth)\n+                                   (el-auth)\n+                                   (two-auth)\n+                                   (reg-auth)\n+                                   (reg-auth)\n+                                   nil]))]]\n+    (dopar [stream streams]\n+           (doseq [auth stream]\n+             (if auth\n+               (create-authority auth)\n+               (doseq [res (search-us)]\n+                 (a/delete-authority (:id res)))))))\n+  (let [us (search-us)]\n+    (or (empty? us)\n+        (one-auth-no-types? us)\n+        (one-auth-two-types? us)\n+        (one-auth-one-type? us)\n+        (two-auths-different-types? us))))","path":"test/election_authority_works/handlers_test.clj","position":181,"original_position":181,"commit_id":"ce923da7eaedbc5f853b71999ebf9d286c659a6a","original_commit_id":"c759499fad309deca948eaab294bb446f9ac8cfa","user":{"login":"cap10morgan","id":59748,"avatar_url":"https://avatars.githubusercontent.com/u/59748?v=3","gravatar_id":"","url":"https://api.github.com/users/cap10morgan","html_url":"https://github.com/cap10morgan","followers_url":"https://api.github.com/users/cap10morgan/followers","following_url":"https://api.github.com/users/cap10morgan/following{/other_user}","gists_url":"https://api.github.com/users/cap10morgan/gists{/gist_id}","starred_url":"https://api.github.com/users/cap10morgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cap10morgan/subscriptions","organizations_url":"https://api.github.com/users/cap10morgan/orgs","repos_url":"https://api.github.com/users/cap10morgan/repos","events_url":"https://api.github.com/users/cap10morgan/events{/privacy}","received_events_url":"https://api.github.com/users/cap10morgan/received_events","type":"User","site_admin":false},"body":"That you then fixed? Or that is still lurking in there to bite us? :)","created_at":"2015-11-17T22:34:05Z","updated_at":"2015-11-17T22:34:05Z","html_url":"https://github.com/democracyworks/election-authority-works/pull/15#discussion_r45132778","pull_request_url":"https://api.github.com/repos/democracyworks/election-authority-works/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/democracyworks/election-authority-works/pulls/comments/45132778"},"html":{"href":"https://github.com/democracyworks/election-authority-works/pull/15#discussion_r45132778"},"pull_request":{"href":"https://api.github.com/repos/democracyworks/election-authority-works/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/democracyworks/election-authority-works/pulls/15","id":50970775,"html_url":"https://github.com/democracyworks/election-authority-works/pull/15","diff_url":"https://github.com/democracyworks/election-authority-works/pull/15.diff","patch_url":"https://github.com/democracyworks/election-authority-works/pull/15.patch","issue_url":"https://api.github.com/repos/democracyworks/election-authority-works/issues/15","number":15,"state":"open","locked":false,"title":"Race instructions","user":{"login":"ericnormand","id":116172,"avatar_url":"https://avatars.githubusercontent.com/u/116172?v=3","gravatar_id":"","url":"https://api.github.com/users/ericnormand","html_url":"https://github.com/ericnormand","followers_url":"https://api.github.com/users/ericnormand/followers","following_url":"https://api.github.com/users/ericnormand/following{/other_user}","gists_url":"https://api.github.com/users/ericnormand/gists{/gist_id}","starred_url":"https://api.github.com/users/ericnormand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericnormand/subscriptions","organizations_url":"https://api.github.com/users/ericnormand/orgs","repos_url":"https://api.github.com/users/ericnormand/repos","events_url":"https://api.github.com/users/ericnormand/events{/privacy}","received_events_url":"https://api.github.com/users/ericnormand/received_events","type":"User","site_admin":false},"body":"Add race instructions to election-authority-works.\r\n\r\nThis required some data model changes.\r\n\r\n1. We made a lot of office-specific information optional. For instance, we no longer require an authority name.\r\n2. We made create-authority idempotent.\r\n3. This involved upgrading datomic toolbox. (done in another PR)\r\n4. Idempotency involved race conditions, so we dealt with that card. ([Pivotal Card](https://www.pivotaltracker.com/story/show/108284280))\r\n\r\nAll for a little chore! [Pivotal Card](https://www.pivotaltracker.com/story/show/103463914)","created_at":"2015-11-17T16:39:35Z","updated_at":"2015-11-17T22:34:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c723a64dacf853a41356f400462039d12c7f3f3","assignee":{"login":"cap10morgan","id":59748,"avatar_url":"https://avatars.githubusercontent.com/u/59748?v=3","gravatar_id":"","url":"https://api.github.com/users/cap10morgan","html_url":"https://github.com/cap10morgan","followers_url":"https://api.github.com/users/cap10morgan/followers","following_url":"https://api.github.com/users/cap10morgan/following{/other_user}","gists_url":"https://api.github.com/users/cap10morgan/gists{/gist_id}","starred_url":"https://api.github.com/users/cap10morgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cap10morgan/subscriptions","organizations_url":"https://api.github.com/users/cap10morgan/orgs","repos_url":"https://api.github.com/users/cap10morgan/repos","events_url":"https://api.github.com/users/cap10morgan/events{/privacy}","received_events_url":"https://api.github.com/users/cap10morgan/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/democracyworks/election-authority-works/pulls/15/commits","review_comments_url":"https://api.github.com/repos/democracyworks/election-authority-works/pulls/15/comments","review_comment_url":"https://api.github.com/repos/democracyworks/election-authority-works/pulls/comments{/number}","comments_url":"https://api.github.com/repos/democracyworks/election-authority-works/issues/15/comments","statuses_url":"https://api.github.com/repos/democracyworks/election-authority-works/statuses/ce923da7eaedbc5f853b71999ebf9d286c659a6a","head":{"label":"democracyworks:race-instructions","ref":"race-instructions","sha":"ce923da7eaedbc5f853b71999ebf9d286c659a6a","user":{"login":"democracyworks","id":1373557,"avatar_url":"https://avatars.githubusercontent.com/u/1373557?v=3","gravatar_id":"","url":"https://api.github.com/users/democracyworks","html_url":"https://github.com/democracyworks","followers_url":"https://api.github.com/users/democracyworks/followers","following_url":"https://api.github.com/users/democracyworks/following{/other_user}","gists_url":"https://api.github.com/users/democracyworks/gists{/gist_id}","starred_url":"https://api.github.com/users/democracyworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/democracyworks/subscriptions","organizations_url":"https://api.github.com/users/democracyworks/orgs","repos_url":"https://api.github.com/users/democracyworks/repos","events_url":"https://api.github.com/users/democracyworks/events{/privacy}","received_events_url":"https://api.github.com/users/democracyworks/received_events","type":"Organization","site_admin":false},"repo":{"id":37270076,"name":"election-authority-works","full_name":"democracyworks/election-authority-works","owner":{"login":"democracyworks","id":1373557,"avatar_url":"https://avatars.githubusercontent.com/u/1373557?v=3","gravatar_id":"","url":"https://api.github.com/users/democracyworks","html_url":"https://github.com/democracyworks","followers_url":"https://api.github.com/users/democracyworks/followers","following_url":"https://api.github.com/users/democracyworks/following{/other_user}","gists_url":"https://api.github.com/users/democracyworks/gists{/gist_id}","starred_url":"https://api.github.com/users/democracyworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/democracyworks/subscriptions","organizations_url":"https://api.github.com/users/democracyworks/orgs","repos_url":"https://api.github.com/users/democracyworks/repos","events_url":"https://api.github.com/users/democracyworks/events{/privacy}","received_events_url":"https://api.github.com/users/democracyworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/democracyworks/election-authority-works","description":"","fork":false,"url":"https://api.github.com/repos/democracyworks/election-authority-works","forks_url":"https://api.github.com/repos/democracyworks/election-authority-works/forks","keys_url":"https://api.github.com/repos/democracyworks/election-authority-works/keys{/key_id}","collaborators_url":"https://api.github.com/repos/democracyworks/election-authority-works/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/democracyworks/election-authority-works/teams","hooks_url":"https://api.github.com/repos/democracyworks/election-authority-works/hooks","issue_events_url":"https://api.github.com/repos/democracyworks/election-authority-works/issues/events{/number}","events_url":"https://api.github.com/repos/democracyworks/election-authority-works/events","assignees_url":"https://api.github.com/repos/democracyworks/election-authority-works/assignees{/user}","branches_url":"https://api.github.com/repos/democracyworks/election-authority-works/branches{/branch}","tags_url":"https://api.github.com/repos/democracyworks/election-authority-works/tags","blobs_url":"https://api.github.com/repos/democracyworks/election-authority-works/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/democracyworks/election-authority-works/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/democracyworks/election-authority-works/git/refs{/sha}","trees_url":"https://api.github.com/repos/democracyworks/election-authority-works/git/trees{/sha}","statuses_url":"https://api.github.com/repos/democracyworks/election-authority-works/statuses/{sha}","languages_url":"https://api.github.com/repos/democracyworks/election-authority-works/languages","stargazers_url":"https://api.github.com/repos/democracyworks/election-authority-works/stargazers","contributors_url":"https://api.github.com/repos/democracyworks/election-authority-works/contributors","subscribers_url":"https://api.github.com/repos/democracyworks/election-authority-works/subscribers","subscription_url":"https://api.github.com/repos/democracyworks/election-authority-works/subscription","commits_url":"https://api.github.com/repos/democracyworks/election-authority-works/commits{/sha}","git_commits_url":"https://api.github.com/repos/democracyworks/election-authority-works/git/commits{/sha}","comments_url":"https://api.github.com/repos/democracyworks/election-authority-works/comments{/number}","issue_comment_url":"https://api.github.com/repos/democracyworks/election-authority-works/issues/comments{/number}","contents_url":"https://api.github.com/repos/democracyworks/election-authority-works/contents/{+path}","compare_url":"https://api.github.com/repos/democracyworks/election-authority-works/compare/{base}...{head}","merges_url":"https://api.github.com/repos/democracyworks/election-authority-works/merges","archive_url":"https://api.github.com/repos/democracyworks/election-authority-works/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/democracyworks/election-authority-works/downloads","issues_url":"https://api.github.com/repos/democracyworks/election-authority-works/issues{/number}","pulls_url":"https://api.github.com/repos/democracyworks/election-authority-works/pulls{/number}","milestones_url":"https://api.github.com/repos/democracyworks/election-authority-works/milestones{/number}","notifications_url":"https://api.github.com/repos/democracyworks/election-authority-works/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/democracyworks/election-authority-works/labels{/name}","releases_url":"https://api.github.com/repos/democracyworks/election-authority-works/releases{/id}","created_at":"2015-06-11T15:38:40Z","updated_at":"2015-11-17T00:52:07Z","pushed_at":"2015-11-17T22:31:37Z","git_url":"git://github.com/democracyworks/election-authority-works.git","ssh_url":"git@github.com:democracyworks/election-authority-works.git","clone_url":"https://github.com/democracyworks/election-authority-works.git","svn_url":"https://github.com/democracyworks/election-authority-works","homepage":null,"size":111,"stargazers_count":0,"watchers_count":0,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"democracyworks:master","ref":"master","sha":"48f661ec072e60cef2b8b2fec224b46cf4526363","user":{"login":"democracyworks","id":1373557,"avatar_url":"https://avatars.githubusercontent.com/u/1373557?v=3","gravatar_id":"","url":"https://api.github.com/users/democracyworks","html_url":"https://github.com/democracyworks","followers_url":"https://api.github.com/users/democracyworks/followers","following_url":"https://api.github.com/users/democracyworks/following{/other_user}","gists_url":"https://api.github.com/users/democracyworks/gists{/gist_id}","starred_url":"https://api.github.com/users/democracyworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/democracyworks/subscriptions","organizations_url":"https://api.github.com/users/democracyworks/orgs","repos_url":"https://api.github.com/users/democracyworks/repos","events_url":"https://api.github.com/users/democracyworks/events{/privacy}","received_events_url":"https://api.github.com/users/democracyworks/received_events","type":"Organization","site_admin":false},"repo":{"id":37270076,"name":"election-authority-works","full_name":"democracyworks/election-authority-works","owner":{"login":"democracyworks","id":1373557,"avatar_url":"https://avatars.githubusercontent.com/u/1373557?v=3","gravatar_id":"","url":"https://api.github.com/users/democracyworks","html_url":"https://github.com/democracyworks","followers_url":"https://api.github.com/users/democracyworks/followers","following_url":"https://api.github.com/users/democracyworks/following{/other_user}","gists_url":"https://api.github.com/users/democracyworks/gists{/gist_id}","starred_url":"https://api.github.com/users/democracyworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/democracyworks/subscriptions","organizations_url":"https://api.github.com/users/democracyworks/orgs","repos_url":"https://api.github.com/users/democracyworks/repos","events_url":"https://api.github.com/users/democracyworks/events{/privacy}","received_events_url":"https://api.github.com/users/democracyworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/democracyworks/election-authority-works","description":"","fork":false,"url":"https://api.github.com/repos/democracyworks/election-authority-works","forks_url":"https://api.github.com/repos/democracyworks/election-authority-works/forks","keys_url":"https://api.github.com/repos/democracyworks/election-authority-works/keys{/key_id}","collaborators_url":"https://api.github.com/repos/democracyworks/election-authority-works/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/democracyworks/election-authority-works/teams","hooks_url":"https://api.github.com/repos/democracyworks/election-authority-works/hooks","issue_events_url":"https://api.github.com/repos/democracyworks/election-authority-works/issues/events{/number}","events_url":"https://api.github.com/repos/democracyworks/election-authority-works/events","assignees_url":"https://api.github.com/repos/democracyworks/election-authority-works/assignees{/user}","branches_url":"https://api.github.com/repos/democracyworks/election-authority-works/branches{/branch}","tags_url":"https://api.github.com/repos/democracyworks/election-authority-works/tags","blobs_url":"https://api.github.com/repos/democracyworks/election-authority-works/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/democracyworks/election-authority-works/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/democracyworks/election-authority-works/git/refs{/sha}","trees_url":"https://api.github.com/repos/democracyworks/election-authority-works/git/trees{/sha}","statuses_url":"https://api.github.com/repos/democracyworks/election-authority-works/statuses/{sha}","languages_url":"https://api.github.com/repos/democracyworks/election-authority-works/languages","stargazers_url":"https://api.github.com/repos/democracyworks/election-authority-works/stargazers","contributors_url":"https://api.github.com/repos/democracyworks/election-authority-works/contributors","subscribers_url":"https://api.github.com/repos/democracyworks/election-authority-works/subscribers","subscription_url":"https://api.github.com/repos/democracyworks/election-authority-works/subscription","commits_url":"https://api.github.com/repos/democracyworks/election-authority-works/commits{/sha}","git_commits_url":"https://api.github.com/repos/democracyworks/election-authority-works/git/commits{/sha}","comments_url":"https://api.github.com/repos/democracyworks/election-authority-works/comments{/number}","issue_comment_url":"https://api.github.com/repos/democracyworks/election-authority-works/issues/comments{/number}","contents_url":"https://api.github.com/repos/democracyworks/election-authority-works/contents/{+path}","compare_url":"https://api.github.com/repos/democracyworks/election-authority-works/compare/{base}...{head}","merges_url":"https://api.github.com/repos/democracyworks/election-authority-works/merges","archive_url":"https://api.github.com/repos/democracyworks/election-authority-works/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/democracyworks/election-authority-works/downloads","issues_url":"https://api.github.com/repos/democracyworks/election-authority-works/issues{/number}","pulls_url":"https://api.github.com/repos/democracyworks/election-authority-works/pulls{/number}","milestones_url":"https://api.github.com/repos/democracyworks/election-authority-works/milestones{/number}","notifications_url":"https://api.github.com/repos/democracyworks/election-authority-works/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/democracyworks/election-authority-works/labels{/name}","releases_url":"https://api.github.com/repos/democracyworks/election-authority-works/releases{/id}","created_at":"2015-06-11T15:38:40Z","updated_at":"2015-11-17T00:52:07Z","pushed_at":"2015-11-17T22:31:37Z","git_url":"git://github.com/democracyworks/election-authority-works.git","ssh_url":"git@github.com:democracyworks/election-authority-works.git","clone_url":"https://github.com/democracyworks/election-authority-works.git","svn_url":"https://github.com/democracyworks/election-authority-works","homepage":null,"size":111,"stargazers_count":0,"watchers_count":0,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/democracyworks/election-authority-works/pulls/15"},"html":{"href":"https://github.com/democracyworks/election-authority-works/pull/15"},"issue":{"href":"https://api.github.com/repos/democracyworks/election-authority-works/issues/15"},"comments":{"href":"https://api.github.com/repos/democracyworks/election-authority-works/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/democracyworks/election-authority-works/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/democracyworks/election-authority-works/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/democracyworks/election-authority-works/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/democracyworks/election-authority-works/statuses/ce923da7eaedbc5f853b71999ebf9d286c659a6a"}}}}