feat: add usage statistics server - #1
Merged
Conversation
vitormattos
added a commit
that referenced
this pull request
Sep 8, 2026
feat: add usage statistics server Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
vitormattos
added a commit
that referenced
this pull request
Sep 8, 2026
feat: add usage statistics server Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
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
Build the first functional version of the usage statistics receiver as a native Nextcloud app.
nextcloud-version-matrixApiRouteattributes instead ofappinfo/routes.phpLICENSES/nextcloud/ocpdevelopment dependency with a scheduled workflow adapted from the Nextcloud templateacceptedresponse for new and idempotent report submissions without exposing database IDsThe API structure follows the same Nextcloud OCS/OpenAPI pattern used by LibreSign:
OCSController,DataResponse,ApiRoute,OpenAPIscopes/tags, Psalm, PHPStan,openapi-extractor, generated OpenAPI JSON, and generated TypeScript models.The design also uses
nextcloud/survey_serveras prior art for ingestion semantics, metric metadata, aggregation conventions, settings, and cleanup, while intentionally preserving historical reports instead of replacing each installation's previous snapshot.Mutation testing covers 100% of the mutated code and reached a 97% covered-code MSI. The remaining escaped mutants are SQLite-equivalent database normalization casts and the idempotent-report fast path, so the project enforces a 97% MSI baseline without suppressing those mutants.