Repository navigation
chore: remove dead AppController/AppService and unused eslintrc; test API and query-state hooks - #1679
Merged
BigBen-7 merged 1 commit intoNov 19, 2026
Conversation
…/eslintrc; test(analytics): cover stats/gists API hooks and useQueryState (PinSpace-Org#1598 PinSpace-Org#1599 PinSpace-Org#1600 PinSpace-Org#1601)
|
@northersubair Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
2 tasks
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.
What changed
Backend/src/app.controller.tsandBackend/src/app.service.tsdeleted: neither is registered inAppModuleor imported anywhere, and the real health route isHealthControllerat/v1/health, which is untouched ([Backend] Delete AppController and AppService: they are never registered, so GET /health is unreachable dead code #1600).Backend/package.json/package-lock.json: remove the unused@eslint/eslintrcdevDependency ([Backend] Remove the unused @eslint/eslintrc devDependency #1601).analytics/src/hooks/useStatsApi.test.tsx,useGistsApi.test.tsx(new): every hook forwards its params to the matching client function and returns the data; cache keys are distinct per endpoint (hooks with identical params do not share data) and change with the params; key order does not matter; errors surface ([Analytics] Add tests for useStatsApi and useGistsApi #1599).analytics/src/hooks/useQueryState.test.tsx(new): defaults, number/enum parsing and fallbacks,router.replacevspush, other params preserved, pathname used ([Analytics] Add tests for the useQueryState hook #1598).Not done / partial / untested
npm test, build orlint:check.devDependenciesentry.node_modules/@eslint/eslintrcstays in the lock becauseeslintitself depends on it, so this is whatnpm installshould produce, but it was not regenerated.useStatsApianduseGistsApibut its location lists only the former; I tested both.@/lib/api/clientandnext/navigation; they do not exercise the real client.Merge notes
No overlap with the other PRs in this batch.
Closes #1598
Closes #1599
Closes #1600
Closes #1601