Repository navigation
api: minimize request statistics and correct collection activity - #3166
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Request statistics currently persist raw visitor metadata and unreviewed query input, while collection activity counts unsuccessful requests and can retain stale totals. This change minimizes new statistics and makes the existing monthly activity measure consistent with final request outcomes.
Validation: Node 24.22.1 / pnpm 10.29.3; API, pipeline, prefetch and workspace-dependency builds pass; 567 API security tests pass; five real TiDB tests pass, including persisted-row minimization and execution of the actual aggregation SQL twice against mixed fixtures. The API's collection write restriction remains intact. PR CI 42486362533 and merged-main CI 42486850417 both pass, including the container checks. Both production API servers have been rolled forward with upstream draining and restoration; synthetic production statistics verify minimized stored rows. The existing pipeline runtime now reads the updated configuration, with only the collection SQL changed and no credential or permission change. A normal transactional refresh completed successfully (job 343117009, 1.742 s): 139 collections checked, 115 counts changed, zero stale counts required clearing on this run. Public smoke checks are recorded separately. Historical retention/access work remains open.
Fixes #3165. Advances #3164; keep #3164 open for historical retention/access review.