akvo / akvo-lumen

Make sense of your data
https://akvo.org/akvo-lumen
GNU Affero General Public License v3.0
63 stars 18 forks source link

Show size of data group #2805

Closed janagombitova closed 4 years ago

janagombitova commented 4 years ago

Context

With simplifying the dataset UI we removed a top row that showed the count of total rows and columns per dataset. Since this change, we have received feedback that having a quick overview of the size of the dataset is missing in Lumen and if we can bring the counter back.

Why:

For example, Molo mentions in a support issue (https://akvoo.reamaze.com/admin/conversations/akvolumen-support-request-number-375805-from-andrew-at-akvo-dot-org) that:

When you open the dataset tab in Lumen, You can't tell the number of rows and the number of columns present in the dataset. Before any transformation, analysis or visualisation one needs to understand the data he/she is working with. One of the aspects of a dataset is its size.

Carmen in our research call on the new dataset UI and RQGs also mentioned:

Before starting exploring data it is good to know the size of the dataset. The size can quickly tell you what visualisation is best to use, for example. Even more important is to know that some groups have a different size (row count) than others as you will analyse them differently.

Ilyasse mentioned another reason why the count was useful:

After updating a dataset we checked the row count to see that the update succeeded and new data was imported well. Even though you get the confirmation, seeing the number grow validated that indeed it went well.

Opportunity

The idea is to start simple. Can we for example add the count of rows and columns to each data group?

Maybe in the future, before looking at the grid the user could see an overview dashboard with visuals and summaries of the dataset, but before we take that leap we can add something simple to ease the pain.

@Kiarii what are your thoughts?

Kiarii commented 4 years ago

I think the gist that the col & row count was an idea of how many submissions had been made to a form (the col count only informed how many questions were in the form) - so I think a natural starting point may be to provide the number of submissions to the form; this should (I assume) inform the Salim / Petra / et al whether the amount of submissions made suffice for the analysis they are looking to do.. Besides that we also had the idea of providing a col/question summary; starting with a simple textual summary to enable the analyst to understand the data in a col and therefore to be able to determine a course of action..

janagombitova commented 4 years ago

@Kiarii can you detail how this could work/show/behave?

... I think a natural starting point may be to provide the number of submissions to the form..

Kiarii commented 4 years ago

In considering how we might show form submissions, i started tinkering with the dataset header as illustrated below; prototype

Screenshot 2020-09-16 at 10 54 44

This direction of thought would imply some changes as unto how being offline - which had been handled in #2706. The offline mode in dark-demo and akvotest are broken however:

If editing is disabled while offline, then we do not to provide a long offline notification "Saving failed. Last attempt x seconds ago. Retry." Essentially we just need to say there is no connection or indicate that Lumen is trying to reconnect - and since this happens automatically, we need not provide a 'Retry' action

Screenshot 2020-09-16 at 11 13 26
janagombitova commented 4 years ago

@Kiarii Thank you for the changes! Great ideas. Just to be clear, with this issue we will only:

Changing the offline/online indication will be handled in another issue.

Kiarii commented 4 years ago
janagombitova commented 4 years ago

Perfect. Let's give it a go. Please note when implementing that we showed the count of rows in the UI before: https://user-images.githubusercontent.com/12456965/83027432-6913c880-a030-11ea-8c8a-b44797d3bae1.png

janagombitova commented 4 years ago

Works well. Great job!

Here are a few examples

Screen Shot 2020-10-15 at 19 52 06 Screen Shot 2020-10-15 at 19 51 53 Screen Shot 2020-10-15 at 19 52 28
janagombitova commented 4 years ago

With @kardan we spoke this morning on how to improve this implementation as we use the word submissions also for datasets coming from csv files and links and the count is not correct. We agreed that:

janagombitova commented 4 years ago

Closing this issue as it will be handled in #2996