GeoSamples / sesar-rest-api

SESAR REST API Spring Boot Project
Apache License 2.0
2 stars 1 forks source link

REST API for SESAR Statistics #1

Open lulin-song opened 5 years ago

lulin-song commented 5 years ago

On 6/4/19 7:30 AM, Kerstin Lehnert wrote:

  • How have sample types changes over the last 3-4 years (= number of samples registered by quarter grouped by object type)

  • How many samples are registered by institution over the past 3 years?

  • How many active users do we have by year (last 8 years if possible)?

  • Number of batches processed by month over past 8 years

lulin-song commented 4 years ago

How many samples are registered by institution over the past 3 years?

lulin-song commented 4 years ago

How many active users do we have by year (last 8 years if possible)?

Implemented the new user count by year/month REST APIs

Implemented the active user count by year/month REST APIs

lulin-song commented 4 years ago

number of samples registered by quarter grouped by object type

Implemented the following rest api. Get the sample count by sample type

lulin-song commented 4 years ago
  • Number of batches processed by month over past 8 years

There is not enough uploaded batch information in the database. I will leave this for future implementation. See newly created #17

ramdeensarah commented 4 years ago
  1. How many samples are registered by institution over the past 3 years?

image

  1. How many active/new users do we have by year (last 8 years if possible)?
    • Implemented the new user count by year REST APIs Question about results This shows 90 new users for 2019, but the results for active users in 2019 was only 83 (see below).

Results "2020-06": "1", "2020-05": "1", "2020-02": "1", "2020-01": "2",

  1. Implemented the following rest api. Get the sample count by sample type

    • Execute with no end date and include unpublished metadata Test successful

    • Execute with no end date and exclude unpublished metadata Test successful, some sample types show decrease in count.

    • Execute with end date and include unpublished metadata Test successful. If put end date as a future date, test still successful.

    • Execute with end date and exclude unpublished metadata Test successful, some sample types show decrease in count. If put end date as a future date, test still successful.

lulin-song commented 4 years ago

I updated the REST API and let the API connect to SESAR production database.

If provide a start date and no end date, search fails.

The end date is supposed to be required. I fixed the bug.

Implemented the new user count by year REST APIs Question about results This shows 90 new users for 2019, but the results for active users in 2019 was only 83 (see below).

Implemented the active user count by month REST APIs Question about results -- This looks at the users on test-sesar. This seems low and there are months with gaps (was there no work on test-sesar during March and April?). Has Lulin logged into test-sesar this month? Should the count be at least 2?

The test database has not been updated for a long time. I don't think I registered any sample in test database in March, April, 2020. I have switched the REST API to connect to production database, so the number reflects the real number now.

ramdeensarah commented 4 years ago

Comments on 'Implemented the new user count by year REST APIs' Recommend we clarify the phrasing of 'new user' to be (perhaps) 'new registered accounts' or a description for the 'new user' to indicate what you said - that they are newly registered accounts and may include accounts which have not registered any samples. And then we should probably define 'Active user' as well. Suggested text - 'Active user' reflects 'a count of unique user accounts which have registered samples during the range selected'.

Retested 'Implemented the active user count by month REST APIs' Test successful and look accurate (and look to be useful long term, clearly seeing trends etc that might be used in analysis/reports or perhaps metrics on the website - this particular set and others listed).