Skip to content

fix: resolve backend issues 1107, 1109, and 1117#1232

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

fix: resolve backend issues 1107, 1109, and 1117#1232
Olowodarey merged 1 commit into
Arena1X:mainfrom
anoncon:fix-multiple-issues

Conversation

@anoncon

@anoncon anoncon commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Description

This PR resolves multiple backend issues related to disputes and global search.

Changes

  1. Fix: Duplicate Dispute Creation (Closes [Backend] — Test: DisputesService.create allows second dispute after first is resolved #1107)

    • Updated DisputesService.create to verify if a dispute already exists for a market regardless of its status. This enforces the policy of a single dispute per market.
    • Added corresponding test coverage in disputes.service.spec.ts.
  2. Feature: Add GET /disputes/my (Closes [Backend] — Feature: Add GET /disputes/my — disputes filed by the current user #1109)

    • Added a new paginated controller route to list disputes explicitly filed by the currently authenticated user.
    • Added findMyDisputes to DisputesService and its respective test suite.
  3. Fix: Global Search Inaccurate Totals (Closes [Backend] — Bug/Test: SearchService.search returns inaccurate total #1117)

    • Refactored searchMarkets, searchUsers, and searchCompetitions in SearchService to return [results, count] using TypeORM's getManyAndCount().
    • Updated GlobalSearchResponseDto to expose total_markets, total_users, and total_competitions.
    • The returned total now reflects the true database count rather than the post-slice returned item size.

(Note: Issue #1108 regarding UsersService.findPublicPredictionsByAddress in-memory filtering was verified to already be handled via SQL andWhere filters.)

Testing:
All tests have run and passed successfully.

Closes #1108

@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 4:21am

@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

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