feat(trogon-gateway): use shared runtime config crate#116
Conversation
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
PR SummaryMedium Risk Overview This removes gateway-specific NATS config parsing/resolution and replaces it with shared The gateway CLI is updated to accept global Reviewed by Cursor Bugbot for commit 223ce93. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
WalkthroughIntroduces a new Changes
Sequence Diagram(s)mermaid Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@rsworkspace/crates/trogon-gateway/Cargo.toml`:
- Line 23: The root workspace Cargo.toml is missing a workspace dependency entry
for trogon-service-config which breaks CI; open the root Cargo.toml and add
trogon-service-config under [workspace.dependencies] (pointing to
crates/trogon-service-config) and ensure trogon-service-config is also present
in [workspace.members] (or covered by an existing glob) so the crate is
recognized by the workspace and builds correctly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: c965d5db-105b-4666-aacc-51374e4f1434
📒 Files selected for processing (6)
rsworkspace/crates/trogon-gateway/Cargo.tomlrsworkspace/crates/trogon-gateway/src/cli.rsrsworkspace/crates/trogon-gateway/src/config.rsrsworkspace/crates/trogon-gateway/src/main.rsrsworkspace/crates/trogon-service-config/Cargo.tomlrsworkspace/crates/trogon-service-config/src/lib.rs
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Code Coverage SummaryDetailsDiff against mainResults for commit: 223ce93 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
This aligns gateway runtime configuration behavior with the shared service-config model used in CRON, so config resolution semantics stay consistent across services. It reduces divergence in NATS override precedence and avoids drift in runtime argument handling between branches.