Skip to content

feat(schema): accept the number pool allocation_scope in the generated schema models - #1402

Merged
ajtmccarty merged 4 commits into
pmi-number-pool-range-protocolsfrom
ifc-3334-allocation-scope
Oct 8, 2026
Merged

ajtmccarty merged 4 commits into
pmi-number-pool-range-protocolsfrom
ifc-3334-allocation-scope

Conversation

@ajtmccarty

@ajtmccarty ajtmccarty commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

regenerated schema for new allocation_scope field on CoreNumberPool and NumberPoolParameters. goes with opsmill/infrahub#10917

targets pmi-number-pool-range-protocols b/c the infrahub-side feature-number-pools-1.12 branch needs the changes on that SDK branch, but probably worth making a matching feature-number-pools-1.12 branch on the SDK too for now

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Deploying infrahub-sdk-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: fdd14b8
Status: ✅  Deploy successful!
Preview URL: https://87b57488.infrahub-sdk-python.pages.dev
Branch Preview URL: https://ifc-3334-allocation-scope.infrahub-sdk-python.pages.dev

View logs

@codecov

codecov Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@                       Coverage Diff                        @@
##           pmi-number-pool-range-protocols    #1402   +/-   ##
================================================================
  Coverage                            86.82%   86.82%           
================================================================
  Files                                  152      152           
  Lines                                14759    14775   +16     
  Branches                              1982     1982           
================================================================
+ Hits                                 12815    12829   +14     
- Misses                                1381     1382    +1     
- Partials                               563      564    +1     
Flag Coverage Δ
integration-tests 42.36% <10.00%> (-0.05%) ⬇️
python-3.10 60.90% <10.00%> (-0.07%) ⬇️
python-3.11 60.91% <10.00%> (-0.06%) ⬇️
python-3.12 60.91% <10.00%> (-0.06%) ⬇️
python-3.13 60.90% <10.00%> (-0.06%) ⬇️
python-3.14 60.91% <10.00%> (-0.06%) ⬇️
python-filler-3.12 22.94% <90.00%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
infrahub_sdk/protocols.py 100.00% <100.00%> (ø)
infrahub_sdk/schema/generated/contract.py 100.00% <ø> (ø)
infrahub_sdk/schema/generated/read.py 100.00% <100.00%> (ø)
infrahub_sdk/schema/generated/write.py 99.40% <100.00%> (+0.02%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cubic-dev-ai cubic-dev-ai Bot left a comment

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.

No issues found across 3 files

Turn on auto-fix | Re-trigger cubic

@polmichel
polmichel added this pull request to stack #1403 October 7, 2026 08:10
@polmichel
polmichel removed this pull request from stack #1403 October 7, 2026 08:11
@polmichel
polmichel added this pull request to stack #1404 October 7, 2026 08:11
@ajtmccarty
ajtmccarty force-pushed the ifc-3334-allocation-scope branch from d013309 to d0c5d0c Compare October 7, 2026 17:18
@ajtmccarty
ajtmccarty removed this pull request from stack #1404 October 8, 2026 15:31
polmichel and others added 4 commits October 8, 2026 08:31
NumberPool attribute parameters carry `ranges`, a list of start/end ranges with
an optional weight, next to the `start_range`/`end_range` shorthand. The
shorthand is optional and deprecated, so an attribute declared without any range
no longer receives a default range. Bookkeeping fields on a range are reported
as read-only like on every other value model.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The generated descriptions of start_range and end_range now say that a
missing start defaults to 1 and a missing end to the largest supported
number when only the other bound is set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d schema models

Regenerate the schema models and protocols for Infrahub's new
`allocation_scope` field: `NumberPoolParametersRead`/`Write` gain
`allocation_scope: list[str] | None`, and `CoreNumberPool` gains the
matching optional List attribute. Without it, a schema read from
Infrahub and loaded back is rejected because the field is unknown.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@ajtmccarty
ajtmccarty force-pushed the ifc-3334-allocation-scope branch from d0c5d0c to fdd14b8 Compare October 8, 2026 15:32
@ajtmccarty
ajtmccarty added this pull request to stack #1411 October 8, 2026 15:48
@ajtmccarty
ajtmccarty merged commit 1bd89c8 into feature-number-pools-1.12 Oct 8, 2026
30 checks passed
@ajtmccarty
ajtmccarty deleted the ifc-3334-allocation-scope branch October 8, 2026 16:13
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.

2 participants