mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
* Setup shared redis abstraction * Install directus/memory * Add mini useEnv util for test mocking purposes * Export missing class from directus/memory * Update readme to include kv * Uninstall memory * Setup telemetry lib * Reduce concurrency * Finalize reporting * Add tests for send-report * Add tests for init * Add tests for tracker * Add tests for get-item-count * Add test for wait time * Add test for get-user-count * Add test for get-user-item-count * Fix type issue * Throw error on non-ok fetch * Init telemetry on server startup * Tweak submission logic * Fix tests, submit version * Update config-options reference * Cool kids don't use + in large numbers * Add changesets * Update docs/self-hosted/config-options.md Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch> * Use vi stubGlobal * Update api/src/env.ts Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch> * Unstub as well * Mock telemetry start in app test * Update api/src/telemetry/types/report.ts Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com> * Fix default value in env * Use toBoolean for env var casting * Don't rely on knex as Apparently it doesn't work reliably with count() * Update api/src/telemetry/lib/init-telemetry.ts Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com> * Use getDatabaseClient for consistent clients * Rename ingress->url * Send my apologies to the formatting bot * Fix version --------- Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch> Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>