[Engine] Metric event sockets #1218
Ticket(s) / Related Merge Requests
- Front-end front!1997 (merged)
- Terraform minds/infrastructure/minds-terraform!44 (merged)
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
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