{"action":"closed","issue":{"url":"https://api.github.com/repos/GeographicaGS/AquaGIS/issues/173","repository_url":"https://api.github.com/repos/GeographicaGS/AquaGIS","labels_url":"https://api.github.com/repos/GeographicaGS/AquaGIS/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/GeographicaGS/AquaGIS/issues/173/comments","events_url":"https://api.github.com/repos/GeographicaGS/AquaGIS/issues/173/events","html_url":"https://github.com/GeographicaGS/AquaGIS/issues/173","id":289916877,"number":173,"title":"Crear widgets de tipos de uso de agua y consumo total de agua ","user":{"login":"ignaciodomingo","id":13120924,"avatar_url":"https://avatars2.githubusercontent.com/u/13120924?v=4","gravatar_id":"","url":"https://api.github.com/users/ignaciodomingo","html_url":"https://github.com/ignaciodomingo","followers_url":"https://api.github.com/users/ignaciodomingo/followers","following_url":"https://api.github.com/users/ignaciodomingo/following{/other_user}","gists_url":"https://api.github.com/users/ignaciodomingo/gists{/gist_id}","starred_url":"https://api.github.com/users/ignaciodomingo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignaciodomingo/subscriptions","organizations_url":"https://api.github.com/users/ignaciodomingo/orgs","repos_url":"https://api.github.com/users/ignaciodomingo/repos","events_url":"https://api.github.com/users/ignaciodomingo/events{/privacy}","received_events_url":"https://api.github.com/users/ignaciodomingo/received_events","type":"User","site_admin":false},"labels":[{"id":766599237,"url":"https://api.github.com/repos/GeographicaGS/AquaGIS/labels/www","name":"www","color":"3dccc9","default":false}],"state":"closed","locked":false,"assignee":{"login":"borjaeguia","id":3653688,"avatar_url":"https://avatars3.githubusercontent.com/u/3653688?v=4","gravatar_id":"","url":"https://api.github.com/users/borjaeguia","html_url":"https://github.com/borjaeguia","followers_url":"https://api.github.com/users/borjaeguia/followers","following_url":"https://api.github.com/users/borjaeguia/following{/other_user}","gists_url":"https://api.github.com/users/borjaeguia/gists{/gist_id}","starred_url":"https://api.github.com/users/borjaeguia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borjaeguia/subscriptions","organizations_url":"https://api.github.com/users/borjaeguia/orgs","repos_url":"https://api.github.com/users/borjaeguia/repos","events_url":"https://api.github.com/users/borjaeguia/events{/privacy}","received_events_url":"https://api.github.com/users/borjaeguia/received_events","type":"User","site_admin":false},"assignees":[{"login":"borjaeguia","id":3653688,"avatar_url":"https://avatars3.githubusercontent.com/u/3653688?v=4","gravatar_id":"","url":"https://api.github.com/users/borjaeguia","html_url":"https://github.com/borjaeguia","followers_url":"https://api.github.com/users/borjaeguia/followers","following_url":"https://api.github.com/users/borjaeguia/following{/other_user}","gists_url":"https://api.github.com/users/borjaeguia/gists{/gist_id}","starred_url":"https://api.github.com/users/borjaeguia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borjaeguia/subscriptions","organizations_url":"https://api.github.com/users/borjaeguia/orgs","repos_url":"https://api.github.com/users/borjaeguia/repos","events_url":"https://api.github.com/users/borjaeguia/events{/privacy}","received_events_url":"https://api.github.com/users/borjaeguia/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-01-19T09:46:54Z","updated_at":"2018-04-24T11:55:21Z","closed_at":"2018-04-24T11:55:21Z","author_association":"OWNER","body":"![image.png](https://images.zenhubusercontent.com/5a2e80e38a75884b908aad3c/7c1d811d-88ba-4c6b-9f7a-465dc74f4a4a)\r\n- [x] Crear widget de tipos de uso de agua, debe mostrar la información que ha filtrado el mapa. La distribución del tipo de construcción se muestra de la siguiente forma:\r\n![image.png](https://images.zenhubusercontent.com/5a2e80e38a75884b908aad3c/253725b8-def8-4dc0-a59e-f5968b8120b9)\r\n\r\n- [x] Crear widget de consumo de agua\r\n![image.png](https://images.zenhubusercontent.com/5a2e80e38a75884b908aad3c/f8e4555b-a369-4edb-a1f2-b1b2c346f2b3)\r\n- Para obtener la información hay que llamar al endpoint de \"Cálculo de escenarios futuros\" en http://iatdev.isoin.es/aquasig-web/docs, con el tipo 1 y los datos los que se han usado en el widget de tipos de uso de agua\r\n\r\n- [x] Crear escenario\r\n![image](https://user-images.githubusercontent.com/13120924/35153078-4c5d3b1e-fd25-11e7-8e07-c36850630bfa.png)\r\n- Al hacer click en \"Crear escenario\", crean los widgets de la imagen. Son muy similares a los descritos antes (por favor, tened esto en cuenta para reutilizar lo máximo posible), pero con los siguientes diferencias:\r\n- Para el widget de \"Tipos de uso de agua\", ahora las cantidades de cada tipo son editables.\r\n- Al hacer click en el botón de \"Aplicar\", se lanza la petición al endpoint de \"Cálculo de escenarios futuros\" con los datos rellenos.\r\n- Con la respuesta, se pinta la gráfica del widget \"Crear widget de consumo de agua\", pero manteniendo la gráfica original.\r\n- Los widgets duplicados se borran haciendo click en\r\n![image](https://user-images.githubusercontent.com/13120924/35153474-f150e494-fd26-11e7-9ba9-29459afe954c.png)\r\n- Es posible mantener más de una copia de los widgets, y no se deben afectar entre ellos. Las copias siempre se hacen del original.\r\n\r\n\r\nReferencia: https://github.com/GeographicaGS/AquaGIS/blob/master/aq_simul/api/docs.md#post-scopeaq_simulsimulationcount"}}
{"actor":{"display_login":"ignaciodomingo"}}