feat(db): add peek script for inspecting database contents - #110
Merged
Conversation
Introduced a new script that logs various database query results, including tracked domains, tracked event hosts, form submissions, and agent definitions. This will aid in monitoring and debugging database interactions.
Updated the database configuration to include a TEST_DATABASE_URL for integration tests. Modified the CI workflow to use a test database, ensuring that tests do not affect the main database. Added a new script for creating and migrating the test database, and updated the client to select the appropriate database based on the environment.
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.
Opened automatically when
lewis/test-fixeswas pushed.The title is written from the diff and rewritten as you push, because this is squashed onto
mainand the title becomes the commit subject and the changelog line. Retitle it yourself and it is yours — the automation stops touching it.Summary by cubic
Add a
peekscript inpackages/dbto inspect tracked domains, event hosts, form submissions, and agent definitions. Add test DB isolation viaTEST_DATABASE_URL(suffix_test), CI oncrm_test,bun run db:testto create/migrate, and client selects it whenNODE_ENV=test.Written for commit e4a42ca. Summary will update on new commits.