Skip to content

Update architecture docs for user news resource flow#2120

Open
ShubhamWorks02 wants to merge 1 commit into
android:mainfrom
ShubhamWorks02:docs/update-architecture-user-news-resource-flow
Open

Update architecture docs for user news resource flow#2120
ShubhamWorks02 wants to merge 1 commit into
android:mainfrom
ShubhamWorks02:docs/update-architecture-user-news-resource-flow

Conversation

@ShubhamWorks02
Copy link
Copy Markdown

What I have done and why

Updated docs/ArchitectureLearningJourney.md so the For You feed flow matches the current implementation.

The document referenced GetUserNewsResourcesUseCase, but the current code uses UserNewsResourceRepository.observeAllForFollowedTopics from ForYouViewModel.feedState, backed by CompositeUserNewsResourceRepository.

This change also updates the domain-layer example to use the existing GetFollowableTopicsUseCase, which combines topics with user data to produce followable topics.

Fixes #2119

Test: git diff --check

@ShubhamWorks02 ShubhamWorks02 requested a review from dturner as a code owner May 26, 2026 12:52
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the ArchitectureLearningJourney.md documentation to reflect architectural changes. Specifically, it replaces references to the deprecated GetUserNewsResourcesUseCase with the new repository-based approach using UserNewsResourceRepository.observeAllForFollowedTopics and CompositeUserNewsResourceRepository.observeAll. It also updates the domain layer example to use GetFollowableTopicsUseCase instead. There are no review comments to address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Documentation]: Architecture learning journey references outdated user news resource use case

1 participant