{"action":"created","comment":{"url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/comments/89474558","pull_request_review_id":10013809,"id":89474558,"diff_hunk":"@@ -108,8 +108,27 @@\n       file { test_file(\"Exampledocument.odt\", \"application/vnd.oasis.opendocument\") }\n     end\n   end\n+\n+  factory :feature, class: Decidim::Feature do\n+    name { Decidim::Faker::Localized.sentence(3) }\n+    participatory_process\n+    feature_type \"dummy\"\n+  end\n+\n+  factory :component, class: Decidim::Component do\n+    name { Decidim::Faker::Localized.sentence(3) }\n+    component_type { \"dummy\" }\n+\n+    step do\n+      create(:participatory_process_step,","path":"decidim-core/spec/factories.rb","position":16,"original_position":16,"commit_id":"ee233a4b08d48d384a88231a9e5cbb23b5c777ab","original_commit_id":"8dff4a9255432d010fc85917b02eba22c404ecdd","user":{"login":"oriolgual","id":5254,"avatar_url":"https://avatars.githubusercontent.com/u/5254?v=3","gravatar_id":"","url":"https://api.github.com/users/oriolgual","html_url":"https://github.com/oriolgual","followers_url":"https://api.github.com/users/oriolgual/followers","following_url":"https://api.github.com/users/oriolgual/following{/other_user}","gists_url":"https://api.github.com/users/oriolgual/gists{/gist_id}","starred_url":"https://api.github.com/users/oriolgual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oriolgual/subscriptions","organizations_url":"https://api.github.com/users/oriolgual/orgs","repos_url":"https://api.github.com/users/oriolgual/repos","events_url":"https://api.github.com/users/oriolgual/events{/privacy}","received_events_url":"https://api.github.com/users/oriolgual/received_events","type":"User","site_admin":false},"body":"This should be `build` instead of `create`. If you need the step to be persisted before creating the component, you can do somthing like:\r\n``` ruby\r\nbefore(:create) do |component|\r\n  component.step.save! unless component.step.persisted?\r\nend\r\n```","created_at":"2016-11-24T10:50:51Z","updated_at":"2016-11-24T10:51:01Z","html_url":"https://github.com/AjuntamentdeBarcelona/decidim/pull/205#discussion_r89474558","pull_request_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/205","_links":{"self":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/comments/89474558"},"html":{"href":"https://github.com/AjuntamentdeBarcelona/decidim/pull/205#discussion_r89474558"},"pull_request":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/205"}}},"pull_request":{"url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/205","id":93121431,"html_url":"https://github.com/AjuntamentdeBarcelona/decidim/pull/205","diff_url":"https://github.com/AjuntamentdeBarcelona/decidim/pull/205.diff","patch_url":"https://github.com/AjuntamentdeBarcelona/decidim/pull/205.patch","issue_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/205","number":205,"state":"open","locked":false,"title":"Component/pages","user":{"login":"josepjaume","id":111746,"avatar_url":"https://avatars.githubusercontent.com/u/111746?v=3","gravatar_id":"","url":"https://api.github.com/users/josepjaume","html_url":"https://github.com/josepjaume","followers_url":"https://api.github.com/users/josepjaume/followers","following_url":"https://api.github.com/users/josepjaume/following{/other_user}","gists_url":"https://api.github.com/users/josepjaume/gists{/gist_id}","starred_url":"https://api.github.com/users/josepjaume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josepjaume/subscriptions","organizations_url":"https://api.github.com/users/josepjaume/orgs","repos_url":"https://api.github.com/users/josepjaume/repos","events_url":"https://api.github.com/users/josepjaume/events{/privacy}","received_events_url":"https://api.github.com/users/josepjaume/received_events","type":"User","site_admin":false},"body":"#### :tophat: What? Why?\r\nThis adds a `pages` component in order to fulfill: #201\r\n\r\n#### :pushpin: Related Issues\r\n- Fixes #201\r\n\r\n#### :clipboard: Subtasks\r\n- [x] Generate a new engine\r\n- [x] Create the `Component` entity in `decidim-core`.\r\n- [x] Create a `ComponentManifest`.\r\n- [x] Hook routes.\r\n- [x] Create admin interface.\r\n- [x] Create public views.\r\n- [ ] API Endpoint\r\n- [ ] Add seeds\r\n\r\n### :camera: Screenshots (optional)\r\n**None ATM**\r\n\r\n#### :ghost: GIF\r\n![](https://media.giphy.com/media/N2JaONOG63aMM/giphy.gif)\r\n","created_at":"2016-11-10T10:13:15Z","updated_at":"2016-11-24T11:01:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02fb4e7b8fb6f2d2b201d4c2cb9f3ff44ce61a95","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/205/commits","review_comments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/205/comments","review_comment_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/205/comments","statuses_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/statuses/ee233a4b08d48d384a88231a9e5cbb23b5c777ab","head":{"label":"AjuntamentdeBarcelona:component/pages","ref":"component/pages","sha":"ee233a4b08d48d384a88231a9e5cbb23b5c777ab","user":{"login":"AjuntamentdeBarcelona","id":16301934,"avatar_url":"https://avatars.githubusercontent.com/u/16301934?v=3","gravatar_id":"","url":"https://api.github.com/users/AjuntamentdeBarcelona","html_url":"https://github.com/AjuntamentdeBarcelona","followers_url":"https://api.github.com/users/AjuntamentdeBarcelona/followers","following_url":"https://api.github.com/users/AjuntamentdeBarcelona/following{/other_user}","gists_url":"https://api.github.com/users/AjuntamentdeBarcelona/gists{/gist_id}","starred_url":"https://api.github.com/users/AjuntamentdeBarcelona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AjuntamentdeBarcelona/subscriptions","organizations_url":"https://api.github.com/users/AjuntamentdeBarcelona/orgs","repos_url":"https://api.github.com/users/AjuntamentdeBarcelona/repos","events_url":"https://api.github.com/users/AjuntamentdeBarcelona/events{/privacy}","received_events_url":"https://api.github.com/users/AjuntamentdeBarcelona/received_events","type":"Organization","site_admin":false},"repo":{"id":65914086,"name":"decidim","full_name":"AjuntamentdeBarcelona/decidim","owner":{"login":"AjuntamentdeBarcelona","id":16301934,"avatar_url":"https://avatars.githubusercontent.com/u/16301934?v=3","gravatar_id":"","url":"https://api.github.com/users/AjuntamentdeBarcelona","html_url":"https://github.com/AjuntamentdeBarcelona","followers_url":"https://api.github.com/users/AjuntamentdeBarcelona/followers","following_url":"https://api.github.com/users/AjuntamentdeBarcelona/following{/other_user}","gists_url":"https://api.github.com/users/AjuntamentdeBarcelona/gists{/gist_id}","starred_url":"https://api.github.com/users/AjuntamentdeBarcelona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AjuntamentdeBarcelona/subscriptions","organizations_url":"https://api.github.com/users/AjuntamentdeBarcelona/orgs","repos_url":"https://api.github.com/users/AjuntamentdeBarcelona/repos","events_url":"https://api.github.com/users/AjuntamentdeBarcelona/events{/privacy}","received_events_url":"https://api.github.com/users/AjuntamentdeBarcelona/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AjuntamentdeBarcelona/decidim","description":"The participatory democracy framework","fork":false,"url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim","forks_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/forks","keys_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/teams","hooks_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/hooks","issue_events_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/events{/number}","events_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/events","assignees_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/assignees{/user}","branches_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/branches{/branch}","tags_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/tags","blobs_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/refs{/sha}","trees_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/statuses/{sha}","languages_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/languages","stargazers_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/stargazers","contributors_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/contributors","subscribers_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/subscribers","subscription_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/subscription","commits_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/commits{/sha}","git_commits_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/commits{/sha}","comments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/comments{/number}","issue_comment_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/comments{/number}","contents_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/contents/{+path}","compare_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/merges","archive_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/downloads","issues_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues{/number}","pulls_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls{/number}","milestones_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/milestones{/number}","notifications_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/labels{/name}","releases_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/releases{/id}","deployments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/deployments","created_at":"2016-08-17T14:27:06Z","updated_at":"2016-11-18T10:02:39Z","pushed_at":"2016-11-24T10:34:34Z","git_url":"git://github.com/AjuntamentdeBarcelona/decidim.git","ssh_url":"git@github.com:AjuntamentdeBarcelona/decidim.git","clone_url":"https://github.com/AjuntamentdeBarcelona/decidim.git","svn_url":"https://github.com/AjuntamentdeBarcelona/decidim","homepage":"","size":4387,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":35,"forks":2,"open_issues":35,"watchers":2,"default_branch":"master"}},"base":{"label":"AjuntamentdeBarcelona:master","ref":"master","sha":"40022fe6efeb6dcd1dbb1d00dfe29d43f40e1ff2","user":{"login":"AjuntamentdeBarcelona","id":16301934,"avatar_url":"https://avatars.githubusercontent.com/u/16301934?v=3","gravatar_id":"","url":"https://api.github.com/users/AjuntamentdeBarcelona","html_url":"https://github.com/AjuntamentdeBarcelona","followers_url":"https://api.github.com/users/AjuntamentdeBarcelona/followers","following_url":"https://api.github.com/users/AjuntamentdeBarcelona/following{/other_user}","gists_url":"https://api.github.com/users/AjuntamentdeBarcelona/gists{/gist_id}","starred_url":"https://api.github.com/users/AjuntamentdeBarcelona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AjuntamentdeBarcelona/subscriptions","organizations_url":"https://api.github.com/users/AjuntamentdeBarcelona/orgs","repos_url":"https://api.github.com/users/AjuntamentdeBarcelona/repos","events_url":"https://api.github.com/users/AjuntamentdeBarcelona/events{/privacy}","received_events_url":"https://api.github.com/users/AjuntamentdeBarcelona/received_events","type":"Organization","site_admin":false},"repo":{"id":65914086,"name":"decidim","full_name":"AjuntamentdeBarcelona/decidim","owner":{"login":"AjuntamentdeBarcelona","id":16301934,"avatar_url":"https://avatars.githubusercontent.com/u/16301934?v=3","gravatar_id":"","url":"https://api.github.com/users/AjuntamentdeBarcelona","html_url":"https://github.com/AjuntamentdeBarcelona","followers_url":"https://api.github.com/users/AjuntamentdeBarcelona/followers","following_url":"https://api.github.com/users/AjuntamentdeBarcelona/following{/other_user}","gists_url":"https://api.github.com/users/AjuntamentdeBarcelona/gists{/gist_id}","starred_url":"https://api.github.com/users/AjuntamentdeBarcelona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AjuntamentdeBarcelona/subscriptions","organizations_url":"https://api.github.com/users/AjuntamentdeBarcelona/orgs","repos_url":"https://api.github.com/users/AjuntamentdeBarcelona/repos","events_url":"https://api.github.com/users/AjuntamentdeBarcelona/events{/privacy}","received_events_url":"https://api.github.com/users/AjuntamentdeBarcelona/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AjuntamentdeBarcelona/decidim","description":"The participatory democracy framework","fork":false,"url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim","forks_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/forks","keys_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/teams","hooks_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/hooks","issue_events_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/events{/number}","events_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/events","assignees_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/assignees{/user}","branches_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/branches{/branch}","tags_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/tags","blobs_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/refs{/sha}","trees_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/statuses/{sha}","languages_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/languages","stargazers_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/stargazers","contributors_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/contributors","subscribers_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/subscribers","subscription_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/subscription","commits_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/commits{/sha}","git_commits_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/commits{/sha}","comments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/comments{/number}","issue_comment_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/comments{/number}","contents_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/contents/{+path}","compare_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/merges","archive_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/downloads","issues_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues{/number}","pulls_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls{/number}","milestones_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/milestones{/number}","notifications_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/labels{/name}","releases_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/releases{/id}","deployments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/deployments","created_at":"2016-08-17T14:27:06Z","updated_at":"2016-11-18T10:02:39Z","pushed_at":"2016-11-24T10:34:34Z","git_url":"git://github.com/AjuntamentdeBarcelona/decidim.git","ssh_url":"git@github.com:AjuntamentdeBarcelona/decidim.git","clone_url":"https://github.com/AjuntamentdeBarcelona/decidim.git","svn_url":"https://github.com/AjuntamentdeBarcelona/decidim","homepage":"","size":4387,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":35,"forks":2,"open_issues":35,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/205"},"html":{"href":"https://github.com/AjuntamentdeBarcelona/decidim/pull/205"},"issue":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/205"},"comments":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/205/comments"},"review_comments":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/205/comments"},"review_comment":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/205/commits"},"statuses":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/statuses/ee233a4b08d48d384a88231a9e5cbb23b5c777ab"}}}}
{"actor":{"display_login":"oriolgual"}}