{"action":"created","comment":{"url":"https://api.github.com/repos/DINA-Web/dina-collections/pulls/comments/189868889","pull_request_review_id":122120749,"id":189868889,"diff_hunk":"@@ -0,0 +1,90 @@\n+import { createLabelKey, createParameterKey } from './index'\n+\n+describe('coreModules/form/utilities', () => {\n+  describe('createParameterKey', () => {\n+    it('is a function', () => {\n+      return expect(typeof createParameterKey).toEqual('function')\n+    })\n+    it('return undefined if falsy input', () => {\n+      expect(createParameterKey('')).toEqual(undefined)\n+      expect(createParameterKey()).toEqual(undefined)\n+      expect(createParameterKey(undefined)).toEqual(undefined)\n+    })\n+    it('return identifier.value from name: \"identifier.value\"', () => {\n+      expect(createParameterKey({ name: 'identifier.value' })).toEqual(\n+        'identifier.value'\n+      )\n+    })\n+    it('return identifier.value from name: \"identifier.0.value\"', () => {\n+      expect(createParameterKey({ name: 'identifier.0.value' })).toEqual(\n+        'identifier.value'\n+      )\n+    })\n+    it('return identifier.value from name: \"individual.identifier.0.value\"', () => {\n+      expect(createParameterKey({ name: 'identifier.0.value' })).toEqual(\n+        'identifier.value'\n+      )\n+    })\n+    it('return identifier.value from name: \"individual.identifier.22.value\"', () => {\n+      expect(createParameterKey({ name: 'identifier.22.value' })).toEqual(\n+        'identifier.value'\n+      )\n+    })\n+    it('return identifier.value from name: \"individual.identifier.22.value.id\"', () => {\n+      expect(\n+        createParameterKey({ name: 'individual.identifier.22.value.id' })\n+      ).toEqual('identifier.value')\n+    })\n+    it('return value from name: \"value\"', () => {\n+      expect(createParameterKey({ name: 'value' })).toEqual('value')\n+    })\n+\n+    it('return value from name: \"value\"', () => {\n+      expect(createParameterKey({ name: 'value' })).toEqual('value')","path":"packages/ui/src/coreModules/form/utilities/index.test.js","position":43,"original_position":43,"commit_id":"184d91c7c45423056b0682767a15d24d60450628","original_commit_id":"73b1d581dada53636d25f309a53ec91301f7ba25","user":{"login":"fredrikolovsson","id":12738484,"avatar_url":"https://avatars1.githubusercontent.com/u/12738484?v=4","gravatar_id":"","url":"https://api.github.com/users/fredrikolovsson","html_url":"https://github.com/fredrikolovsson","followers_url":"https://api.github.com/users/fredrikolovsson/followers","following_url":"https://api.github.com/users/fredrikolovsson/following{/other_user}","gists_url":"https://api.github.com/users/fredrikolovsson/gists{/gist_id}","starred_url":"https://api.github.com/users/fredrikolovsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredrikolovsson/subscriptions","organizations_url":"https://api.github.com/users/fredrikolovsson/orgs","repos_url":"https://api.github.com/users/fredrikolovsson/repos","events_url":"https://api.github.com/users/fredrikolovsson/events{/privacy}","received_events_url":"https://api.github.com/users/fredrikolovsson/received_events","type":"User","site_admin":false},"body":"duplicated test","created_at":"2018-05-22T11:40:16Z","updated_at":"2018-05-22T11:57:41Z","html_url":"https://github.com/DINA-Web/dina-collections/pull/137#discussion_r189868889","pull_request_url":"https://api.github.com/repos/DINA-Web/dina-collections/pulls/137","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/DINA-Web/dina-collections/pulls/comments/189868889"},"html":{"href":"https://github.com/DINA-Web/dina-collections/pull/137#discussion_r189868889"},"pull_request":{"href":"https://api.github.com/repos/DINA-Web/dina-collections/pulls/137"}}},"pull_request":{"url":"https://api.github.com/repos/DINA-Web/dina-collections/pulls/137","id":189024242,"html_url":"https://github.com/DINA-Web/dina-collections/pull/137","diff_url":"https://github.com/DINA-Web/dina-collections/pull/137.diff","patch_url":"https://github.com/DINA-Web/dina-collections/pull/137.patch","issue_url":"https://api.github.com/repos/DINA-Web/dina-collections/issues/137","number":137,"state":"open","locked":false,"title":"Improve translations and help notifications","user":{"login":"antonoberg","id":3389584,"avatar_url":"https://avatars0.githubusercontent.com/u/3389584?v=4","gravatar_id":"","url":"https://api.github.com/users/antonoberg","html_url":"https://github.com/antonoberg","followers_url":"https://api.github.com/users/antonoberg/followers","following_url":"https://api.github.com/users/antonoberg/following{/other_user}","gists_url":"https://api.github.com/users/antonoberg/gists{/gist_id}","starred_url":"https://api.github.com/users/antonoberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonoberg/subscriptions","organizations_url":"https://api.github.com/users/antonoberg/orgs","repos_url":"https://api.github.com/users/antonoberg/repos","events_url":"https://api.github.com/users/antonoberg/events{/privacy}","received_events_url":"https://api.github.com/users/antonoberg/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-18T13:21:18Z","updated_at":"2018-05-22T11:57:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dce6e7d37bed0e763b5304c0986d3cc9fe907ff4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DINA-Web/dina-collections/pulls/137/commits","review_comments_url":"https://api.github.com/repos/DINA-Web/dina-collections/pulls/137/comments","review_comment_url":"https://api.github.com/repos/DINA-Web/dina-collections/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DINA-Web/dina-collections/issues/137/comments","statuses_url":"https://api.github.com/repos/DINA-Web/dina-collections/statuses/184d91c7c45423056b0682767a15d24d60450628","head":{"label":"DINA-Web:anton/add-referens-to-model-from-help-notifications","ref":"anton/add-referens-to-model-from-help-notifications","sha":"184d91c7c45423056b0682767a15d24d60450628","user":{"login":"DINA-Web","id":9883640,"avatar_url":"https://avatars1.githubusercontent.com/u/9883640?v=4","gravatar_id":"","url":"https://api.github.com/users/DINA-Web","html_url":"https://github.com/DINA-Web","followers_url":"https://api.github.com/users/DINA-Web/followers","following_url":"https://api.github.com/users/DINA-Web/following{/other_user}","gists_url":"https://api.github.com/users/DINA-Web/gists{/gist_id}","starred_url":"https://api.github.com/users/DINA-Web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DINA-Web/subscriptions","organizations_url":"https://api.github.com/users/DINA-Web/orgs","repos_url":"https://api.github.com/users/DINA-Web/repos","events_url":"https://api.github.com/users/DINA-Web/events{/privacy}","received_events_url":"https://api.github.com/users/DINA-Web/received_events","type":"Organization","site_admin":false},"repo":{"id":120293611,"name":"dina-collections","full_name":"DINA-Web/dina-collections","owner":{"login":"DINA-Web","id":9883640,"avatar_url":"https://avatars1.githubusercontent.com/u/9883640?v=4","gravatar_id":"","url":"https://api.github.com/users/DINA-Web","html_url":"https://github.com/DINA-Web","followers_url":"https://api.github.com/users/DINA-Web/followers","following_url":"https://api.github.com/users/DINA-Web/following{/other_user}","gists_url":"https://api.github.com/users/DINA-Web/gists{/gist_id}","starred_url":"https://api.github.com/users/DINA-Web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DINA-Web/subscriptions","organizations_url":"https://api.github.com/users/DINA-Web/orgs","repos_url":"https://api.github.com/users/DINA-Web/repos","events_url":"https://api.github.com/users/DINA-Web/events{/privacy}","received_events_url":"https://api.github.com/users/DINA-Web/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DINA-Web/dina-collections","description":"Web-based information management system for natural history data","fork":false,"url":"https://api.github.com/repos/DINA-Web/dina-collections","forks_url":"https://api.github.com/repos/DINA-Web/dina-collections/forks","keys_url":"https://api.github.com/repos/DINA-Web/dina-collections/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DINA-Web/dina-collections/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DINA-Web/dina-collections/teams","hooks_url":"https://api.github.com/repos/DINA-Web/dina-collections/hooks","issue_events_url":"https://api.github.com/repos/DINA-Web/dina-collections/issues/events{/number}","events_url":"https://api.github.com/repos/DINA-Web/dina-collections/events","assignees_url":"https://api.github.com/repos/DINA-Web/dina-collections/assignees{/user}","branches_url":"https://api.github.com/repos/DINA-Web/dina-collections/branches{/branch}","tags_url":"https://api.github.com/repos/DINA-Web/dina-collections/tags","blobs_url":"https://api.github.com/repos/DINA-Web/dina-collections/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DINA-Web/dina-collections/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DINA-Web/dina-collections/git/refs{/sha}","trees_url":"https://api.github.com/repos/DINA-Web/dina-collections/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DINA-Web/dina-collections/statuses/{sha}","languages_url":"https://api.github.com/repos/DINA-Web/dina-collections/languages","stargazers_url":"https://api.github.com/repos/DINA-Web/dina-collections/stargazers","contributors_url":"https://api.github.com/repos/DINA-Web/dina-collections/contributors","subscribers_url":"https://api.github.com/repos/DINA-Web/dina-collections/subscribers","subscription_url":"https://api.github.com/repos/DINA-Web/dina-collections/subscription","commits_url":"https://api.github.com/repos/DINA-Web/dina-collections/commits{/sha}","git_commits_url":"https://api.github.com/repos/DINA-Web/dina-collections/git/commits{/sha}","comments_url":"https://api.github.com/repos/DINA-Web/dina-collections/comments{/number}","issue_comment_url":"https://api.github.com/repos/DINA-Web/dina-collections/issues/comments{/number}","contents_url":"https://api.github.com/repos/DINA-Web/dina-collections/contents/{+path}","compare_url":"https://api.github.com/repos/DINA-Web/dina-collections/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DINA-Web/dina-collections/merges","archive_url":"https://api.github.com/repos/DINA-Web/dina-collections/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DINA-Web/dina-collections/downloads","issues_url":"https://api.github.com/repos/DINA-Web/dina-collections/issues{/number}","pulls_url":"https://api.github.com/repos/DINA-Web/dina-collections/pulls{/number}","milestones_url":"https://api.github.com/repos/DINA-Web/dina-collections/milestones{/number}","notifications_url":"https://api.github.com/repos/DINA-Web/dina-collections/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DINA-Web/dina-collections/labels{/name}","releases_url":"https://api.github.com/repos/DINA-Web/dina-collections/releases{/id}","deployments_url":"https://api.github.com/repos/DINA-Web/dina-collections/deployments","created_at":"2018-02-05T11:05:52Z","updated_at":"2018-05-22T08:54:41Z","pushed_at":"2018-05-22T09:26:47Z","git_url":"git://github.com/DINA-Web/dina-collections.git","ssh_url":"git@github.com:DINA-Web/dina-collections.git","clone_url":"https://github.com/DINA-Web/dina-collections.git","svn_url":"https://github.com/DINA-Web/dina-collections","homepage":"https://alpha-cm.dina-web.net/","size":26149,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"DINA-Web:master","ref":"master","sha":"4dc183ad6a1e44f2372ec3072c319faf3b2b070e","user":{"login":"DINA-Web","id":9883640,"avatar_url":"https://avatars1.githubusercontent.com/u/9883640?v=4","gravatar_id":"","url":"https://api.github.com/users/DINA-Web","html_url":"https://github.com/DINA-Web","followers_url":"https://api.github.com/users/DINA-Web/followers","following_url":"https://api.github.com/users/DINA-Web/following{/other_user}","gists_url":"https://api.github.com/users/DINA-Web/gists{/gist_id}","starred_url":"https://api.github.com/users/DINA-Web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DINA-Web/subscriptions","organizations_url":"https://api.github.com/users/DINA-Web/orgs","repos_url":"https://api.github.com/users/DINA-Web/repos","events_url":"https://api.github.com/users/DINA-Web/events{/privacy}","received_events_url":"https://api.github.com/users/DINA-Web/received_events","type":"Organization","site_admin":false},"repo":{"id":120293611,"name":"dina-collections","full_name":"DINA-Web/dina-collections","owner":{"login":"DINA-Web","id":9883640,"avatar_url":"https://avatars1.githubusercontent.com/u/9883640?v=4","gravatar_id":"","url":"https://api.github.com/users/DINA-Web","html_url":"https://github.com/DINA-Web","followers_url":"https://api.github.com/users/DINA-Web/followers","following_url":"https://api.github.com/users/DINA-Web/following{/other_user}","gists_url":"https://api.github.com/users/DINA-Web/gists{/gist_id}","starred_url":"https://api.github.com/users/DINA-Web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DINA-Web/subscriptions","organizations_url":"https://api.github.com/users/DINA-Web/orgs","repos_url":"https://api.github.com/users/DINA-Web/repos","events_url":"https://api.github.com/users/DINA-Web/events{/privacy}","received_events_url":"https://api.github.com/users/DINA-Web/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DINA-Web/dina-collections","description":"Web-based information management system for natural history data","fork":false,"url":"https://api.github.com/repos/DINA-Web/dina-collections","forks_url":"https://api.github.com/repos/DINA-Web/dina-collections/forks","keys_url":"https://api.github.com/repos/DINA-Web/dina-collections/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DINA-Web/dina-collections/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DINA-Web/dina-collections/teams","hooks_url":"https://api.github.com/repos/DINA-Web/dina-collections/hooks","issue_events_url":"https://api.github.com/repos/DINA-Web/dina-collections/issues/events{/number}","events_url":"https://api.github.com/repos/DINA-Web/dina-collections/events","assignees_url":"https://api.github.com/repos/DINA-Web/dina-collections/assignees{/user}","branches_url":"https://api.github.com/repos/DINA-Web/dina-collections/branches{/branch}","tags_url":"https://api.github.com/repos/DINA-Web/dina-collections/tags","blobs_url":"https://api.github.com/repos/DINA-Web/dina-collections/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DINA-Web/dina-collections/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DINA-Web/dina-collections/git/refs{/sha}","trees_url":"https://api.github.com/repos/DINA-Web/dina-collections/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DINA-Web/dina-collections/statuses/{sha}","languages_url":"https://api.github.com/repos/DINA-Web/dina-collections/languages","stargazers_url":"https://api.github.com/repos/DINA-Web/dina-collections/stargazers","contributors_url":"https://api.github.com/repos/DINA-Web/dina-collections/contributors","subscribers_url":"https://api.github.com/repos/DINA-Web/dina-collections/subscribers","subscription_url":"https://api.github.com/repos/DINA-Web/dina-collections/subscription","commits_url":"https://api.github.com/repos/DINA-Web/dina-collections/commits{/sha}","git_commits_url":"https://api.github.com/repos/DINA-Web/dina-collections/git/commits{/sha}","comments_url":"https://api.github.com/repos/DINA-Web/dina-collections/comments{/number}","issue_comment_url":"https://api.github.com/repos/DINA-Web/dina-collections/issues/comments{/number}","contents_url":"https://api.github.com/repos/DINA-Web/dina-collections/contents/{+path}","compare_url":"https://api.github.com/repos/DINA-Web/dina-collections/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DINA-Web/dina-collections/merges","archive_url":"https://api.github.com/repos/DINA-Web/dina-collections/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DINA-Web/dina-collections/downloads","issues_url":"https://api.github.com/repos/DINA-Web/dina-collections/issues{/number}","pulls_url":"https://api.github.com/repos/DINA-Web/dina-collections/pulls{/number}","milestones_url":"https://api.github.com/repos/DINA-Web/dina-collections/milestones{/number}","notifications_url":"https://api.github.com/repos/DINA-Web/dina-collections/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DINA-Web/dina-collections/labels{/name}","releases_url":"https://api.github.com/repos/DINA-Web/dina-collections/releases{/id}","deployments_url":"https://api.github.com/repos/DINA-Web/dina-collections/deployments","created_at":"2018-02-05T11:05:52Z","updated_at":"2018-05-22T08:54:41Z","pushed_at":"2018-05-22T09:26:47Z","git_url":"git://github.com/DINA-Web/dina-collections.git","ssh_url":"git@github.com:DINA-Web/dina-collections.git","clone_url":"https://github.com/DINA-Web/dina-collections.git","svn_url":"https://github.com/DINA-Web/dina-collections","homepage":"https://alpha-cm.dina-web.net/","size":26149,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DINA-Web/dina-collections/pulls/137"},"html":{"href":"https://github.com/DINA-Web/dina-collections/pull/137"},"issue":{"href":"https://api.github.com/repos/DINA-Web/dina-collections/issues/137"},"comments":{"href":"https://api.github.com/repos/DINA-Web/dina-collections/issues/137/comments"},"review_comments":{"href":"https://api.github.com/repos/DINA-Web/dina-collections/pulls/137/comments"},"review_comment":{"href":"https://api.github.com/repos/DINA-Web/dina-collections/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DINA-Web/dina-collections/pulls/137/commits"},"statuses":{"href":"https://api.github.com/repos/DINA-Web/dina-collections/statuses/184d91c7c45423056b0682767a15d24d60450628"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"fredrikolovsson"}}