Skip to content

refactor: move analytics storage to PostgreSQL aggregation#422

Open
smartalee wants to merge 1 commit into
Disciplr-Org:mainfrom
smartalee:refactor/analytics-postgres
Open

refactor: move analytics storage to PostgreSQL aggregation#422
smartalee wants to merge 1 commit into
Disciplr-Org:mainfrom
smartalee:refactor/analytics-postgres

Conversation

@smartalee
Copy link
Copy Markdown

Summary

  • Migrated analytics.service.ts from direct SQLite queries to PostgreSQL-ready functions
  • Updated tests with UTC boundary validation
  • No breaking changes to API responses

Testing

  • Tests pass with SQLite fallback
  • UTC date boundaries verified
  • API response shapes unchanged

Related Issue

Closes #334

- Replace SQLite direct queries with PostgreSQL-ready functions
- Add UTC boundary handling for date ranges
- Maintain API response shapes for /api/analytics endpoints
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@smartalee 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! 🚀

Learn more about application limits

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.

Replace SQLite analytics storage with PostgreSQL aggregation in src/services/analytics.service.ts

1 participant