Skip to content

Phase 6: Configuration Cleanup#243

Draft
paultranvan wants to merge 2 commits intohardening/phase-5from
hardening/phase-6
Draft

Phase 6: Configuration Cleanup#243
paultranvan wants to merge 2 commits intohardening/phase-5from
hardening/phase-6

Conversation

@paultranvan
Copy link
Collaborator

@paultranvan paultranvan commented Feb 11, 2026

Summary

  • Fix Hydra version_base for forward compatibility (suppress warnings properly)
  • Add DeprecationWarning for legacy "ragondin-" partition prefix with migration guidance

Changes

  • config/config.py: version_base="1.1"version_base=None
  • .hydra_config/config.yaml: Remove TODO comment
  • routers/utils.py: warnings.warn() for legacy prefix detection
  • config/test_config.py: 3 new tests (config loads, values, no warnings)
  • routers/test_utils.py: 2 new tests (deprecation warning emitted, no warning for current prefix)

Test plan

  • All 98 existing tests pass (5 new tests added)
  • ruff check openrag/ passes
  • No Hydra warnings on startup
  • Legacy prefix triggers DeprecationWarning

🤖 Generated with Claude Code

@coderabbitai
Copy link

coderabbitai bot commented Feb 11, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch hardening/phase-6

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

- Change version_base from '1.1' to None for forward compatibility
- Remove TODO comment explaining the quick fix
- Remove TODO comment from config.yaml _self_ line
- Add 3 new tests verifying config loads correctly, values unchanged, and no version_base warnings
- All 96 tests pass (93 original + 3 new)
- Add warnings import to routers/utils.py
- Replace XXX comment with proper DeprecationWarning when legacy 'ragondin-' prefix is used
- Warning includes clear migration instructions and example
- Add 2 new tests verifying deprecation warning behavior
- Test legacy prefix emits warning, current prefix does not
- All 98 tests pass (93 original + 3 config + 2 deprecation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant