Skip to content

Replace hardcoded DB defaults with values from default.config.toml#690

Open
ok300 wants to merge 10 commits intopubky:mainfrom
ok300:copilot/update-db-config-to-deserialize-toml
Open

Replace hardcoded DB defaults with values from default.config.toml#690
ok300 wants to merge 10 commits intopubky:mainfrom
ok300:copilot/update-db-config-to-deserialize-toml

Conversation

@ok300
Copy link
Copy Markdown
Contributor

@ok300 ok300 commented Jan 15, 2026

This PR replaces hardcoded DB params with those read and parsed from default.config.toml.

This was expanded to include StackConfig and its fields, some of which were also hardcoded (log level, FILES_DIR) but for which default.config.toml already defined the same defaults.

@ok300 ok300 requested review from SHAcollision and tipogi January 15, 2026 18:55
@ok300 ok300 marked this pull request as draft January 17, 2026 07:22
@ok300 ok300 force-pushed the copilot/update-db-config-to-deserialize-toml branch from e742e50 to 20910e0 Compare January 17, 2026 08:19
@tipogi tipogi added the 🔧 refactor Non-Feature Update label Feb 12, 2026
@tipogi tipogi added this to the 2026-Q1 milestone Feb 12, 2026
@tipogi tipogi added the 🧬 Database Graph and cache data flows, indexing, queries, performance label Feb 12, 2026
@ok300 ok300 marked this pull request as ready for review March 10, 2026 07:47
@ok300 ok300 force-pushed the copilot/update-db-config-to-deserialize-toml branch from 914733b to 839d731 Compare March 10, 2026 07:50
@ok300 ok300 requested a review from aintnostressin March 10, 2026 07:50
@ok300 ok300 marked this pull request as draft March 10, 2026 11:10
@ok300 ok300 marked this pull request as ready for review March 10, 2026 12:23
@ok300 ok300 force-pushed the copilot/update-db-config-to-deserialize-toml branch from fa0c61e to fdcbd75 Compare March 11, 2026 10:04

// Create temporal struct to wrap database config
fn default_neo4j_user() -> String {
String::from("neo4j")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this constant be removed as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🧬 Database Graph and cache data flows, indexing, queries, performance 🔧 refactor Non-Feature Update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants