openwisp / openwisp/openwisp-radius

[change:api] Include reset period in UserRadiusUsageView response

Open
#669 0 comments 0 reactions 1 assignee View on GitHub

@pandafy is already working on this.

Since Sep 18, 2026.

Dominant language
Python
Stars
445
Forks
234
Avg merge
20h 21m
Merged PRs (30d)
19

Description

Related to https://github.com/openwisp/openwisp-wifi-login-pages/issues/863.

The goal of this ticket is to modify OpenWISP RADIUS to return the counter reset period in the API.

Relevant parts of the code:

https://github.com/openwisp/openwisp-radius/blob/1caa57f9d7b3fc7c36ad5c912a4b9338521d57eb/openwisp_radius/api/views.py#L452-L470

https://github.com/openwisp/openwisp-radius/blob/1caa57f9d7b3fc7c36ad5c912a4b9338521d57eb/openwisp_radius/api/serializers.py#L297-L319

https://github.com/openwisp/openwisp-radius/blob/1caa57f9d7b3fc7c36ad5c912a4b9338521d57eb/openwisp_radius/counters/resets.py#L52-L58

I would add a reset property in the API response which returns the date time of the next reset, this means we need to use the "reset" attribute to calculate it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.