Skip to content

Report internal statistics #473

Description

@MichaelRoeder

User Story

As user or maintainer of the platform, I would like to get some statistics about the data available in the database:

  1. Number of experiments
  2. Number of experiment tasks

Solution

Data Retrieval

The data can be easily retrieved by adding two new methods to the ExperimentDAOImpl class. Each method can run a simple SELECT COUNT(*) FROM tablename SQL query for the two tables Experiments and ExperimentTasks, expectively. (SQL Schema)

Access

The gerbil web service should provide a new method statistics returning the two counts:

{
   "experiments": 13,
   "experiment_tasks": 42,
}

Metadata

Metadata

Assignees

Labels

SHKThe task has a difficulty which can be handled by a student developerpriority:mediumtype:enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions