Skip to content

Conversation

gpunto
Copy link
Contributor

@gpunto gpunto commented Sep 29, 2025

Goal

Same as #87, but for FeedList, ActivityReactionList, CommentReactionList, BookmarkFolderList

Implementation

Change handler from WSEvent to StateUpdateEvent

Testing

Nothing should change externally, as here we're just consuming WS events using different types from before, but not emitting events from new places (yet).

Checklist

  • Issue linked (if any)
  • Tests/docs updated
  • I have signed the Stream CLA (required for external contributors)

@gpunto gpunto requested a review from Copilot September 29, 2025 12:57
Copy link
Contributor

github-actions bot commented Sep 29, 2025

PR checklist ✅

All required conditions are satisfied:

  • Title length is OK (or ignored by label).
  • At least one pr: label exists.
  • Sections ### Goal, ### Implementation, and ### Testing are filled.

🎉 Great job! This PR is ready for review.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates event handlers for FeedList, ActivityReactionList, CommentReactionList, and BookmarkFolderList from consuming WebSocket events (WSEvent) to consuming state update events (StateUpdateEvent).

  • Refactors event handlers to use StateUpdateEvent instead of WSEvent for better type safety and consistency
  • Updates subscription managers to use StateUpdateEventListener interface instead of FeedsEventListener
  • Consolidates test structure using a new BaseEventHandlerTest class for parameterized testing

Reviewed Changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
StateUpdateEvent.kt Adds new event types and conversion logic for activity reactions and feed operations
*EventHandler.kt files Migrates handlers from WSEvent to StateUpdateEvent consumption
*Impl.kt files Updates subscription manager types from FeedsEventListener to StateUpdateEventListener
FeedsClientImpl.kt Updates dependency injection to use state events subscription manager
Test files Refactors tests to use parameterized approach with base test class

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@gpunto gpunto added the pr:internal Internal changes / housekeeping label Sep 29, 2025
Copy link
Contributor

SDK Size Comparison 📏

SDK Before After Difference Status
stream-feeds-android-client 2.47 MB 2.47 MB 0.00 MB 🟢

@gpunto gpunto marked this pull request as ready for review September 29, 2025 13:04
@VelikovPetar VelikovPetar merged commit 2b95f92 into develop Sep 30, 2025
6 of 7 checks passed
@VelikovPetar VelikovPetar deleted the state-events-3 branch September 30, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:internal Internal changes / housekeeping
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants