{"action":"created","issue":{"url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidimbcn/issues/39","labels_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidimbcn/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidimbcn/issues/39/comments","events_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidimbcn/issues/39/events","html_url":"https://github.com/AjuntamentdeBarcelona/decidimbcn/pull/39","id":126131055,"number":39,"title":"Moderators should be able to create/update meetings","user":{"login":"beagleknight","id":106021,"avatar_url":"https://avatars.githubusercontent.com/u/106021?v=3","gravatar_id":"","url":"https://api.github.com/users/beagleknight","html_url":"https://github.com/beagleknight","followers_url":"https://api.github.com/users/beagleknight/followers","following_url":"https://api.github.com/users/beagleknight/following{/other_user}","gists_url":"https://api.github.com/users/beagleknight/gists{/gist_id}","starred_url":"https://api.github.com/users/beagleknight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beagleknight/subscriptions","organizations_url":"https://api.github.com/users/beagleknight/orgs","repos_url":"https://api.github.com/users/beagleknight/repos","events_url":"https://api.github.com/users/beagleknight/events{/privacy}","received_events_url":"https://api.github.com/users/beagleknight/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-12T09:09:57Z","updated_at":"2016-01-14T12:04:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidimbcn/pulls/39","html_url":"https://github.com/AjuntamentdeBarcelona/decidimbcn/pull/39","diff_url":"https://github.com/AjuntamentdeBarcelona/decidimbcn/pull/39.diff","patch_url":"https://github.com/AjuntamentdeBarcelona/decidimbcn/pull/39.patch"},"body":"# What and Why\r\n\r\nA moderator should be able to create a `meeting` to discuss different `proposals`. A meeting should be held at a specific address and time.\r\nI used standard HTML5 inputs for date and time. For the `address` field I created a simple component called `GoogleMapsAutocompleteInput`. This component uses the `autocomplete` feature from Google Maps Places API and listen change events in a specific input field. Then it displays different suggestions and the user can choose one of them.\r\n\r\nAs a bonus feature I included a rake task called `places:seeds` to create a yml file with random Barcelona places. I use those places to generate a collection of meetings with random data.\r\nAlso I included some basic code to edit/update a meeting but this part is not finished.\r\n\r\n# QA\r\n\r\nSince we are using Google Maps Javascript API an environment variable called `GOOGLE_MAPS_API_KEY` is needed in order to work. The `meetings` administration is currently under the `moderation` namespace.\r\n\r\n# Gif\r\n\r\n![](https://media.giphy.com/media/caeFs9k2rswyQ/giphy.gif)"},"comment":{"url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidimbcn/issues/comments/171627253","html_url":"https://github.com/AjuntamentdeBarcelona/decidimbcn/pull/39#issuecomment-171627253","issue_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidimbcn/issues/39","id":171627253,"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},"created_at":"2016-01-14T12:04:12Z","updated_at":"2016-01-14T12:04:12Z","body":"HAH CONFLICTS :trollface: "}}