Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying infrahub-sdk-python with
|
| Latest commit: |
356c5bf
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://26684320.infrahub-sdk-python.pages.dev |
| Branch Preview URL: | https://ple-field-sections-ifc-2729.infrahub-sdk-python.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## infrahub-develop #1480 +/- ##
====================================================
+ Coverage 87.84% 87.87% +0.02%
====================================================
Files 157 157
Lines 15653 15685 +32
Branches 2114 2117 +3
====================================================
+ Hits 13751 13783 +32
Misses 1341 1341
Partials 561 561
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
This was referenced Nov 5, 2026
Closed
…ema export ContainerSchemaRead carries the read-only `inherited` flag, and `infrahubctl schema export` writes only the containers a node or generic declares itself, so an exported node no longer redeclares the containers of its generics. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-sections-ifc-2729
4 of 5 tasks
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.
Why
Infrahub adds field sections to the schema (IFC-2729): schema designers declare
containerson nodes and generics and setcontaineron attributes and relationships, and the web interface groups fields into one card or panel per section. The Infrahub schema API builds its responses from the SDK's generated models, so the SDK must carry the new properties before the Infrahub change can merge.Non-goals: no change to how the SDK queries or mutates data.
What changed
containerson nodes, generics, profiles and templates, andcontaineron attributes and relationships. Each container item hasname,label,description,order_weight,collapsedandstate.ContainerSchemaReadalso carriesinherited, which Infrahub sets totrueon a container that a node takes from a generic.ContainerSchemaWritedoes not have it: the field is read-only.validate_schemaaccepts both properties.infrahubctl schema formatplacescontainersafteruniqueness_constraintson a node andcontainerlast before the trailingorder_weighton an attribute or relationship. Container item keys are orderedname,label,description,order_weight,collapsed,state.infrahubctl schema exportwrites only the containers whoseinheritedisfalse, withoutinheritedandstate. A node with no container of its own has nocontainerskey in the export.infrahub_sdk.schema.mainexportsContainerSchemaReadandContainerSchemaWrite.How to review
The diff against
infrahub-developis 10 files, +199 −3:infrahub_sdk/ctl/schema_format.py: the key order.infrahub_sdk/schema/export.py: export skips inherited containers.infrahub_sdk/schema/main.py: the two exports.tests/unit/ctl/test_schema_format.py,tests/unit/test_schema_offline_validation.py,tests/unit/sdk/test_schema_export.py.changelog/+schema-containers.added.md.uv run invoke backend.generate), not edited by hand, 3 files, +91:infrahub_sdk/schema/generated/read.py,write.py,contract.py.How to test
Local result on
f6791e9: 119 passed.Impact & rollout
python_sdksubmodule points at356c5bf9(this branch merged with the latestinfrahub-develop) and is re-pointed at the merged commit oninfrahub-developonce this PR merges.Checklist
The Infrahub pull request that depends on this one: opsmill/infrahub#11503
🤖 Generated with Claude Code