Conversation
Brankonymous
approved these changes
Mar 25, 2026
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.
Summary
Chat service stores usernames on messages
The Message model and DB schema now include a Username field (max 50 chars). When a message is created, the username is extracted from the JWT and stored directly, so there's no need to call the Account service per message.
Video Catalogue resolves uploader usernames
The Videos controller now calls the Account service to resolve usernames for all videos in a list response and for individual video fetches. If the Account service is unreachable, videos are still returned with uploaderUsername: null.
API Gateway proxies Video and Chat services
Two new proxy controllers (VideoProxyController, ChatProxyController) forward frontend requests to the downstream services.
Frontend routes all API calls through the gateway
videoApi.js and chatService.js now point to the gateway instead of directly to each service.
Channel page shows real profile data
ChannelCard and ChannelDetail replaced hardcoded demo content with real data fetched from the Account service.
Cleanup
Removed seed-test-users.sh (replaced by seed.sh), removed hardcoded demo data from constants.jsx, rewrote README.md and service READMEs in English with architecture diagrams and API tables.