{"action":"created","issue":{"url":"https://api.github.com/repos/decidim/decidim/issues/2384","repository_url":"https://api.github.com/repos/decidim/decidim","labels_url":"https://api.github.com/repos/decidim/decidim/issues/2384/labels{/name}","comments_url":"https://api.github.com/repos/decidim/decidim/issues/2384/comments","events_url":"https://api.github.com/repos/decidim/decidim/issues/2384/events","html_url":"https://github.com/decidim/decidim/pull/2384","id":282442149,"number":2384,"title":"Use all space types for homepage stats","user":{"login":"mrcasals","id":491891,"avatar_url":"https://avatars3.githubusercontent.com/u/491891?v=4","gravatar_id":"","url":"https://api.github.com/users/mrcasals","html_url":"https://github.com/mrcasals","followers_url":"https://api.github.com/users/mrcasals/followers","following_url":"https://api.github.com/users/mrcasals/following{/other_user}","gists_url":"https://api.github.com/users/mrcasals/gists{/gist_id}","starred_url":"https://api.github.com/users/mrcasals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrcasals/subscriptions","organizations_url":"https://api.github.com/users/mrcasals/orgs","repos_url":"https://api.github.com/users/mrcasals/repos","events_url":"https://api.github.com/users/mrcasals/events{/privacy}","received_events_url":"https://api.github.com/users/mrcasals/received_events","type":"User","site_admin":false},"labels":[{"id":518062863,"url":"https://api.github.com/repos/decidim/decidim/labels/in-review","name":"in-review","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":{"login":"mrcasals","id":491891,"avatar_url":"https://avatars3.githubusercontent.com/u/491891?v=4","gravatar_id":"","url":"https://api.github.com/users/mrcasals","html_url":"https://github.com/mrcasals","followers_url":"https://api.github.com/users/mrcasals/followers","following_url":"https://api.github.com/users/mrcasals/following{/other_user}","gists_url":"https://api.github.com/users/mrcasals/gists{/gist_id}","starred_url":"https://api.github.com/users/mrcasals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrcasals/subscriptions","organizations_url":"https://api.github.com/users/mrcasals/orgs","repos_url":"https://api.github.com/users/mrcasals/repos","events_url":"https://api.github.com/users/mrcasals/events{/privacy}","received_events_url":"https://api.github.com/users/mrcasals/received_events","type":"User","site_admin":false},"assignees":[{"login":"mrcasals","id":491891,"avatar_url":"https://avatars3.githubusercontent.com/u/491891?v=4","gravatar_id":"","url":"https://api.github.com/users/mrcasals","html_url":"https://github.com/mrcasals","followers_url":"https://api.github.com/users/mrcasals/followers","following_url":"https://api.github.com/users/mrcasals/following{/other_user}","gists_url":"https://api.github.com/users/mrcasals/gists{/gist_id}","starred_url":"https://api.github.com/users/mrcasals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrcasals/subscriptions","organizations_url":"https://api.github.com/users/mrcasals/orgs","repos_url":"https://api.github.com/users/mrcasals/repos","events_url":"https://api.github.com/users/mrcasals/events{/privacy}","received_events_url":"https://api.github.com/users/mrcasals/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-12-15T14:22:33Z","updated_at":"2017-12-15T16:43:57Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/decidim/decidim/pulls/2384","html_url":"https://github.com/decidim/decidim/pull/2384","diff_url":"https://github.com/decidim/decidim/pull/2384.diff","patch_url":"https://github.com/decidim/decidim/pull/2384.patch"},"body":"#### :tophat: What? Why?\r\nAfter #2221, which improved the stats count in the homepage, we realized numbers were still wrong. Only processes were being used for these calculations, so assemblies or initiatives were excluded.\r\n\r\nThis PR adds a way for participatory space manifests to define how to retrieve public spaces for a given organization. Then these values are used to calculate all the stats.\r\n\r\nExample: The development app has 2 processes and 2 assemblies by default, each of those has all possible features. This amount to 4 proposal features, 4 meeting features, etc. For meetings, for example, we create only 2 elements per feature. This should amount to 8 meetings.\r\n\r\nBefore this PR:\r\n![](https://i.imgur.com/bzIqq8d.png)\r\n\r\nAfter this PR:\r\n![](https://i.imgur.com/nJDFaC3.png)\r\n\r\nNumber have doubled because we always create the same amount amount of resources per feature.\r\n\r\n#### :pushpin: Related Issues\r\n- Related to #2221\r\n\r\n#### :clipboard: Subtasks\r\nNone"},"comment":{"url":"https://api.github.com/repos/decidim/decidim/issues/comments/352053173","html_url":"https://github.com/decidim/decidim/pull/2384#issuecomment-352053173","issue_url":"https://api.github.com/repos/decidim/decidim/issues/2384","id":352053173,"user":{"login":"xabier","id":537284,"avatar_url":"https://avatars3.githubusercontent.com/u/537284?v=4","gravatar_id":"","url":"https://api.github.com/users/xabier","html_url":"https://github.com/xabier","followers_url":"https://api.github.com/users/xabier/followers","following_url":"https://api.github.com/users/xabier/following{/other_user}","gists_url":"https://api.github.com/users/xabier/gists{/gist_id}","starred_url":"https://api.github.com/users/xabier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabier/subscriptions","organizations_url":"https://api.github.com/users/xabier/orgs","repos_url":"https://api.github.com/users/xabier/repos","events_url":"https://api.github.com/users/xabier/events{/privacy}","received_events_url":"https://api.github.com/users/xabier/received_events","type":"User","site_admin":false},"created_at":"2017-12-15T16:43:57Z","updated_at":"2017-12-15T16:43:57Z","author_association":"OWNER","body":"hi @mrcasals quick question... there is a new entity on the stats (that I also found at the meta.decidim portal) and I can't figure out what it is.... what is a \"response / respostes\" ?"}}
{"actor":{"display_login":"xabier"}}