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

[client] Improve id generation for STIX elements (#789) #748

Merged
merged 17 commits into from
Nov 15, 2024

Conversation

richard-julien
Copy link
Member

@richard-julien richard-julien commented Oct 15, 2024

Improve id generation for STIX elements

Copy link
Member

@aHenryJard aHenryJard left a comment

Choose a reason for hiding this comment

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

Tested locally along with opencti PR several connector running, everything looks good to me.

@@ -219,13 +219,21 @@ def __init__(self, opencti):
"""

@staticmethod
def generate_id(result_name):
def generate_id(result_name, product=None, submitted=None):
Copy link
Member

Choose a reason for hiding this comment

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

@richard-julien as discussed, I've added None for retro compatibility

@aHenryJard aHenryJard changed the base branch from master to release/6.4.0 November 15, 2024 14:09
@aHenryJard aHenryJard merged commit c7f4c65 into release/6.4.0 Nov 15, 2024
6 checks passed
@aHenryJard aHenryJard deleted the opencti/issue/7158 branch November 15, 2024 14:44
@aHenryJard aHenryJard changed the title [client] Improve id generation for STIX elements [client] Improve id generation for STIX elements (#789) Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filigran team use to identify PR from the Filigran team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Limit stix_ids explosion by rewriting the standard_id in client python
3 participants