Repository navigation
Add the rewrite record to the repository protocols [IFC-3284] - #1401
Merged
Merged
Conversation
Infrahub now declares four branch-local attributes on the CoreGenericRepository generic. They record the last rewrite of the remote history of a branch: the commit imported before, the commit reconciled onto, the time and a count. The protocols are generated from the Infrahub core schema with invoke backend.generate, so this file moves with those definitions. Both concrete repository kinds inherit the attributes and override none of them. This is generated output only.
5 tasks done
Deploying infrahub-sdk-python with
|
| Latest commit: |
0d75904
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e487b752.infrahub-sdk-python.pages.dev |
| Branch Preview URL: | https://gma-20261006-ifc-3284.infrahub-sdk-python.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## infrahub-develop #1401 +/- ##
====================================================
+ Coverage 86.32% 86.80% +0.47%
====================================================
Files 149 152 +3
Lines 14536 14743 +207
Branches 1992 1982 -10
====================================================
+ Hits 12548 12797 +249
+ Misses 1427 1382 -45
- Partials 561 564 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 9 files with indirect coverage changes 🚀 New features to boost your workflow:
|
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.
What
Regenerated
infrahub_sdk/protocols.pysoCoreGenericRepository,CoreRepository,CoreReadOnlyRepositoryand theirSynccounterparts declare four new attributes:last_rewrite_previous_commit: StringOptionallast_rewrite_commit: StringOptionallast_rewrite_at: DateTimeOptionalrewrite_count: IntegerOptionalThis goes with opsmill/infrahub#10904, and this PR merges first.
Why
The Infrahub core schema now declares these attributes on the
CoreGenericRepositorygeneric. They record the last rewrite of the remote history of a branch.protocols.pyis generated from those definitions byinvoke backend.generatein the Infrahub repository, so this file moves with them. Both concrete kinds inherit the attributes and override none of them.Notes
invoke backend.validate-generatedrunsgit -C python_sdk diff --exit-code infrahub_sdk/protocols.py.Summary by cubic
Regenerates
infrahub_sdk/protocols.pysoCoreGenericRepository,CoreRepository,CoreReadOnlyRepository, and theirSynccounterparts declare the four optional attributes that record the last rewrite of a branch's remote history (IFC-3284).Notes
infrahub_sdk/protocols.py.Written for commit 0d75904. Summary will update on new commits.