{"action":"reopened","number":1038,"pull_request":{"url":"https://api.github.com/repos/neo4jrb/neo4j/pulls/1038","id":49974907,"html_url":"https://github.com/neo4jrb/neo4j/pull/1038","diff_url":"https://github.com/neo4jrb/neo4j/pull/1038.diff","patch_url":"https://github.com/neo4jrb/neo4j/pull/1038.patch","issue_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/1038","number":1038,"state":"open","locked":false,"title":"Arguments for ActiveRel.creates_unique, new Association `unique` options","user":{"login":"subvertallchris","id":4097271,"avatar_url":"https://avatars.githubusercontent.com/u/4097271?v=3","gravatar_id":"","url":"https://api.github.com/users/subvertallchris","html_url":"https://github.com/subvertallchris","followers_url":"https://api.github.com/users/subvertallchris/followers","following_url":"https://api.github.com/users/subvertallchris/following{/other_user}","gists_url":"https://api.github.com/users/subvertallchris/gists{/gist_id}","starred_url":"https://api.github.com/users/subvertallchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subvertallchris/subscriptions","organizations_url":"https://api.github.com/users/subvertallchris/orgs","repos_url":"https://api.github.com/users/subvertallchris/repos","events_url":"https://api.github.com/users/subvertallchris/events{/privacy}","received_events_url":"https://api.github.com/users/subvertallchris/received_events","type":"User","site_admin":false},"body":"This is RE: https://github.com/neo4jrb/neo4j/issues/1035. It forces ActiveRel's `creates_unique` and `Association`'s `unique` option to take an argument.\r\n\r\n* `:none` means that all properties are ignored where `CREATE UNIQUE` is concerned, properties will be set after the rel is created, like our current expectations\r\n* `:all` means that any property's change will result in a new rel\r\n* `{on: [keys]}` defines which properties it uses for the match\r\n* `{except: [keys]}` is the inverse of `on`\r\n\r\nThere is no default, you must pick one. This will prevent surprises for new and current users.\r\n\r\nThe `FilteredHash` class cares about these rules but nothing else. Give it a hash and instructions and `filtered` will return an array with two elements: `[hash of props to use for match, remaining]`. Not married to any method or class names here.","created_at":"2015-11-06T16:34:39Z","updated_at":"2015-11-11T13:34:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3db5288068e5d569219a1c408c9b7ec96d72d87","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neo4jrb/neo4j/pulls/1038/commits","review_comments_url":"https://api.github.com/repos/neo4jrb/neo4j/pulls/1038/comments","review_comment_url":"https://api.github.com/repos/neo4jrb/neo4j/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/1038/comments","statuses_url":"https://api.github.com/repos/neo4jrb/neo4j/statuses/c66f218c459744c25ca9779c9540e6fdf2a1580d","head":{"label":"neo4jrb:creates_unique_with_props","ref":"creates_unique_with_props","sha":"c66f218c459744c25ca9779c9540e6fdf2a1580d","user":{"login":"neo4jrb","id":8579795,"avatar_url":"https://avatars.githubusercontent.com/u/8579795?v=3","gravatar_id":"","url":"https://api.github.com/users/neo4jrb","html_url":"https://github.com/neo4jrb","followers_url":"https://api.github.com/users/neo4jrb/followers","following_url":"https://api.github.com/users/neo4jrb/following{/other_user}","gists_url":"https://api.github.com/users/neo4jrb/gists{/gist_id}","starred_url":"https://api.github.com/users/neo4jrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neo4jrb/subscriptions","organizations_url":"https://api.github.com/users/neo4jrb/orgs","repos_url":"https://api.github.com/users/neo4jrb/repos","events_url":"https://api.github.com/users/neo4jrb/events{/privacy}","received_events_url":"https://api.github.com/users/neo4jrb/received_events","type":"Organization","site_admin":false},"repo":{"id":20724,"name":"neo4j","full_name":"neo4jrb/neo4j","owner":{"login":"neo4jrb","id":8579795,"avatar_url":"https://avatars.githubusercontent.com/u/8579795?v=3","gravatar_id":"","url":"https://api.github.com/users/neo4jrb","html_url":"https://github.com/neo4jrb","followers_url":"https://api.github.com/users/neo4jrb/followers","following_url":"https://api.github.com/users/neo4jrb/following{/other_user}","gists_url":"https://api.github.com/users/neo4jrb/gists{/gist_id}","starred_url":"https://api.github.com/users/neo4jrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neo4jrb/subscriptions","organizations_url":"https://api.github.com/users/neo4jrb/orgs","repos_url":"https://api.github.com/users/neo4jrb/repos","events_url":"https://api.github.com/users/neo4jrb/events{/privacy}","received_events_url":"https://api.github.com/users/neo4jrb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neo4jrb/neo4j","description":"An active model wrapper for the Neo4j Graph Database for Ruby.","fork":false,"url":"https://api.github.com/repos/neo4jrb/neo4j","forks_url":"https://api.github.com/repos/neo4jrb/neo4j/forks","keys_url":"https://api.github.com/repos/neo4jrb/neo4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neo4jrb/neo4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neo4jrb/neo4j/teams","hooks_url":"https://api.github.com/repos/neo4jrb/neo4j/hooks","issue_events_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/events{/number}","events_url":"https://api.github.com/repos/neo4jrb/neo4j/events","assignees_url":"https://api.github.com/repos/neo4jrb/neo4j/assignees{/user}","branches_url":"https://api.github.com/repos/neo4jrb/neo4j/branches{/branch}","tags_url":"https://api.github.com/repos/neo4jrb/neo4j/tags","blobs_url":"https://api.github.com/repos/neo4jrb/neo4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neo4jrb/neo4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neo4jrb/neo4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/neo4jrb/neo4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neo4jrb/neo4j/statuses/{sha}","languages_url":"https://api.github.com/repos/neo4jrb/neo4j/languages","stargazers_url":"https://api.github.com/repos/neo4jrb/neo4j/stargazers","contributors_url":"https://api.github.com/repos/neo4jrb/neo4j/contributors","subscribers_url":"https://api.github.com/repos/neo4jrb/neo4j/subscribers","subscription_url":"https://api.github.com/repos/neo4jrb/neo4j/subscription","commits_url":"https://api.github.com/repos/neo4jrb/neo4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/neo4jrb/neo4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/neo4jrb/neo4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/neo4jrb/neo4j/contents/{+path}","compare_url":"https://api.github.com/repos/neo4jrb/neo4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neo4jrb/neo4j/merges","archive_url":"https://api.github.com/repos/neo4jrb/neo4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neo4jrb/neo4j/downloads","issues_url":"https://api.github.com/repos/neo4jrb/neo4j/issues{/number}","pulls_url":"https://api.github.com/repos/neo4jrb/neo4j/pulls{/number}","milestones_url":"https://api.github.com/repos/neo4jrb/neo4j/milestones{/number}","notifications_url":"https://api.github.com/repos/neo4jrb/neo4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neo4jrb/neo4j/labels{/name}","releases_url":"https://api.github.com/repos/neo4jrb/neo4j/releases{/id}","created_at":"2008-05-30T10:44:36Z","updated_at":"2015-11-09T07:20:55Z","pushed_at":"2015-11-10T18:05:45Z","git_url":"git://github.com/neo4jrb/neo4j.git","ssh_url":"git@github.com:neo4jrb/neo4j.git","clone_url":"https://github.com/neo4jrb/neo4j.git","svn_url":"https://github.com/neo4jrb/neo4j","homepage":"http://neo4jrb.io","size":50991,"stargazers_count":943,"watchers_count":943,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":175,"mirror_url":null,"open_issues_count":75,"forks":175,"open_issues":75,"watchers":943,"default_branch":"master"}},"base":{"label":"neo4jrb:master","ref":"master","sha":"64d4eb154507b9b84733c6cfd32f723499ab09ab","user":{"login":"neo4jrb","id":8579795,"avatar_url":"https://avatars.githubusercontent.com/u/8579795?v=3","gravatar_id":"","url":"https://api.github.com/users/neo4jrb","html_url":"https://github.com/neo4jrb","followers_url":"https://api.github.com/users/neo4jrb/followers","following_url":"https://api.github.com/users/neo4jrb/following{/other_user}","gists_url":"https://api.github.com/users/neo4jrb/gists{/gist_id}","starred_url":"https://api.github.com/users/neo4jrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neo4jrb/subscriptions","organizations_url":"https://api.github.com/users/neo4jrb/orgs","repos_url":"https://api.github.com/users/neo4jrb/repos","events_url":"https://api.github.com/users/neo4jrb/events{/privacy}","received_events_url":"https://api.github.com/users/neo4jrb/received_events","type":"Organization","site_admin":false},"repo":{"id":20724,"name":"neo4j","full_name":"neo4jrb/neo4j","owner":{"login":"neo4jrb","id":8579795,"avatar_url":"https://avatars.githubusercontent.com/u/8579795?v=3","gravatar_id":"","url":"https://api.github.com/users/neo4jrb","html_url":"https://github.com/neo4jrb","followers_url":"https://api.github.com/users/neo4jrb/followers","following_url":"https://api.github.com/users/neo4jrb/following{/other_user}","gists_url":"https://api.github.com/users/neo4jrb/gists{/gist_id}","starred_url":"https://api.github.com/users/neo4jrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neo4jrb/subscriptions","organizations_url":"https://api.github.com/users/neo4jrb/orgs","repos_url":"https://api.github.com/users/neo4jrb/repos","events_url":"https://api.github.com/users/neo4jrb/events{/privacy}","received_events_url":"https://api.github.com/users/neo4jrb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neo4jrb/neo4j","description":"An active model wrapper for the Neo4j Graph Database for Ruby.","fork":false,"url":"https://api.github.com/repos/neo4jrb/neo4j","forks_url":"https://api.github.com/repos/neo4jrb/neo4j/forks","keys_url":"https://api.github.com/repos/neo4jrb/neo4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neo4jrb/neo4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neo4jrb/neo4j/teams","hooks_url":"https://api.github.com/repos/neo4jrb/neo4j/hooks","issue_events_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/events{/number}","events_url":"https://api.github.com/repos/neo4jrb/neo4j/events","assignees_url":"https://api.github.com/repos/neo4jrb/neo4j/assignees{/user}","branches_url":"https://api.github.com/repos/neo4jrb/neo4j/branches{/branch}","tags_url":"https://api.github.com/repos/neo4jrb/neo4j/tags","blobs_url":"https://api.github.com/repos/neo4jrb/neo4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neo4jrb/neo4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neo4jrb/neo4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/neo4jrb/neo4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neo4jrb/neo4j/statuses/{sha}","languages_url":"https://api.github.com/repos/neo4jrb/neo4j/languages","stargazers_url":"https://api.github.com/repos/neo4jrb/neo4j/stargazers","contributors_url":"https://api.github.com/repos/neo4jrb/neo4j/contributors","subscribers_url":"https://api.github.com/repos/neo4jrb/neo4j/subscribers","subscription_url":"https://api.github.com/repos/neo4jrb/neo4j/subscription","commits_url":"https://api.github.com/repos/neo4jrb/neo4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/neo4jrb/neo4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/neo4jrb/neo4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/neo4jrb/neo4j/contents/{+path}","compare_url":"https://api.github.com/repos/neo4jrb/neo4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neo4jrb/neo4j/merges","archive_url":"https://api.github.com/repos/neo4jrb/neo4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neo4jrb/neo4j/downloads","issues_url":"https://api.github.com/repos/neo4jrb/neo4j/issues{/number}","pulls_url":"https://api.github.com/repos/neo4jrb/neo4j/pulls{/number}","milestones_url":"https://api.github.com/repos/neo4jrb/neo4j/milestones{/number}","notifications_url":"https://api.github.com/repos/neo4jrb/neo4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neo4jrb/neo4j/labels{/name}","releases_url":"https://api.github.com/repos/neo4jrb/neo4j/releases{/id}","created_at":"2008-05-30T10:44:36Z","updated_at":"2015-11-09T07:20:55Z","pushed_at":"2015-11-10T18:05:45Z","git_url":"git://github.com/neo4jrb/neo4j.git","ssh_url":"git@github.com:neo4jrb/neo4j.git","clone_url":"https://github.com/neo4jrb/neo4j.git","svn_url":"https://github.com/neo4jrb/neo4j","homepage":"http://neo4jrb.io","size":50991,"stargazers_count":943,"watchers_count":943,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":175,"mirror_url":null,"open_issues_count":75,"forks":175,"open_issues":75,"watchers":943,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neo4jrb/neo4j/pulls/1038"},"html":{"href":"https://github.com/neo4jrb/neo4j/pull/1038"},"issue":{"href":"https://api.github.com/repos/neo4jrb/neo4j/issues/1038"},"comments":{"href":"https://api.github.com/repos/neo4jrb/neo4j/issues/1038/comments"},"review_comments":{"href":"https://api.github.com/repos/neo4jrb/neo4j/pulls/1038/comments"},"review_comment":{"href":"https://api.github.com/repos/neo4jrb/neo4j/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neo4jrb/neo4j/pulls/1038/commits"},"statuses":{"href":"https://api.github.com/repos/neo4jrb/neo4j/statuses/c66f218c459744c25ca9779c9540e6fdf2a1580d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":10,"review_comments":0,"commits":6,"additions":493,"deletions":43,"changed_files":17}}