Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/+08aa1a85.removed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove `is_visible` property from infrahub
3 changes: 1 addition & 2 deletions infrahub_sdk/node/attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ def __init__(self, name: str, schema: AttributeSchemaAPI, data: Any | dict) -> N
self.is_inherited: bool | None = data.get("is_inherited")
self.updated_at: str | None = data.get("updated_at")

self.is_visible: bool | None = data.get("is_visible")
self.is_protected: bool | None = data.get("is_protected")
self.is_protected: bool | None = data.get("is_protected", None)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

self.source: NodeProperty | None = None
self.owner: NodeProperty | None = None
Expand Down
2 changes: 1 addition & 1 deletion infrahub_sdk/node/constants.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ipaddress
import re

PROPERTIES_FLAG = ["is_visible", "is_protected"]
PROPERTIES_FLAG = ["is_protected"]
PROPERTIES_OBJECT = ["source", "owner"]
SAFE_VALUE = re.compile(r"(^[\. /:a-zA-Z0-9_-]+$)|(^$)")

Expand Down
1 change: 0 additions & 1 deletion infrahub_sdk/protocols_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ class Attribute(Protocol):
is_from_profile: bool | None
is_inherited: bool | None
updated_at: str | None
is_visible: bool | None
is_protected: bool | None


Expand Down
3 changes: 0 additions & 3 deletions infrahub_sdk/schema/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ def generate_payload_create(
source: str | None = None,
owner: str | None = None,
is_protected: bool | None = None,
is_visible: bool | None = None,
) -> dict[str, Any]:
obj_data: dict[str, Any] = {}
item_metadata: dict[str, Any] = {}
Expand All @@ -164,8 +163,6 @@ def generate_payload_create(
item_metadata["owner"] = str(owner)
if is_protected is not None:
item_metadata["is_protected"] = is_protected
if is_visible is not None:
item_metadata["is_visible"] = is_visible

for key, value in data.items():
obj_data[key] = {}
Expand Down
Loading
Loading