general stats endpoint #56

Closed
opened 2020-12-23 17:41:03 +00:00 by philipp · 7 comments
Owner

a general stats endpoint should be available

  • total # of runners
  • total # of users
  • total # of scans
  • total detail
  • (🔒auth) total donations
  • (🔒auth) top donators
a general stats endpoint should be available - total # of runners - total # of users - total # of scans - total detail - (🔒auth) total donations - (🔒auth) top donators
philipp added the
enhancement
label 2020-12-23 17:41:03 +00:00
niggl self-assigned this 2020-12-29 14:11:08 +00:00
niggl added the
status:doing
label 2020-12-29 14:11:14 +00:00
niggl referenced this issue from a commit 2020-12-29 15:08:54 +00:00
Owner

I built a basic stats endpoint with:

  • Total Runners
  • Total Teams
  • Total Orgs
  • Total Users
  • Total Scans (Only valid scans)
  • Total Distance ran
  • Total Donation Amount

Of these numbers we still have to test the distance and donation related stats.

I built a basic stats endpoint with: * Total Runners * Total Teams * Total Orgs * Total Users * Total Scans (Only valid scans) * Total Distance ran * Total Donation Amount Of these numbers we still have to test the distance and donation related stats.
Owner

To provide auth for the stats we're going to implement a new entity that is used to authorize a stats client with a token (not JWT).

To provide auth for the stats we're going to implement a new entity that is used to authorize a stats client with a token (not JWT).
niggl referenced this issue from a commit 2020-12-29 19:05:37 +00:00
niggl referenced this issue from a commit 2020-12-29 19:07:44 +00:00
Owner

I implemented a new auth middleware+entities for the stats api.

I implemented a new auth middleware+entities for the stats api.
niggl referenced this issue from a commit 2020-12-29 20:48:23 +00:00
Owner

Todo: Implement stats responses for a cleaner runner/team/org stats output.

Todo: Implement stats responses for a cleaner runner/team/org stats output.
Owner

TODO: Implement auth via jwt for the status endpoints.

TODO: Implement auth via jwt for the status endpoints.
Owner

TODO: Implement auth via jwt for the status endpoints.

Ist implementiert, aktuell braucht ein user die Berechtigungen für:
RUNNER:GET
TEAM:GET
ORGANISATION:GET

Um auf die Stats Endpoints zuzugriefen.

> TODO: Implement auth via jwt for the status endpoints. Ist implementiert, aktuell braucht ein user die Berechtigungen für: RUNNER:GET TEAM:GET ORGANISATION:GET Um auf die Stats Endpoints zuzugriefen.
niggl referenced this issue from a commit 2020-12-30 13:31:09 +00:00
philipp added a new dependency 2020-12-30 14:52:24 +00:00
niggl referenced this issue from a commit 2020-12-30 15:31:21 +00:00
niggl referenced this issue from a commit 2020-12-30 16:27:27 +00:00
Owner

Todo: Implement stats responses for a cleaner runner/team/org stats output.

//Done

> Todo: Implement stats responses for a cleaner runner/team/org stats output. //Done
niggl referenced this issue from a commit 2020-12-30 16:35:23 +00:00
niggl closed this issue 2020-12-30 16:49:21 +00:00
niggl referenced this issue from a commit 2021-01-02 17:19:41 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Blocks
Reference: lfk/backend#56
No description provided.