-
Notifications
You must be signed in to change notification settings - Fork 359
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
Diode import connector (#2009) #2010
Conversation
self.helper.connect_validate_before_import = connector.get( | ||
"validate_before_import", False | ||
) | ||
self.helper.applicant_id = self.applicant_mappings.get(applicant_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally in pair programming with @Megafredo in the following case:
- Run a connector with the following configurations
send_to_queue: False
send_to_directory: True
send_to_directory_path: "PATH_TO_DIRECTORY"
send_to_directory_retention: 1
- Run the diode import connector with the following configurations
diode_import:
get_from_directory_path: 'PATH_TO_DIRECTORY'
get_from_directory_retention: 7
applicant_mappings: "source_user_id1:target_user_id1,source_user_id2:target_user_id2"
Even if the self.helper.applicant_id
is None
(in case of applicant_mappings
not properly set with correct id), data is still ingested with the correct creator and author is the correct one.
When is it used?
Can we discuss about that and about some additionnal suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its because you test on the same platform so the applicant are "magically aligned" :)
@@ -0,0 +1,13 @@ | |||
version: '3' | |||
services: | |||
connector-google-drive: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
connector-google-drive: | |
connector-diode-import: |
Align name
See OpenCTI-Platform/client-python#603 and #2009