mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-07 21:30:36 -05:00
[PR #2552] [MERGED] feat: Adding an organization sites bandwidth reset API #4970
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/2552
Author: @huzky-v
Created: 2/26/2026
Status: ✅ Merged
Merged: 3/18/2026
Merged by: @oschwartz10612
Base:
main← Head:feat-add-bandwidth-reset-api📝 Commits (1)
5c4de03add reset bandwidth api for site📊 Changes
6 files changed (+94 additions, -0 deletions)
View changed files
📝
messages/en-US.json(+1 -0)📝
server/auth/actions.ts(+1 -0)📝
server/routers/integration.ts(+7 -0)📝
server/routers/org/index.ts(+1 -0)➕
server/routers/org/resetOrgBandwidth.ts(+83 -0)📝
src/components/PermissionsSelectBox.tsx(+1 -0)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
This feature change adds an API to manually reset bandwidth for all sites in the selected organization so that the users can reset the bandwidth counter when needed.
It is useful for the user hosted on VPS to see the monthly bandwidth counter instead of seeing accumulated counter by resetting the counter monthly.
The API call is
POST /org/{orgId}/reset-bandwidth, OpenAPI and permission is added to the system.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.