Skip to content

Update stats API for new UI #1878

@wojcik91

Description

@wojcik91

Refactor stats API for the new overview page with a user table.
This mainly includes:

  • pagination for user stats queries
  • separate endpoint for per-user device stats to be loaded once a row is expanded

Important: this includes integration tests for new API
Also look into changing response content to remove data manipulation from the frontend.

Result: VPN overview page on the dev instance loads user stats page by page as the table is scrolled. Device stats are fetched once a row is expanded.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Ready to release

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions