Merge develop into infrahub-develop#1074
Open
infrahub-github-bot-app[bot] wants to merge 16 commits into
Open
Conversation
GitRepoManager.initialize_repo() checked for `.git` with `.is_dir()`, which misses git worktrees (`.git` is a file containing `gitdir: ...`). The existing-repo branch was skipped and `Repo.init` then crashed with `FileExistsError` trying to mkdir the gitlink file. This made `infrahubctl transform` (and any other CLI relying on branch auto-detection) unusable from a worktree. Switch the check to `.exists()` — dulwich's `Repo(path)` already resolves the gitlink to the real controldir, and `porcelain.active_branch` returns the worktree's branch correctly.
Bumps [starlette](https://github.com/Kludex/starlette) from 0.49.3 to 1.0.1. - [Release notes](https://github.com/Kludex/starlette/releases) - [Changelog](https://github.com/Kludex/starlette/blob/main/docs/release-notes.md) - [Commits](Kludex/starlette@0.49.3...1.0.1) --- updated-dependencies: - dependency-name: starlette dependency-version: 1.0.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [pyarrow](https://github.com/apache/arrow) from 22.0.0 to 23.0.1. - [Release notes](https://github.com/apache/arrow/releases) - [Commits](apache/arrow@apache-arrow-22.0.0...apache-arrow-23.0.1) --- updated-dependencies: - dependency-name: pyarrow dependency-version: 23.0.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
chore(deps): bump pyarrow from 22.0.0 to 23.0.1
Merge stable into develop
Deploying infrahub-sdk-python with
|
| Latest commit: |
9d42f09
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5f758b8f.infrahub-sdk-python.pages.dev |
| Branch Preview URL: | https://develop.infrahub-sdk-python.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## infrahub-develop #1074 +/- ##
====================================================
+ Coverage 81.84% 82.32% +0.47%
====================================================
Files 135 135
Lines 11684 11992 +308
Branches 1766 1793 +27
====================================================
+ Hits 9563 9872 +309
Misses 1571 1571
+ Partials 550 549 -1
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:
|
chore(deps): bump starlette from 0.49.3 to 1.0.1
Merge stable into develop
fix(repository): detect existing repo when .git is a worktree gitlink
…on upsert A node hydrated by `from_graphql` from a partial response would silently null-clear any optional cardinality-one relationship the response did not fetch, because the serialization gate could not distinguish "never loaded" from "explicitly cleared". Add `_peer_has_been_mutated` on `RelatedNodeBase`, flipped by `Node.__setattr__` on explicit assignment, and require it in the gate. Mirrors the existing `value_has_been_mutated` pattern on attributes.
) Bumps [infrahub-testcontainers](https://github.com/opsmill/infrahub) from 1.9.7 to 1.9.8. - [Release notes](https://github.com/opsmill/infrahub/releases) - [Changelog](https://github.com/opsmill/infrahub/blob/stable/CHANGELOG.md) - [Commits](opsmill/infrahub@infrahub-v1.9.7...infrahub-v1.9.8) --- updated-dependencies: - dependency-name: infrahub-testcontainers dependency-version: 1.9.8 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ched-rels fix(node): preserve unfetched optional one-cardinality relationships on upsert
…evelop-20260616 # Conflicts: # infrahub_sdk/node/attribute.py
develop (94559a0) removed the CoreNodeBase import and switched to duck-typed hasattr(self.value, "is_resource_pool") checks. stable added the new is_unresolved_pool_attribute method still using isinstance(self.value, CoreNodeBase). Keep develop's refactored is_from_pool_attribute and port the new method to the hasattr style so it doesn't reference the now-unimported CoreNodeBase. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Manual merge stable into develop
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.
Merging develop into infrahub-develop after merging pull request #1072.
Summary by cubic
Sync branches with SDK fixes and dependency bumps: validate upsert when HFID includes a pool-backed attribute (IHS-119), preserve unfetched optional 1:1 relationships on save, and detect existing repos in
.gitworktrees; updatepyarrow23.0.1,starlette1.0.1,fastapi0.136.3, andinfrahub-testcontainers1.9.8.Written for commit 9d42f09. Summary will update on new commits.