sahana / eden

Sahana Eden is an Open Source Humanitarian Platform which can be used to provide solutions for Disaster Management, Development, and Environmental Management sectors.. Please sign CLA when submitting pull requests: http://bit.ly/SSF-eCLA
http://eden.sahanafoundation.org
Other
393 stars 567 forks source link

Expose RESTful reporting methods for data collections (dc) module #1499

Open MehdioKhan opened 5 years ago

MehdioKhan commented 5 years ago

It is better to add some reporting features and analysis to data collection like survey module. Survey has reporting and charts but form builder does not work properly where data collection has good form builder but no reporting features.

nursix commented 5 years ago

The whole idea with the data collection module is that you can use standard RESTful reporting methods, such as /report, /timeplot and /map, on the dynamic tables - instead of needing module-specific report functions.

Of course, some work would probably be required to expose those methods in the UI (in particular menus), so I'll change the headline here.

nursix commented 5 years ago

One way to expose these methods would be via the dynamic table's own controller, e.g. /eden/default/table/[dynamic_table_name]/report - but a better way would be to integrate that into DC itself, so that proper labels can be applied and the user doesn't need to switch to another module.