Skip to content

Commit b767972

Browse files
orhovybakatzir
andauthored
Context Fix Relations -> Relationships (demisto#12372)
* renamed relations to relationships context * added rn * Update Packs/Base/ReleaseNotes/1_10_5.md Co-authored-by: Bar Katzir <[email protected]> * Update Packs/UrlScan/ReleaseNotes/1_1_1.md Co-authored-by: Bar Katzir <[email protected]> Co-authored-by: Bar Katzir <[email protected]>
1 parent 1abada6 commit b767972

6 files changed

Lines changed: 23 additions & 15 deletions

File tree

Packs/Base/ReleaseNotes/1_10_5.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
#### Scripts
3+
##### CommonServerPython
4+
- Updated the context key of relationships from *Relations* to *Relationships*.

Packs/Base/Scripts/CommonServerPython/CommonServerPython.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2412,7 +2412,7 @@ def to_context(self):
24122412

24132413
if self.relations:
24142414
relations_context = [relation.to_context() for relation in self.relations if relation.to_context()]
2415-
ip_context['Relations'] = relations_context
2415+
ip_context['Relationships'] = relations_context
24162416

24172417
ret_value = {
24182418
Common.IP.CONTEXT_PATH: ip_context
@@ -2655,7 +2655,7 @@ def to_context(self):
26552655

26562656
if self.relations:
26572657
relations_context = [relation.to_context() for relation in self.relations if relation.to_context()]
2658-
file_context['Relations'] = relations_context
2658+
file_context['Relationships'] = relations_context
26592659

26602660
ret_value = {
26612661
Common.File.CONTEXT_PATH: file_context
@@ -2721,7 +2721,7 @@ def to_context(self):
27212721

27222722
if self.relations:
27232723
relations_context = [relation.to_context() for relation in self.relations if relation.to_context()]
2724-
cve_context['Relations'] = relations_context
2724+
cve_context['Relationships'] = relations_context
27252725

27262726
ret_value = {
27272727
Common.CVE.CONTEXT_PATH: cve_context
@@ -2767,7 +2767,7 @@ def to_context(self):
27672767

27682768
if self.relations:
27692769
relations_context = [relation.to_context() for relation in self.relations if relation.to_context()]
2770-
email_context['Relations'] = relations_context
2770+
email_context['Relationships'] = relations_context
27712771

27722772
ret_value = {
27732773
Common.EMAIL.CONTEXT_PATH: email_context
@@ -2858,7 +2858,7 @@ def to_context(self):
28582858

28592859
if self.relations:
28602860
relations_context = [relation.to_context() for relation in self.relations if relation.to_context()]
2861-
url_context['Relations'] = relations_context
2861+
url_context['Relationships'] = relations_context
28622862

28632863
ret_value = {
28642864
Common.URL.CONTEXT_PATH: url_context
@@ -3005,7 +3005,7 @@ def to_context(self):
30053005

30063006
if self.relations:
30073007
relations_context = [relation.to_context() for relation in self.relations if relation.to_context()]
3008-
domain_context['Relations'] = relations_context
3008+
domain_context['Relationships'] = relations_context
30093009

30103010
ret_value = {
30113011
Common.Domain.CONTEXT_PATH: domain_context
@@ -3083,7 +3083,7 @@ def to_context(self):
30833083

30843084
if self.relations:
30853085
relations_context = [relation.to_context() for relation in self.relations if relation.to_context()]
3086-
endpoint_context['Relations'] = relations_context
3086+
endpoint_context['Relationships'] = relations_context
30873087

30883088
ret_value = {
30893089
Common.Endpoint.CONTEXT_PATH: endpoint_context
@@ -3158,7 +3158,7 @@ def to_context(self):
31583158

31593159
if self.relations:
31603160
relations_context = [relation.to_context() for relation in self.relations if relation.to_context()]
3161-
account_context['Relations'] = relations_context
3161+
account_context['Relationships'] = relations_context
31623162

31633163
ret_value = {
31643164
Common.Account.CONTEXT_PATH: account_context

Packs/Base/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Base",
33
"description": "The base pack for Cortex XSOAR.",
44
"support": "xsoar",
5-
"currentVersion": "1.10.4",
5+
"currentVersion": "1.10.5",
66
"author": "Cortex XSOAR",
77
"serverMinVersion": "6.0.0",
88
"url": "https://www.paloaltonetworks.com/cortex",

Packs/UrlScan/Integrations/UrlScan/UrlScan.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,19 +285,19 @@ script:
285285
- contextPath: URL.Malicious.Description
286286
description: For malicious URLs, the reason that the vendor made the decision.
287287
type: string
288-
- contextPath: URL.Relations.EntityA
288+
- contextPath: URL.Relationships.EntityA
289289
description: The source of the relationship.
290290
type: string
291-
- contextPath: URL.Relations.EntityB
291+
- contextPath: URL.Relationships.EntityB
292292
description: The destination of the relationship.
293293
type: string
294-
- contextPath: URL.Relations.Relationship
294+
- contextPath: URL.Relationships.Relationship
295295
description: The name of the relationship.
296296
type: string
297-
- contextPath: URL.Relations.EntityAType
297+
- contextPath: URL.Relationships.EntityAType
298298
description: The type of the source of the relationship.
299299
type: string
300-
- contextPath: URL.Relations.EntityBType
300+
- contextPath: URL.Relationships.EntityBType
301301
description: The type of the destination of the relationship.
302302
type: string
303303
- contextPath: URLScan.RelatedIPs
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
#### Integrations
3+
##### urlscan.io
4+
- **Breaking Change**: Updated the context key of relationships from *Relations* to *Relationships*.

Packs/UrlScan/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Urlscan.io",
33
"description": "Urlscan.io reputation",
44
"support": "xsoar",
5-
"currentVersion": "1.1.0",
5+
"currentVersion": "1.1.1",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

0 commit comments

Comments
 (0)