Skip to content

[Engine] Metric event sockets #1218

Ben requested to merge feat/live-vote-sockets-eng1218 into master

Ticket(s) / Related Merge Requests

#1218 (closed)

Summary of Changes

Adding in stream to proxy metric change events (currently just upvote and downvote) through sockets to the front-end, automatically updating vote counts.

Testing Considerations

Sockets on sandbox are not currently in a working state - we can either fix them and test, or leave them and test this in staging.

Note this is only available with activity v2, and you will need to have been looking at a post for more than 2 seconds before listeners will start on the front.

Deployment Considerations

Needs EventStream runner deploying along with changes for it to work.

Turn feature flag on https://growthbook.minds.com/features/engine-1218-metrics-sockets

Regression Scope

Effects upvote and downvote counters.

Platform Affected (web, mobile, etc)

Web, engine changes shouldn't impact mobile.

Developer Testing Completed

Unit and manual

Screenshots / Screen Recording

socket-metrics-up-and-down

Does this impact

  • Localization
  • Dark/light mode
  • Guest mode

Definition of Done Checklist

  • The Acceptance Criteria has been met
  • Code is tested: Testing includes unit/spec, E2E/automated and manual testing
  • Merge requests description has been filled out
Edited by Ben

Merge request reports