Repository navigation
Trim dead and repeated work - #45
Merged
Merged
Conversation
ProjectsService.search was never written outside its own spec, and the ?q= it built does nothing on /users/:user/repos anyway: GitHub only filters with q on the /search endpoints.
gpbsumido
marked this pull request as ready for review
November 21, 2026 16:58
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.
Two leftovers I noted while finishing the Angular guide.
ProjectsService.searchwas only ever set by its own spec. The?q=URL it built wouldn't have worked anyway: GitHub ignoresqon/users/:user/reposand only filters on the/searchendpoints. The signal, the branch and that spec are gone. The resource always requests the same URL as before.app.htmlcallsgetRelatedThoughts(win.appId)for every open window on every change detection pass, and it filtered and mappedTHOUGHTSeach time. Each window'srelatedThoughtsinput got a new array every pass.THOUGHTSis static, so the lookup is now grouped once at module load. Each call returns the same array, or a shared empty one for an app with no related thoughts.No version bump or changelog entry. Nothing changes that anyone can see or use: the same request goes out and the same thoughts are listed.
Commits
c5e1a9aRemove the repo search nothing sets29d3d6dAdd a failing test for related thoughts being rebuilt per call (red:expected [ 'httpresource', …(1) ] to be [ 'httpresource', …(1) ] // Object.is equality)da991feGroup related thoughts once instead of per change detection passVerification
ng test: 40 files, 302 tests, exit 0tscon the app and spec configs: exit 0eslinton the changed files: exit 0ng build: exit 0, initial bundle 372.32 kBNo screenshots, since nothing changes visually.