Conversation
|
@mkolade is attempting to deploy a commit to the ritik4ever's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@mkolade 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! 🚀 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds a real-time push channel for bounty status updates using Server-Sent Events (SSE). It exposes a
GET /api/bounties/streamendpoint, wires existing bounty-mutation code paths to publish status-change events through a lightweight in-memory event bus, supports filtering by bounty ID or maintainer address via query params, and includes reconnection/backfill support so clients don't miss events during a brief disconnect.Related Issue
Closes #
Changes
📡 SSE Bounty Status Stream
[ADD]
backend/src/services/eventBus.tspublish,subscribe, andunsubscribemethods.[MODIFY]
backend/src/routes/bounties.tsGET /api/bounties/streamSSE endpoint.bountyIdandmaintainerquery params for client-side filtering.[MODIFY]
backend/src/services/bountyStore.tsbounty.status.changedevents from existing create/update/transition mutations.bountyId,maintainer,previousStatus,currentStatus, andtimestamp.[MODIFY]
backend/src/app.ts[MODIFY]
backend/src/config.ts[MODIFY]
backend/src/validation/schemas.tsbountyId,maintainer).[MODIFY]
backend/src/docs/openapi.tsVerification Results
Closes #790