Clean up logic to load repository config items#866
Clean up logic to load repository config items#866ogenstad merged 2 commits intoinfrahub-developfrom
Conversation
|
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 selected for processing (2)
WalkthroughThis change removes two public declarations (ResourceClass type alias and RESOURCE_MAP mapping) from the repository module. Concurrently, it introduces a comprehensive unit test suite for InfrahubRepositoryConfig, including a fixture and tests that validate duplicate name detection, presence checks (has_* methods), and retrieval operations (get_* methods) across six definition types: jinja2_transforms, check_definitions, artifact_definitions, python_transforms, generator_definitions, and queries. The test suite also verifies proper error handling when resources are not found. 🚥 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. 📝 Coding Plan
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 Tip CodeRabbit can use TruffleHog to scan for secrets in your code with verification capabilities.Add a TruffleHog config file (e.g. trufflehog-config.yml, trufflehog.yml) to your project to customize detectors and scanning behavior. The tool runs only when a config file is present. |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## infrahub-develop #866 +/- ##
====================================================
+ Coverage 80.64% 80.70% +0.05%
====================================================
Files 118 118
Lines 10246 10255 +9
Branches 1534 1544 +10
====================================================
+ Hits 8263 8276 +13
+ Misses 1455 1452 -3
+ Partials 528 527 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
Deploying infrahub-sdk-python with
|
| Latest commit: |
1ccef9b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a4983db7.infrahub-sdk-python.pages.dev |
| Branch Preview URL: | https://pog-repository-loading.infrahub-sdk-python.pages.dev |
Why
What changed
Summary by CodeRabbit
Release Notes
Refactor
Tests