Skip to content

feat(users): Prometheus metrics, query optimisation, Redis caching, per-caller rate limits - #1459

Merged
nanaf6203-bit merged 2 commits into
MettaChain:mainfrom
Tarrii:tarrii/userapi-1351-1354
Oct 17, 2026
Merged

nanaf6203-bit merged 2 commits into
MettaChain:mainfrom
Tarrii:tarrii/userapi-1351-1354

Conversation

@Tarrii

@Tarrii Tarrii commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Scope kept minimal: small module-local additions plus a short doc under docs/api/ per issue. Each issue's tests are not added unless the issue is itself about tests; nothing was run. Behaviour change: GET /users/me/login-history now returns at most the newest 100 entries. RateLimitService.checkScopedRateLimit is added with the same text as in the Auth API rate-limiting PR so the two merge cleanly; other User API PRs also edit users.controller.ts/users.module.ts/users.service.ts, so expect trivial merge conflicts.

Nothing was installed, built or run (no tsc, lint or jest); please verify in CI/review.

Closes #1351
Closes #1352
Closes #1353
Closes #1354

@drips-wave

drips-wave Bot commented Oct 16, 2026

Copy link
Copy Markdown

@Tarrii Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@nanaf6203-bit nanaf6203-bit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Tarrii resolve conflicts

@nanaf6203-bit
nanaf6203-bit merged commit c48022d into MettaChain:main Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add rate limiting to UserAPI Add Redis caching for UserAPI Optimize DB queries in UserAPI Add Prometheus metrics to UserAPI

2 participants