{"action":"created","comment":{"url":"https://api.github.com/repos/publiclab/plots2/pulls/comments/74018007","id":74018007,"diff_hunk":"@@ -399,9 +418,9 @@ def totalcount\n   # URL-related methods:\n \n   # is this used anymore? deprecate?\n-  def slug\n-    self.path.split('/').last\n-  end\n+  # def slug\n+  #  self.path.split('/').last\n+  # end\n ","path":"app/models/drupal_node.rb","position":83,"original_position":55,"commit_id":"0f7d6b5f676f4d6d87c86215488bbfc799d6898f","original_commit_id":"80c11992bb5f0e63cbe9b8bb757d87ff45f46f00","user":{"login":"jywarren","id":24359,"avatar_url":"https://avatars.githubusercontent.com/u/24359?v=3","gravatar_id":"","url":"https://api.github.com/users/jywarren","html_url":"https://github.com/jywarren","followers_url":"https://api.github.com/users/jywarren/followers","following_url":"https://api.github.com/users/jywarren/following{/other_user}","gists_url":"https://api.github.com/users/jywarren/gists{/gist_id}","starred_url":"https://api.github.com/users/jywarren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jywarren/subscriptions","organizations_url":"https://api.github.com/users/jywarren/orgs","repos_url":"https://api.github.com/users/jywarren/repos","events_url":"https://api.github.com/users/jywarren/events{/privacy}","received_events_url":"https://api.github.com/users/jywarren/received_events","type":"User","site_admin":false},"body":"Let's just delete this method, sound good?","created_at":"2016-08-09T08:30:05Z","updated_at":"2016-08-09T08:30:05Z","html_url":"https://github.com/publiclab/plots2/pull/600#discussion_r74018007","pull_request_url":"https://api.github.com/repos/publiclab/plots2/pulls/600","_links":{"self":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/comments/74018007"},"html":{"href":"https://github.com/publiclab/plots2/pull/600#discussion_r74018007"},"pull_request":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/600"}}},"pull_request":{"url":"https://api.github.com/repos/publiclab/plots2/pulls/600","id":75986871,"html_url":"https://github.com/publiclab/plots2/pull/600","diff_url":"https://github.com/publiclab/plots2/pull/600.diff","patch_url":"https://github.com/publiclab/plots2/pull/600.patch","issue_url":"https://api.github.com/repos/publiclab/plots2/issues/600","number":600,"state":"open","locked":false,"title":"Add friendly_id gem and update node paths on changing title","user":{"login":"ananyo2012","id":10486343,"avatar_url":"https://avatars.githubusercontent.com/u/10486343?v=3","gravatar_id":"","url":"https://api.github.com/users/ananyo2012","html_url":"https://github.com/ananyo2012","followers_url":"https://api.github.com/users/ananyo2012/followers","following_url":"https://api.github.com/users/ananyo2012/following{/other_user}","gists_url":"https://api.github.com/users/ananyo2012/gists{/gist_id}","starred_url":"https://api.github.com/users/ananyo2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ananyo2012/subscriptions","organizations_url":"https://api.github.com/users/ananyo2012/orgs","repos_url":"https://api.github.com/users/ananyo2012/repos","events_url":"https://api.github.com/users/ananyo2012/events{/privacy}","received_events_url":"https://api.github.com/users/ananyo2012/received_events","type":"User","site_admin":false},"body":"Make sure these boxes are checked before your pull request is ready to be reviewed and merged. Thanks!\r\n\r\n* [x] tests pass -- `rake test`\r\n* [x] code is in uniquely-named feature branch, and has been rebased on top of latest master (especially if you've been asked to make additional changes)\r\n* [x] pull request are descriptively named\r\n* [x] if possible, multiple commits squashed if they're smaller changes\r\n* [ ] reviewed/confirmed/tested by another contributor or maintainer\r\n* [ ] `development.sqlite.example` has been updated if any database migrations were added\r\n\r\n## Important\r\nTo make use of the changes we need to populate the new `slug` column for the existing data in the database. So we have to run this query from the rails console.\r\n```ruby\r\nDrupalNode.find_each(&:save)\r\n```\r\n\r\nThanks!","created_at":"2016-07-01T14:19:16Z","updated_at":"2016-08-09T08:30:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"04daaf5f066bf0d495aef5dbb91c59c6ccc64cb5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/publiclab/plots2/pulls/600/commits","review_comments_url":"https://api.github.com/repos/publiclab/plots2/pulls/600/comments","review_comment_url":"https://api.github.com/repos/publiclab/plots2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/publiclab/plots2/issues/600/comments","statuses_url":"https://api.github.com/repos/publiclab/plots2/statuses/0f7d6b5f676f4d6d87c86215488bbfc799d6898f","head":{"label":"ananyo2012:friendly_id","ref":"friendly_id","sha":"0f7d6b5f676f4d6d87c86215488bbfc799d6898f","user":{"login":"ananyo2012","id":10486343,"avatar_url":"https://avatars.githubusercontent.com/u/10486343?v=3","gravatar_id":"","url":"https://api.github.com/users/ananyo2012","html_url":"https://github.com/ananyo2012","followers_url":"https://api.github.com/users/ananyo2012/followers","following_url":"https://api.github.com/users/ananyo2012/following{/other_user}","gists_url":"https://api.github.com/users/ananyo2012/gists{/gist_id}","starred_url":"https://api.github.com/users/ananyo2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ananyo2012/subscriptions","organizations_url":"https://api.github.com/users/ananyo2012/orgs","repos_url":"https://api.github.com/users/ananyo2012/repos","events_url":"https://api.github.com/users/ananyo2012/events{/privacy}","received_events_url":"https://api.github.com/users/ananyo2012/received_events","type":"User","site_admin":false},"repo":{"id":52855426,"name":"plots2","full_name":"ananyo2012/plots2","owner":{"login":"ananyo2012","id":10486343,"avatar_url":"https://avatars.githubusercontent.com/u/10486343?v=3","gravatar_id":"","url":"https://api.github.com/users/ananyo2012","html_url":"https://github.com/ananyo2012","followers_url":"https://api.github.com/users/ananyo2012/followers","following_url":"https://api.github.com/users/ananyo2012/following{/other_user}","gists_url":"https://api.github.com/users/ananyo2012/gists{/gist_id}","starred_url":"https://api.github.com/users/ananyo2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ananyo2012/subscriptions","organizations_url":"https://api.github.com/users/ananyo2012/orgs","repos_url":"https://api.github.com/users/ananyo2012/repos","events_url":"https://api.github.com/users/ananyo2012/events{/privacy}","received_events_url":"https://api.github.com/users/ananyo2012/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ananyo2012/plots2","description":"The PublicLab.org website - a collaborative research sharing platform and wiki.","fork":true,"url":"https://api.github.com/repos/ananyo2012/plots2","forks_url":"https://api.github.com/repos/ananyo2012/plots2/forks","keys_url":"https://api.github.com/repos/ananyo2012/plots2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ananyo2012/plots2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ananyo2012/plots2/teams","hooks_url":"https://api.github.com/repos/ananyo2012/plots2/hooks","issue_events_url":"https://api.github.com/repos/ananyo2012/plots2/issues/events{/number}","events_url":"https://api.github.com/repos/ananyo2012/plots2/events","assignees_url":"https://api.github.com/repos/ananyo2012/plots2/assignees{/user}","branches_url":"https://api.github.com/repos/ananyo2012/plots2/branches{/branch}","tags_url":"https://api.github.com/repos/ananyo2012/plots2/tags","blobs_url":"https://api.github.com/repos/ananyo2012/plots2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ananyo2012/plots2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ananyo2012/plots2/git/refs{/sha}","trees_url":"https://api.github.com/repos/ananyo2012/plots2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ananyo2012/plots2/statuses/{sha}","languages_url":"https://api.github.com/repos/ananyo2012/plots2/languages","stargazers_url":"https://api.github.com/repos/ananyo2012/plots2/stargazers","contributors_url":"https://api.github.com/repos/ananyo2012/plots2/contributors","subscribers_url":"https://api.github.com/repos/ananyo2012/plots2/subscribers","subscription_url":"https://api.github.com/repos/ananyo2012/plots2/subscription","commits_url":"https://api.github.com/repos/ananyo2012/plots2/commits{/sha}","git_commits_url":"https://api.github.com/repos/ananyo2012/plots2/git/commits{/sha}","comments_url":"https://api.github.com/repos/ananyo2012/plots2/comments{/number}","issue_comment_url":"https://api.github.com/repos/ananyo2012/plots2/issues/comments{/number}","contents_url":"https://api.github.com/repos/ananyo2012/plots2/contents/{+path}","compare_url":"https://api.github.com/repos/ananyo2012/plots2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ananyo2012/plots2/merges","archive_url":"https://api.github.com/repos/ananyo2012/plots2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ananyo2012/plots2/downloads","issues_url":"https://api.github.com/repos/ananyo2012/plots2/issues{/number}","pulls_url":"https://api.github.com/repos/ananyo2012/plots2/pulls{/number}","milestones_url":"https://api.github.com/repos/ananyo2012/plots2/milestones{/number}","notifications_url":"https://api.github.com/repos/ananyo2012/plots2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ananyo2012/plots2/labels{/name}","releases_url":"https://api.github.com/repos/ananyo2012/plots2/releases{/id}","deployments_url":"https://api.github.com/repos/ananyo2012/plots2/deployments","created_at":"2016-03-01T06:56:59Z","updated_at":"2016-03-01T06:57:00Z","pushed_at":"2016-08-08T19:04:57Z","git_url":"git://github.com/ananyo2012/plots2.git","ssh_url":"git@github.com:ananyo2012/plots2.git","clone_url":"https://github.com/ananyo2012/plots2.git","svn_url":"https://github.com/ananyo2012/plots2","homepage":"http://publiclab.org","size":11283,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"publiclab:master","ref":"master","sha":"5aee2f021db9162fa434c286083fe0bab3605868","user":{"login":"publiclab","id":4621650,"avatar_url":"https://avatars.githubusercontent.com/u/4621650?v=3","gravatar_id":"","url":"https://api.github.com/users/publiclab","html_url":"https://github.com/publiclab","followers_url":"https://api.github.com/users/publiclab/followers","following_url":"https://api.github.com/users/publiclab/following{/other_user}","gists_url":"https://api.github.com/users/publiclab/gists{/gist_id}","starred_url":"https://api.github.com/users/publiclab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/publiclab/subscriptions","organizations_url":"https://api.github.com/users/publiclab/orgs","repos_url":"https://api.github.com/users/publiclab/repos","events_url":"https://api.github.com/users/publiclab/events{/privacy}","received_events_url":"https://api.github.com/users/publiclab/received_events","type":"Organization","site_admin":false},"repo":{"id":10504669,"name":"plots2","full_name":"publiclab/plots2","owner":{"login":"publiclab","id":4621650,"avatar_url":"https://avatars.githubusercontent.com/u/4621650?v=3","gravatar_id":"","url":"https://api.github.com/users/publiclab","html_url":"https://github.com/publiclab","followers_url":"https://api.github.com/users/publiclab/followers","following_url":"https://api.github.com/users/publiclab/following{/other_user}","gists_url":"https://api.github.com/users/publiclab/gists{/gist_id}","starred_url":"https://api.github.com/users/publiclab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/publiclab/subscriptions","organizations_url":"https://api.github.com/users/publiclab/orgs","repos_url":"https://api.github.com/users/publiclab/repos","events_url":"https://api.github.com/users/publiclab/events{/privacy}","received_events_url":"https://api.github.com/users/publiclab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/publiclab/plots2","description":"The PublicLab.org website - a collaborative research sharing platform and wiki.","fork":false,"url":"https://api.github.com/repos/publiclab/plots2","forks_url":"https://api.github.com/repos/publiclab/plots2/forks","keys_url":"https://api.github.com/repos/publiclab/plots2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/publiclab/plots2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/publiclab/plots2/teams","hooks_url":"https://api.github.com/repos/publiclab/plots2/hooks","issue_events_url":"https://api.github.com/repos/publiclab/plots2/issues/events{/number}","events_url":"https://api.github.com/repos/publiclab/plots2/events","assignees_url":"https://api.github.com/repos/publiclab/plots2/assignees{/user}","branches_url":"https://api.github.com/repos/publiclab/plots2/branches{/branch}","tags_url":"https://api.github.com/repos/publiclab/plots2/tags","blobs_url":"https://api.github.com/repos/publiclab/plots2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/publiclab/plots2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/publiclab/plots2/git/refs{/sha}","trees_url":"https://api.github.com/repos/publiclab/plots2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/publiclab/plots2/statuses/{sha}","languages_url":"https://api.github.com/repos/publiclab/plots2/languages","stargazers_url":"https://api.github.com/repos/publiclab/plots2/stargazers","contributors_url":"https://api.github.com/repos/publiclab/plots2/contributors","subscribers_url":"https://api.github.com/repos/publiclab/plots2/subscribers","subscription_url":"https://api.github.com/repos/publiclab/plots2/subscription","commits_url":"https://api.github.com/repos/publiclab/plots2/commits{/sha}","git_commits_url":"https://api.github.com/repos/publiclab/plots2/git/commits{/sha}","comments_url":"https://api.github.com/repos/publiclab/plots2/comments{/number}","issue_comment_url":"https://api.github.com/repos/publiclab/plots2/issues/comments{/number}","contents_url":"https://api.github.com/repos/publiclab/plots2/contents/{+path}","compare_url":"https://api.github.com/repos/publiclab/plots2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/publiclab/plots2/merges","archive_url":"https://api.github.com/repos/publiclab/plots2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/publiclab/plots2/downloads","issues_url":"https://api.github.com/repos/publiclab/plots2/issues{/number}","pulls_url":"https://api.github.com/repos/publiclab/plots2/pulls{/number}","milestones_url":"https://api.github.com/repos/publiclab/plots2/milestones{/number}","notifications_url":"https://api.github.com/repos/publiclab/plots2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/publiclab/plots2/labels{/name}","releases_url":"https://api.github.com/repos/publiclab/plots2/releases{/id}","deployments_url":"https://api.github.com/repos/publiclab/plots2/deployments","created_at":"2013-06-05T14:36:10Z","updated_at":"2016-07-20T15:34:56Z","pushed_at":"2016-08-08T19:06:29Z","git_url":"git://github.com/publiclab/plots2.git","ssh_url":"git@github.com:publiclab/plots2.git","clone_url":"https://github.com/publiclab/plots2.git","svn_url":"https://github.com/publiclab/plots2","homepage":"https://publiclab.org","size":11397,"stargazers_count":44,"watchers_count":44,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":47,"mirror_url":null,"open_issues_count":174,"forks":47,"open_issues":174,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/600"},"html":{"href":"https://github.com/publiclab/plots2/pull/600"},"issue":{"href":"https://api.github.com/repos/publiclab/plots2/issues/600"},"comments":{"href":"https://api.github.com/repos/publiclab/plots2/issues/600/comments"},"review_comments":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/600/comments"},"review_comment":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/600/commits"},"statuses":{"href":"https://api.github.com/repos/publiclab/plots2/statuses/0f7d6b5f676f4d6d87c86215488bbfc799d6898f"}}}}
{"actor":{"display_login":"jywarren"}}