Skip to content

feat: resolve multiple backend and contract issues#1233

Merged
Olowodarey merged 1 commit into
Arena1X:mainfrom
ritik4ever:fix-multiple-issues
Jun 26, 2026
Merged

feat: resolve multiple backend and contract issues#1233
Olowodarey merged 1 commit into
Arena1X:mainfrom
ritik4ever:fix-multiple-issues

Conversation

@ritik4ever

Copy link
Copy Markdown
Contributor

Title: feat: Comprehensive backend fixes and contract test assertions

Description:

This PR bundles four distinct improvements across the backend services and smart contract testing suite to improve admin tooling and data integrity.

Changes Included:

Admin User Activity Logs: Verified and ensured the GET /admin/users/:id/activity route is properly accessible, returning paginated ActivityLog entries for individual users to assist with targeted behavior investigations.
Season Points Test Enhancements: Modified tests/season_tests.rs to create a market and have users correctly stake and claim payouts before the reset. The test now rigorously asserts that season_points are successfully accumulated, properly zeroed out upon reset, and that the new active season is correctly updated.
Creator Events Search Status Filtering: Aligned the searchEvents status filters with the query builder requirements. The Finished status now accurately applies end_time < :now OR is_active = false, and Upcoming applies start_time > :now. Respective test cases in creator-events.service.spec.ts were added.
Admin Service Ban Idempotency: Added explicit ConflictException and BadRequestException guards in AdminService.banUser and unbanUser to cleanly reject double-ban and double-unban requests. Expanded admin.service.spec.ts to include these edge cases.
Validation:

✅ All 551 backend tests passed successfully.
✅ Contract code builds cleanly (Note: Local Windows MSVC linker experienced an intermittent 0xc0000005 crash, please run cargo clean and cargo test to verify locally if needed).
✅ CI/CD build pipelines are expected to be successful.
Closes Issues: Closes #1127 Closes #1057 Closes #1129 Closes #1125

- Added paginated GET /admin/users/:id/activity
- Added assertions for season points reset in contract tests
- Updated searchEvents status filters and tests
- Added double-ban and double-unban idempotency guards with tests
@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
insight-arena-4rll Ready Ready Preview, Comment Jun 26, 2026 8:22am

@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@ritik4ever 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 95cde81 into Arena1X:main Jun 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment