{"action":"created","comment":{"url":"https://api.github.com/repos/locomotivecms/engine/pulls/comments/194648413","pull_request_review_id":127857554,"id":194648413,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDY0ODQxMw==","diff_hunk":"@@ -8,12 +8,26 @@ class EditorService < Struct.new(:site, :account, :page)\n     def save(site_attributes, page_attributes)\n       site.update_attributes(site_attributes)\n \n+      page_attributes[:sections_content] = EditorService.remove_ids(page_attributes[:sections_content])\n       page.update_attributes(page_attributes)\n \n       track_activity 'editable_element.updated_bulk', parameters: {\n         pages: [page].map { |p| { title: p.title, _id: p._id } }\n       }\n     end\n \n+    def self.remove_ids(json)","path":"app/services/locomotive/editor_service.rb","position":12,"original_position":12,"commit_id":"fca814ba24caa52a7224b2af1fadeea1a9ceed0a","original_commit_id":"fca814ba24caa52a7224b2af1fadeea1a9ceed0a","user":{"login":"did","id":8065,"node_id":"MDQ6VXNlcjgwNjU=","avatar_url":"https://avatars1.githubusercontent.com/u/8065?v=4","gravatar_id":"","url":"https://api.github.com/users/did","html_url":"https://github.com/did","followers_url":"https://api.github.com/users/did/followers","following_url":"https://api.github.com/users/did/following{/other_user}","gists_url":"https://api.github.com/users/did/gists{/gist_id}","starred_url":"https://api.github.com/users/did/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/did/subscriptions","organizations_url":"https://api.github.com/users/did/orgs","repos_url":"https://api.github.com/users/did/repos","events_url":"https://api.github.com/users/did/events{/privacy}","received_events_url":"https://api.github.com/users/did/received_events","type":"User","site_admin":false},"body":"use an instance method instead\r\n","created_at":"2018-06-12T08:09:53Z","updated_at":"2018-06-12T08:14:32Z","html_url":"https://github.com/locomotivecms/engine/pull/1242#discussion_r194648413","pull_request_url":"https://api.github.com/repos/locomotivecms/engine/pulls/1242","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/locomotivecms/engine/pulls/comments/194648413"},"html":{"href":"https://github.com/locomotivecms/engine/pull/1242#discussion_r194648413"},"pull_request":{"href":"https://api.github.com/repos/locomotivecms/engine/pulls/1242"}}},"pull_request":{"url":"https://api.github.com/repos/locomotivecms/engine/pulls/1242","id":194197422,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0MTk3NDIy","html_url":"https://github.com/locomotivecms/engine/pull/1242","diff_url":"https://github.com/locomotivecms/engine/pull/1242.diff","patch_url":"https://github.com/locomotivecms/engine/pull/1242.patch","issue_url":"https://api.github.com/repos/locomotivecms/engine/issues/1242","number":1242,"state":"open","locked":false,"title":"fix sections interface and ids handeling","user":{"login":"gridar","id":7994594,"node_id":"MDQ6VXNlcjc5OTQ1OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7994594?v=4","gravatar_id":"","url":"https://api.github.com/users/gridar","html_url":"https://github.com/gridar","followers_url":"https://api.github.com/users/gridar/followers","following_url":"https://api.github.com/users/gridar/following{/other_user}","gists_url":"https://api.github.com/users/gridar/gists{/gist_id}","starred_url":"https://api.github.com/users/gridar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gridar/subscriptions","organizations_url":"https://api.github.com/users/gridar/orgs","repos_url":"https://api.github.com/users/gridar/repos","events_url":"https://api.github.com/users/gridar/events{/privacy}","received_events_url":"https://api.github.com/users/gridar/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-12T08:06:51Z","updated_at":"2018-06-12T08:14:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dce164aeaa613f1a606db3e1712ca226dceb7c84","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/locomotivecms/engine/pulls/1242/commits","review_comments_url":"https://api.github.com/repos/locomotivecms/engine/pulls/1242/comments","review_comment_url":"https://api.github.com/repos/locomotivecms/engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/locomotivecms/engine/issues/1242/comments","statuses_url":"https://api.github.com/repos/locomotivecms/engine/statuses/fca814ba24caa52a7224b2af1fadeea1a9ceed0a","head":{"label":"locomotivecms:fixies","ref":"fixies","sha":"fca814ba24caa52a7224b2af1fadeea1a9ceed0a","user":{"login":"locomotivecms","id":340986,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MDk4Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/340986?v=4","gravatar_id":"","url":"https://api.github.com/users/locomotivecms","html_url":"https://github.com/locomotivecms","followers_url":"https://api.github.com/users/locomotivecms/followers","following_url":"https://api.github.com/users/locomotivecms/following{/other_user}","gists_url":"https://api.github.com/users/locomotivecms/gists{/gist_id}","starred_url":"https://api.github.com/users/locomotivecms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locomotivecms/subscriptions","organizations_url":"https://api.github.com/users/locomotivecms/orgs","repos_url":"https://api.github.com/users/locomotivecms/repos","events_url":"https://api.github.com/users/locomotivecms/events{/privacy}","received_events_url":"https://api.github.com/users/locomotivecms/received_events","type":"Organization","site_admin":false},"repo":{"id":791720,"node_id":"MDEwOlJlcG9zaXRvcnk3OTE3MjA=","name":"engine","full_name":"locomotivecms/engine","owner":{"login":"locomotivecms","id":340986,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MDk4Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/340986?v=4","gravatar_id":"","url":"https://api.github.com/users/locomotivecms","html_url":"https://github.com/locomotivecms","followers_url":"https://api.github.com/users/locomotivecms/followers","following_url":"https://api.github.com/users/locomotivecms/following{/other_user}","gists_url":"https://api.github.com/users/locomotivecms/gists{/gist_id}","starred_url":"https://api.github.com/users/locomotivecms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locomotivecms/subscriptions","organizations_url":"https://api.github.com/users/locomotivecms/orgs","repos_url":"https://api.github.com/users/locomotivecms/repos","events_url":"https://api.github.com/users/locomotivecms/events{/privacy}","received_events_url":"https://api.github.com/users/locomotivecms/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/locomotivecms/engine","description":"A platform to create, publish and edit sites","fork":false,"url":"https://api.github.com/repos/locomotivecms/engine","forks_url":"https://api.github.com/repos/locomotivecms/engine/forks","keys_url":"https://api.github.com/repos/locomotivecms/engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/locomotivecms/engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/locomotivecms/engine/teams","hooks_url":"https://api.github.com/repos/locomotivecms/engine/hooks","issue_events_url":"https://api.github.com/repos/locomotivecms/engine/issues/events{/number}","events_url":"https://api.github.com/repos/locomotivecms/engine/events","assignees_url":"https://api.github.com/repos/locomotivecms/engine/assignees{/user}","branches_url":"https://api.github.com/repos/locomotivecms/engine/branches{/branch}","tags_url":"https://api.github.com/repos/locomotivecms/engine/tags","blobs_url":"https://api.github.com/repos/locomotivecms/engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/locomotivecms/engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/locomotivecms/engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/locomotivecms/engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/locomotivecms/engine/statuses/{sha}","languages_url":"https://api.github.com/repos/locomotivecms/engine/languages","stargazers_url":"https://api.github.com/repos/locomotivecms/engine/stargazers","contributors_url":"https://api.github.com/repos/locomotivecms/engine/contributors","subscribers_url":"https://api.github.com/repos/locomotivecms/engine/subscribers","subscription_url":"https://api.github.com/repos/locomotivecms/engine/subscription","commits_url":"https://api.github.com/repos/locomotivecms/engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/locomotivecms/engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/locomotivecms/engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/locomotivecms/engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/locomotivecms/engine/contents/{+path}","compare_url":"https://api.github.com/repos/locomotivecms/engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/locomotivecms/engine/merges","archive_url":"https://api.github.com/repos/locomotivecms/engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/locomotivecms/engine/downloads","issues_url":"https://api.github.com/repos/locomotivecms/engine/issues{/number}","pulls_url":"https://api.github.com/repos/locomotivecms/engine/pulls{/number}","milestones_url":"https://api.github.com/repos/locomotivecms/engine/milestones{/number}","notifications_url":"https://api.github.com/repos/locomotivecms/engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/locomotivecms/engine/labels{/name}","releases_url":"https://api.github.com/repos/locomotivecms/engine/releases{/id}","deployments_url":"https://api.github.com/repos/locomotivecms/engine/deployments","created_at":"2010-07-22T19:02:27Z","updated_at":"2018-06-07T19:09:30Z","pushed_at":"2018-06-12T08:06:51Z","git_url":"git://github.com/locomotivecms/engine.git","ssh_url":"git@github.com:locomotivecms/engine.git","clone_url":"https://github.com/locomotivecms/engine.git","svn_url":"https://github.com/locomotivecms/engine","homepage":"http://www.locomotivecms.com","size":21301,"stargazers_count":2270,"watchers_count":2270,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":646,"mirror_url":null,"archived":false,"open_issues_count":78,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":646,"open_issues":78,"watchers":2270,"default_branch":"master"}},"base":{"label":"locomotivecms:sections","ref":"sections","sha":"4e7b08fa44eb607ba2ed5d15e85a71ae614a5c53","user":{"login":"locomotivecms","id":340986,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MDk4Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/340986?v=4","gravatar_id":"","url":"https://api.github.com/users/locomotivecms","html_url":"https://github.com/locomotivecms","followers_url":"https://api.github.com/users/locomotivecms/followers","following_url":"https://api.github.com/users/locomotivecms/following{/other_user}","gists_url":"https://api.github.com/users/locomotivecms/gists{/gist_id}","starred_url":"https://api.github.com/users/locomotivecms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locomotivecms/subscriptions","organizations_url":"https://api.github.com/users/locomotivecms/orgs","repos_url":"https://api.github.com/users/locomotivecms/repos","events_url":"https://api.github.com/users/locomotivecms/events{/privacy}","received_events_url":"https://api.github.com/users/locomotivecms/received_events","type":"Organization","site_admin":false},"repo":{"id":791720,"node_id":"MDEwOlJlcG9zaXRvcnk3OTE3MjA=","name":"engine","full_name":"locomotivecms/engine","owner":{"login":"locomotivecms","id":340986,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MDk4Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/340986?v=4","gravatar_id":"","url":"https://api.github.com/users/locomotivecms","html_url":"https://github.com/locomotivecms","followers_url":"https://api.github.com/users/locomotivecms/followers","following_url":"https://api.github.com/users/locomotivecms/following{/other_user}","gists_url":"https://api.github.com/users/locomotivecms/gists{/gist_id}","starred_url":"https://api.github.com/users/locomotivecms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locomotivecms/subscriptions","organizations_url":"https://api.github.com/users/locomotivecms/orgs","repos_url":"https://api.github.com/users/locomotivecms/repos","events_url":"https://api.github.com/users/locomotivecms/events{/privacy}","received_events_url":"https://api.github.com/users/locomotivecms/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/locomotivecms/engine","description":"A platform to create, publish and edit sites","fork":false,"url":"https://api.github.com/repos/locomotivecms/engine","forks_url":"https://api.github.com/repos/locomotivecms/engine/forks","keys_url":"https://api.github.com/repos/locomotivecms/engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/locomotivecms/engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/locomotivecms/engine/teams","hooks_url":"https://api.github.com/repos/locomotivecms/engine/hooks","issue_events_url":"https://api.github.com/repos/locomotivecms/engine/issues/events{/number}","events_url":"https://api.github.com/repos/locomotivecms/engine/events","assignees_url":"https://api.github.com/repos/locomotivecms/engine/assignees{/user}","branches_url":"https://api.github.com/repos/locomotivecms/engine/branches{/branch}","tags_url":"https://api.github.com/repos/locomotivecms/engine/tags","blobs_url":"https://api.github.com/repos/locomotivecms/engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/locomotivecms/engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/locomotivecms/engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/locomotivecms/engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/locomotivecms/engine/statuses/{sha}","languages_url":"https://api.github.com/repos/locomotivecms/engine/languages","stargazers_url":"https://api.github.com/repos/locomotivecms/engine/stargazers","contributors_url":"https://api.github.com/repos/locomotivecms/engine/contributors","subscribers_url":"https://api.github.com/repos/locomotivecms/engine/subscribers","subscription_url":"https://api.github.com/repos/locomotivecms/engine/subscription","commits_url":"https://api.github.com/repos/locomotivecms/engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/locomotivecms/engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/locomotivecms/engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/locomotivecms/engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/locomotivecms/engine/contents/{+path}","compare_url":"https://api.github.com/repos/locomotivecms/engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/locomotivecms/engine/merges","archive_url":"https://api.github.com/repos/locomotivecms/engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/locomotivecms/engine/downloads","issues_url":"https://api.github.com/repos/locomotivecms/engine/issues{/number}","pulls_url":"https://api.github.com/repos/locomotivecms/engine/pulls{/number}","milestones_url":"https://api.github.com/repos/locomotivecms/engine/milestones{/number}","notifications_url":"https://api.github.com/repos/locomotivecms/engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/locomotivecms/engine/labels{/name}","releases_url":"https://api.github.com/repos/locomotivecms/engine/releases{/id}","deployments_url":"https://api.github.com/repos/locomotivecms/engine/deployments","created_at":"2010-07-22T19:02:27Z","updated_at":"2018-06-07T19:09:30Z","pushed_at":"2018-06-12T08:06:51Z","git_url":"git://github.com/locomotivecms/engine.git","ssh_url":"git@github.com:locomotivecms/engine.git","clone_url":"https://github.com/locomotivecms/engine.git","svn_url":"https://github.com/locomotivecms/engine","homepage":"http://www.locomotivecms.com","size":21301,"stargazers_count":2270,"watchers_count":2270,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":646,"mirror_url":null,"archived":false,"open_issues_count":78,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":646,"open_issues":78,"watchers":2270,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/locomotivecms/engine/pulls/1242"},"html":{"href":"https://github.com/locomotivecms/engine/pull/1242"},"issue":{"href":"https://api.github.com/repos/locomotivecms/engine/issues/1242"},"comments":{"href":"https://api.github.com/repos/locomotivecms/engine/issues/1242/comments"},"review_comments":{"href":"https://api.github.com/repos/locomotivecms/engine/pulls/1242/comments"},"review_comment":{"href":"https://api.github.com/repos/locomotivecms/engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/locomotivecms/engine/pulls/1242/commits"},"statuses":{"href":"https://api.github.com/repos/locomotivecms/engine/statuses/fca814ba24caa52a7224b2af1fadeea1a9ceed0a"}},"author_association":"NONE"}}
{"actor":{"display_login":"did"}}