[Audit] Cancelled-via-API stream becomes invisible to status filters
Filed from the second-wave repository audit (issue 17/100). See the audit summary for full category context.
- Location:
backend/src/repositories/stream.repository.ts:6-16(updateStatus, used bybackend/src/controllers/stream/cancel.ts:99) - Problem: Cancelling via the API sets
isActive: falsebut never writes aCANCELLEDStreamEvent, unlike the indexer'shandleStreamCancelledwhich does both atomically. Until the real on-chain event is later indexed, the stream matches neither theactivefilter (isActiveis false) nor thecancelledfilter (requires aCANCELLEDevent) inlistStreams/findStreams. - Evidence:
updateStatusonly touchesStream.isActive, noStreamEventwrite. - Suggested implementation: Have the cancel handler write a provisional
CANCELLEDStreamEventin the same transaction as the status update (reconciled/deduped later by the indexer). - Acceptance criteria: A stream cancelled through the API immediately appears under the "cancelled" filter, verified by an integration test.
- Difficulty: S
- Expected impact: Closes a window where recently cancelled streams disappear from all status views.
Congratulations, @CHKM001! đ Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.
đ§âđģ @CHKM001: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
đ¤ Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
đ Happy Wave đ
Hi there,
Happy to work on this in flowfi. I have a clean approach to address Cancelled-via-API stream becomes invisible to status filters and will verify the implementation against existing test suites. Would love to take this on â please assign!
Cheers,
@Richard-tobi has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hi maintainer, i can work on this. Kindly assign
âšī¸ Repo Maintainers: To accept this application, review their application or assign @Richard-tobi to this issue.
@p4uld4vid016-code has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hello maintainer, i would like to work on this issue
âšī¸ Repo Maintainers: To accept this application, review their application or assign @p4uld4vid016-code to this issue.
Congratulations, @p4uld4vid016-code! đ Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.
đ§âđģ @p4uld4vid016-code: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
đ¤ Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
đ Happy Wave đ
This issue has been completed by @p4uld4vid016-code as part of the Stellar Wave Program's 10th Wave đĨŗ
đ @p4uld4vid016-code: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
đ§âđģ Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.