Skip to content
Snippets Groups Projects
Unverified Commit 4cbbc961 authored by bryan's avatar bryan Committed by GitHub
Browse files

Autoload instance analytics content (when EE and avaliable) (#31314)

* wip

* fix caching behavior for audit db in database-id->connection-pool

* test that caching behavior works as advertised

- db->pooled-connection-spec always returns the same pool for audit-db
- audit-db-id is not in the database-id->connection-pool cache

* DISABLE audit db exposure through GET api/database

* Lots of things

- automagically loads instance analytics on app startup
- TODO: logging in after that is bokred

* add some logs / fix comment

* remove internal_analytics resource

* fix linter issues + update logging

* add tests for existing and missing content

- add test replica of content into test-resources

* remove unused require

* delete sample db + personal collection from test-resources

* get instance_analytics resource off the resource path

* point it to the proper IA resource

* un-hotwire the change to show audit DB on GET /databases

* fix test + lookup the right resource

* remove creator_id references from instance_analytics export test data

- get test feedback

* Revert "remove creator_id references from instance_analytics export test data"

This reverts commit 1aa9d4b1dad304ac0c6d88221f81432d78fc88f0.

* fix tests

* lint

* fix tests

* more test fixing

* linter fix

* revert yarn.lock

* Look up the correct instance_analytics resource

* cleanup comment in serialization/cmd.clj

* silence noisy serialization import logs

* remove a bunch of unused serialization files

* rename Audit Database + docstring

* rename audit database everywhere

* Put the database and tables back

* constrain tests to postgres

* ignore ia data in a test
parent 0c9ef79d
No related branches found
No related tags found
No related merge requests found
Showing
with 515 additions and 33 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment