gosqasorg / asset-provenance-tracking

Node.js implementation, using Azure as a backend, of a system for Global Distributed Tracking, a free-of-charge, free-software system for building up a provenance or history of objects/assets/devices.
https://gosqas.org/
GNU Affero General Public License v3.0
6 stars 3 forks source link

[FEATURE REQUEST] Improve the Statistic page. #113

Open RobertLRead opened 5 months ago

RobertLRead commented 5 months ago

The /statistics page is currently primitive. It shows a list of all records with timestamps, starting from the most recent to the least recent.

This can be improved in a number of ways:

  1. We should produce statistics on a daily and weekly basis (number or provenances added) at the top. This can be done by anybody who is interested in Bootstrap and Vue.
  2. The system currently reads the timestamps of all blobs. That will become impossible as the database gets into the 10s of thousands. We need a way to look back in time, say one week, without reading the entire database. That depends on the particular Azure functionality; we might have to create an index of some kind to do it. This should be done by someone who really wants to learn about Azure.
  3. We could use d3 or plotly to produce a graphic timeline, although this seems like more than we need right now. This would be considered an advance feature, which should be put into a different issue for tracking.
RobertLRead commented 5 months ago

@judithweng I'm assigning this to you as it is of medium complexity, and will require a small amount of algorithmic work. It also requires using the Azure blob system, which will require reading the documentation. I'm assuming you will enjoy learning a little about that, as it will be useful long term.