Skip to content

fix: GET /api/matches sends a self-notification on every filter change - #376

Open
vedant7007 wants to merge 1 commit into
TravellersMeet:mainfrom
vedant7007:fix/matches-no-self-notification
Open

fix: GET /api/matches sends a self-notification on every filter change#376
vedant7007 wants to merge 1 commit into
TravellersMeet:mainfrom
vedant7007:fix/matches-no-self-notification

Conversation

@vedant7007

Copy link
Copy Markdown
Contributor

Closes #369

Problem

GET /api/matches created a MATCH_FOUND notification whenever scoredMatches.length > 0. Because each distinct filter combination is a separate cache key (a fresh cache miss), a user adjusting filters received a "New traveller match found" notification for every one of their own searches.

Fix

Removed the createNotification call from the search path (and its now-unused import). Match notifications should be driven by ticket creation/verification, not by the searchers own GET.

Testing

  • npx tsc --noEmit clean on the changed route.

Contributing as part of Elite Coders Summer of Code (ECSoC 2026).

A read endpoint was creating a MATCH_FOUND notification on every cache
miss, i.e. every distinct filter combination, spamming the searcher with
notifications for their own searches. Remove the notification from the
search path (and its now-unused import); new-match notifications belong on
ticket creation/verification, not on the searcher's GET.

Fixes TravellersMeet#369
@github-actions

Copy link
Copy Markdown

Thanks for opening this PR, @vedant7007! 👋

Our maintainers will review it shortly. Estimate Time is 5-8 hrs .Meanwhile please:

  • Ensure CI is green (lint, typecheck, build).
  • Hit the star ⭐ button to show your support!
  • Confirm the PR template checklist is complete.
  • Add screenshots for UI changes.

If anything changes, feel free to push updates—this thread will stay open.

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.

[Bug] GET /api/matches sends a self-notification on every filter change (notification spam)

1 participant