Skip to content

feat: implement rate limiting, detailed health check, bookmarks, and …#499

Merged
Olowodarey merged 1 commit intoArena1X:mainfrom
xeladev4:feature/rate-limit-health-bookmarks-leaderboard-tests
Mar 30, 2026
Merged

feat: implement rate limiting, detailed health check, bookmarks, and …#499
Olowodarey merged 1 commit intoArena1X:mainfrom
xeladev4:feature/rate-limit-health-bookmarks-leaderboard-tests

Conversation

@xeladev4
Copy link
Copy Markdown

Description

This PR implements four major feature additions across the backend architecture addressing Rate Limiting, Health Monitoring, User Market Bookmarks, and Leaderboard Smart Contract robustness natively targeting multiple open issues.

Resolves

Closes #434
Closes #436
Closes #442
Closes #497

Changes Made

  • Rate Limit Status: Implemented RateLimitService parsing current @nestjs/throttler context to generate accurate user statuses via GET /auth/rate-limit. Exposes total quota limits, remaining requests, and reset timers.
  • Detailed Health Check: Added the GET /health/detailed endpoint executing comprehensive connectivity pings to the internal TypeORM Data Source, caches, and live Soroban RPC endpoints yielding total uptime_seconds.
  • Market Bookmarking: Created the UserBookmark entity tying Users to Favorite Markets alongside generation of the explicit CreateUserBookmarksTable Migration maintaining delete: cascade integrity.
  • Bookmark Controllers: Exposed POST /markets/:id/bookmark allowing bookmark creation, DELETE /markets/:id/bookmark for removal, and GET /users/me/bookmarks providing paginated access to starred records.
  • Leaderboard Testing: Added the integration test test_update_leaderboard_empty_entries to the core Rust definitions (contract/tests/leaderboard_tests.rs) preventing out-of-bounds calculations upon leaderboard state resets.

Testing & Quality Assurance

  • Backend local suite passes cleanly (All 205 specs via pnpm run test).
  • Reconfigured Mock Environments inside existing tests resolving dependency breakages for UserBookMark repositories and RateLimitStatus implementations.
  • ESLint validation processes complete successfully across backend/src.
  • Contract cargo test execution passed confirming leaderboard logic enhancements.

Dependencies Updated

  • None

Additional Guidance

  • Since this PR merges UserBookmark structural generation schema, please run your migrations locally on your next boot via pnpm run typeorm migration:run.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
insight-arena-4rll Ready Ready Preview, Comment Mar 30, 2026 2:58am

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

@xeladev4 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

@Olowodarey Olowodarey merged commit 28153ac into Arena1X:main Mar 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants