{"action":"created","comment":{"url":"https://api.github.com/repos/sanity-io/sanity/pulls/comments/172647561","pull_request_review_id":101701431,"id":172647561,"diff_hunk":"@@ -55,14 +56,14 @@ export default withDocument(\n       this._isMounted = false\n     }\n \n-    updateValue(value) {\n-      if (!value) {\n-        this.props.onChange(PatchEvent.from(unset()))\n+    updateCurrent(current) {\n+      const {onChange, type} = this.props\n+      if (!current) {\n+        onChange(PatchEvent.from(unset(['current'])))","path":"packages/@sanity/form-builder/src/inputs/Slug/SlugInput.js","position":18,"original_position":18,"commit_id":"81ea1b8304ddbe1905a9b44deb7373f70cd57398","original_commit_id":"8f10fce5d21cbe6bf2610b8a5d945163b9d41789","user":{"login":"bjoerge","id":876086,"avatar_url":"https://avatars0.githubusercontent.com/u/876086?v=4","gravatar_id":"","url":"https://api.github.com/users/bjoerge","html_url":"https://github.com/bjoerge","followers_url":"https://api.github.com/users/bjoerge/followers","following_url":"https://api.github.com/users/bjoerge/following{/other_user}","gists_url":"https://api.github.com/users/bjoerge/gists{/gist_id}","starred_url":"https://api.github.com/users/bjoerge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjoerge/subscriptions","organizations_url":"https://api.github.com/users/bjoerge/orgs","repos_url":"https://api.github.com/users/bjoerge/repos","events_url":"https://api.github.com/users/bjoerge/events{/privacy}","received_events_url":"https://api.github.com/users/bjoerge/received_events","type":"User","site_admin":false},"body":"Oh, btw, I don't mean to say this is how it _should_ work, I'm rather describing how it works now. I'm all for a discussion about collapsing empty values, but there are quite a few considerations we need to do before supporting it.","created_at":"2018-03-06T20:22:08Z","updated_at":"2018-03-06T20:22:08Z","html_url":"https://github.com/sanity-io/sanity/pull/648#discussion_r172647561","pull_request_url":"https://api.github.com/repos/sanity-io/sanity/pulls/648","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/sanity-io/sanity/pulls/comments/172647561"},"html":{"href":"https://github.com/sanity-io/sanity/pull/648#discussion_r172647561"},"pull_request":{"href":"https://api.github.com/repos/sanity-io/sanity/pulls/648"}},"in_reply_to_id":172637438},"pull_request":{"url":"https://api.github.com/repos/sanity-io/sanity/pulls/648","id":173187069,"html_url":"https://github.com/sanity-io/sanity/pull/648","diff_url":"https://github.com/sanity-io/sanity/pull/648.diff","patch_url":"https://github.com/sanity-io/sanity/pull/648.patch","issue_url":"https://api.github.com/repos/sanity-io/sanity/issues/648","number":648,"state":"open","locked":false,"title":"[schema] Fix validation of slugs in arrays","user":{"login":"rexxars","id":48200,"avatar_url":"https://avatars2.githubusercontent.com/u/48200?v=4","gravatar_id":"","url":"https://api.github.com/users/rexxars","html_url":"https://github.com/rexxars","followers_url":"https://api.github.com/users/rexxars/followers","following_url":"https://api.github.com/users/rexxars/following{/other_user}","gists_url":"https://api.github.com/users/rexxars/gists{/gist_id}","starred_url":"https://api.github.com/users/rexxars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rexxars/subscriptions","organizations_url":"https://api.github.com/users/rexxars/orgs","repos_url":"https://api.github.com/users/rexxars/repos","events_url":"https://api.github.com/users/rexxars/events{/privacy}","received_events_url":"https://api.github.com/users/rexxars/received_events","type":"User","site_admin":false},"body":"Fix a bug where the uniqueness check of slugs fails because it is placed inside the path of an array, as well as the validation failing when placed directly inside of an array and not having a current value.","created_at":"2018-03-06T15:12:55Z","updated_at":"2018-03-06T20:22:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83f8a379727c21b7ee318fa3249858c7770bde8c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sanity-io/sanity/pulls/648/commits","review_comments_url":"https://api.github.com/repos/sanity-io/sanity/pulls/648/comments","review_comment_url":"https://api.github.com/repos/sanity-io/sanity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sanity-io/sanity/issues/648/comments","statuses_url":"https://api.github.com/repos/sanity-io/sanity/statuses/81ea1b8304ddbe1905a9b44deb7373f70cd57398","head":{"label":"sanity-io:slug-in-array-fix","ref":"slug-in-array-fix","sha":"81ea1b8304ddbe1905a9b44deb7373f70cd57398","user":{"login":"sanity-io","id":17177659,"avatar_url":"https://avatars2.githubusercontent.com/u/17177659?v=4","gravatar_id":"","url":"https://api.github.com/users/sanity-io","html_url":"https://github.com/sanity-io","followers_url":"https://api.github.com/users/sanity-io/followers","following_url":"https://api.github.com/users/sanity-io/following{/other_user}","gists_url":"https://api.github.com/users/sanity-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sanity-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanity-io/subscriptions","organizations_url":"https://api.github.com/users/sanity-io/orgs","repos_url":"https://api.github.com/users/sanity-io/repos","events_url":"https://api.github.com/users/sanity-io/events{/privacy}","received_events_url":"https://api.github.com/users/sanity-io/received_events","type":"Organization","site_admin":false},"repo":{"id":79375056,"name":"sanity","full_name":"sanity-io/sanity","owner":{"login":"sanity-io","id":17177659,"avatar_url":"https://avatars2.githubusercontent.com/u/17177659?v=4","gravatar_id":"","url":"https://api.github.com/users/sanity-io","html_url":"https://github.com/sanity-io","followers_url":"https://api.github.com/users/sanity-io/followers","following_url":"https://api.github.com/users/sanity-io/following{/other_user}","gists_url":"https://api.github.com/users/sanity-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sanity-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanity-io/subscriptions","organizations_url":"https://api.github.com/users/sanity-io/orgs","repos_url":"https://api.github.com/users/sanity-io/repos","events_url":"https://api.github.com/users/sanity-io/events{/privacy}","received_events_url":"https://api.github.com/users/sanity-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sanity-io/sanity","description":"Sanity Content Studio – Collaborate in real-time on structured data","fork":false,"url":"https://api.github.com/repos/sanity-io/sanity","forks_url":"https://api.github.com/repos/sanity-io/sanity/forks","keys_url":"https://api.github.com/repos/sanity-io/sanity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanity-io/sanity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanity-io/sanity/teams","hooks_url":"https://api.github.com/repos/sanity-io/sanity/hooks","issue_events_url":"https://api.github.com/repos/sanity-io/sanity/issues/events{/number}","events_url":"https://api.github.com/repos/sanity-io/sanity/events","assignees_url":"https://api.github.com/repos/sanity-io/sanity/assignees{/user}","branches_url":"https://api.github.com/repos/sanity-io/sanity/branches{/branch}","tags_url":"https://api.github.com/repos/sanity-io/sanity/tags","blobs_url":"https://api.github.com/repos/sanity-io/sanity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanity-io/sanity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanity-io/sanity/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanity-io/sanity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanity-io/sanity/statuses/{sha}","languages_url":"https://api.github.com/repos/sanity-io/sanity/languages","stargazers_url":"https://api.github.com/repos/sanity-io/sanity/stargazers","contributors_url":"https://api.github.com/repos/sanity-io/sanity/contributors","subscribers_url":"https://api.github.com/repos/sanity-io/sanity/subscribers","subscription_url":"https://api.github.com/repos/sanity-io/sanity/subscription","commits_url":"https://api.github.com/repos/sanity-io/sanity/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanity-io/sanity/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanity-io/sanity/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanity-io/sanity/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanity-io/sanity/contents/{+path}","compare_url":"https://api.github.com/repos/sanity-io/sanity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanity-io/sanity/merges","archive_url":"https://api.github.com/repos/sanity-io/sanity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanity-io/sanity/downloads","issues_url":"https://api.github.com/repos/sanity-io/sanity/issues{/number}","pulls_url":"https://api.github.com/repos/sanity-io/sanity/pulls{/number}","milestones_url":"https://api.github.com/repos/sanity-io/sanity/milestones{/number}","notifications_url":"https://api.github.com/repos/sanity-io/sanity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanity-io/sanity/labels{/name}","releases_url":"https://api.github.com/repos/sanity-io/sanity/releases{/id}","deployments_url":"https://api.github.com/repos/sanity-io/sanity/deployments","created_at":"2017-01-18T19:19:02Z","updated_at":"2018-03-06T15:10:13Z","pushed_at":"2018-03-06T19:15:53Z","git_url":"git://github.com/sanity-io/sanity.git","ssh_url":"git@github.com:sanity-io/sanity.git","clone_url":"https://github.com/sanity-io/sanity.git","svn_url":"https://github.com/sanity-io/sanity","homepage":"https://sanity.io","size":22647,"stargazers_count":330,"watchers_count":330,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":69,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":20,"open_issues":69,"watchers":330,"default_branch":"next"}},"base":{"label":"sanity-io:next","ref":"next","sha":"64edf54e653acaea4f209647adf0306d14d8846c","user":{"login":"sanity-io","id":17177659,"avatar_url":"https://avatars2.githubusercontent.com/u/17177659?v=4","gravatar_id":"","url":"https://api.github.com/users/sanity-io","html_url":"https://github.com/sanity-io","followers_url":"https://api.github.com/users/sanity-io/followers","following_url":"https://api.github.com/users/sanity-io/following{/other_user}","gists_url":"https://api.github.com/users/sanity-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sanity-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanity-io/subscriptions","organizations_url":"https://api.github.com/users/sanity-io/orgs","repos_url":"https://api.github.com/users/sanity-io/repos","events_url":"https://api.github.com/users/sanity-io/events{/privacy}","received_events_url":"https://api.github.com/users/sanity-io/received_events","type":"Organization","site_admin":false},"repo":{"id":79375056,"name":"sanity","full_name":"sanity-io/sanity","owner":{"login":"sanity-io","id":17177659,"avatar_url":"https://avatars2.githubusercontent.com/u/17177659?v=4","gravatar_id":"","url":"https://api.github.com/users/sanity-io","html_url":"https://github.com/sanity-io","followers_url":"https://api.github.com/users/sanity-io/followers","following_url":"https://api.github.com/users/sanity-io/following{/other_user}","gists_url":"https://api.github.com/users/sanity-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sanity-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanity-io/subscriptions","organizations_url":"https://api.github.com/users/sanity-io/orgs","repos_url":"https://api.github.com/users/sanity-io/repos","events_url":"https://api.github.com/users/sanity-io/events{/privacy}","received_events_url":"https://api.github.com/users/sanity-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sanity-io/sanity","description":"Sanity Content Studio – Collaborate in real-time on structured data","fork":false,"url":"https://api.github.com/repos/sanity-io/sanity","forks_url":"https://api.github.com/repos/sanity-io/sanity/forks","keys_url":"https://api.github.com/repos/sanity-io/sanity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanity-io/sanity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanity-io/sanity/teams","hooks_url":"https://api.github.com/repos/sanity-io/sanity/hooks","issue_events_url":"https://api.github.com/repos/sanity-io/sanity/issues/events{/number}","events_url":"https://api.github.com/repos/sanity-io/sanity/events","assignees_url":"https://api.github.com/repos/sanity-io/sanity/assignees{/user}","branches_url":"https://api.github.com/repos/sanity-io/sanity/branches{/branch}","tags_url":"https://api.github.com/repos/sanity-io/sanity/tags","blobs_url":"https://api.github.com/repos/sanity-io/sanity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanity-io/sanity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanity-io/sanity/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanity-io/sanity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanity-io/sanity/statuses/{sha}","languages_url":"https://api.github.com/repos/sanity-io/sanity/languages","stargazers_url":"https://api.github.com/repos/sanity-io/sanity/stargazers","contributors_url":"https://api.github.com/repos/sanity-io/sanity/contributors","subscribers_url":"https://api.github.com/repos/sanity-io/sanity/subscribers","subscription_url":"https://api.github.com/repos/sanity-io/sanity/subscription","commits_url":"https://api.github.com/repos/sanity-io/sanity/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanity-io/sanity/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanity-io/sanity/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanity-io/sanity/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanity-io/sanity/contents/{+path}","compare_url":"https://api.github.com/repos/sanity-io/sanity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanity-io/sanity/merges","archive_url":"https://api.github.com/repos/sanity-io/sanity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanity-io/sanity/downloads","issues_url":"https://api.github.com/repos/sanity-io/sanity/issues{/number}","pulls_url":"https://api.github.com/repos/sanity-io/sanity/pulls{/number}","milestones_url":"https://api.github.com/repos/sanity-io/sanity/milestones{/number}","notifications_url":"https://api.github.com/repos/sanity-io/sanity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanity-io/sanity/labels{/name}","releases_url":"https://api.github.com/repos/sanity-io/sanity/releases{/id}","deployments_url":"https://api.github.com/repos/sanity-io/sanity/deployments","created_at":"2017-01-18T19:19:02Z","updated_at":"2018-03-06T15:10:13Z","pushed_at":"2018-03-06T19:15:53Z","git_url":"git://github.com/sanity-io/sanity.git","ssh_url":"git@github.com:sanity-io/sanity.git","clone_url":"https://github.com/sanity-io/sanity.git","svn_url":"https://github.com/sanity-io/sanity","homepage":"https://sanity.io","size":22647,"stargazers_count":330,"watchers_count":330,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":69,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":20,"open_issues":69,"watchers":330,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/sanity-io/sanity/pulls/648"},"html":{"href":"https://github.com/sanity-io/sanity/pull/648"},"issue":{"href":"https://api.github.com/repos/sanity-io/sanity/issues/648"},"comments":{"href":"https://api.github.com/repos/sanity-io/sanity/issues/648/comments"},"review_comments":{"href":"https://api.github.com/repos/sanity-io/sanity/pulls/648/comments"},"review_comment":{"href":"https://api.github.com/repos/sanity-io/sanity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sanity-io/sanity/pulls/648/commits"},"statuses":{"href":"https://api.github.com/repos/sanity-io/sanity/statuses/81ea1b8304ddbe1905a9b44deb7373f70cd57398"}},"author_association":"OWNER"}}
{"actor":{"display_login":"bjoerge"}}