Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update protocols to match latest core schema #107

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Conversation

dgarros
Copy link
Contributor

@dgarros dgarros commented Oct 25, 2024

@@ -397,7 +399,6 @@ class CoreNumberPool(CoreResourcePool, LineageSource):


class CoreObjectPermission(CoreBasePermission):
branch: String
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gmazoyer is this change expected ? it wasn't part of my change

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should be fine as we decided to remove the "branch" parts as part of the object permissions with the argument that users probably wouldn't want to setup permissions on specific branches and instead have settings for "allow on default branch" or "allow on other branches" on in the future "allow on branches that I have created".

Copy link

codecov bot commented Oct 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

@@           Coverage Diff            @@
##           develop     #107   +/-   ##
========================================
  Coverage    64.27%   64.27%           
========================================
  Files           74       74           
  Lines         6856     6856           
  Branches      1355     1355           
========================================
  Hits          4407     4407           
  Misses        2098     2098           
  Partials       351      351           
Flag Coverage Δ
python-3.10 43.26% <100.00%> (ø)
python-3.11 43.26% <100.00%> (ø)
python-3.12 43.26% <100.00%> (ø)
python-3.9 43.20% <100.00%> (ø)
python-filler-3.12 23.89% <0.00%> (ø)

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%> (ø)

@dgarros dgarros marked this pull request as ready for review October 25, 2024 07:35
@dgarros dgarros requested a review from a team October 25, 2024 07:35
@@ -7,7 +7,8 @@
from .protocols_base import CoreNode, CoreNodeSync

if TYPE_CHECKING:
from .node import RelatedNode, RelatedNodeSync, RelationshipManager, RelationshipManagerSync
from infrahub_sdk.node import RelatedNode, RelatedNodeSync, RelationshipManager, RelationshipManagerSync
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was there some problem with the relative import here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't touched this part, not sure why the import was relative in the first place
this is what the current code is generating

@dgarros dgarros merged commit 92b9567 into develop Oct 25, 2024
12 checks passed
@dgarros dgarros deleted the dga-20241024-menu branch October 25, 2024 11:08
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