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

Fix CaseLayouts #4814

Merged
merged 15 commits into from
Feb 13, 2025
4 changes: 4 additions & 0 deletions .changelog/4814.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
changes:
- description: Fixed RN107 implementation for CaseLayout content type.
inbalapt1 marked this conversation as resolved.
Show resolved Hide resolved
type: fix
pr_number: 4814
2 changes: 2 additions & 0 deletions demisto_sdk/commands/content_graph/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ def as_rn_header(self) -> str:
return "Objects"
elif self == ContentType.GENERIC_MODULE:
return "Modules"
elif self == ContentType.CASE_LAYOUT:
return "Layouts"
separated_str = pascalToSpace(self)
return f"{separated_str}s"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3033,6 +3033,13 @@ def test_convert_content_type_to_rn_header_and_from_release_note_header():
ContentType.COMMAND,
):
continue

if content_type == ContentType.CASE_LAYOUT:
assert ContentType.LAYOUT == ContentType.convert_header_to_content_type(
content_type.as_rn_header
)
continue

assert content_type == ContentType.convert_header_to_content_type(
content_type.as_rn_header
)
Expand Down