unkeyed / unkey

Open source API management platform
https://go.unkey.com
Other
4k stars 468 forks source link

Missing ratelimits usage spending in `ProUsage` #1268

Closed ubinatus closed 6 months ago

ubinatus commented 6 months ago

Preliminary Checks

Reproduction / Replay Link (Optional)

No response

Issue Summary

On the billing settings page, there seems to be missing the rate limits usage calculation on the ProUsage component.

Steps to Reproduce

  1. Consume the rate limit service.
  2. Head to the settings section and the usage of ratelimit is not included in the current usage.

Expected behavior

Include the Rate Limit service usage in the current usage estimation. The ratelimit usage should be retrieved using the calculateTieredPrices and added up into the currentPrice accumulator.

Other information

No response

Screenshots

No response

Version info

- OS: macOS 14.2.1
- Node: v20.11.1
- pnpm: v8.15.5
linear[bot] commented 6 months ago

ENG-746 Missing ratelimits usage spending in `ProUsage`