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

Diode import connector (#2009) #2010

Merged
merged 6 commits into from
Apr 8, 2024
Merged

Diode import connector (#2009) #2010

merged 6 commits into from
Apr 8, 2024

Conversation

richard-julien
Copy link
Member

@richard-julien richard-julien added the filigran team use to identify PR from the Filigran team label Apr 4, 2024
@richard-julien richard-julien self-assigned this Apr 4, 2024
self.helper.connect_validate_before_import = connector.get(
"validate_before_import", False
)
self.helper.applicant_id = self.applicant_mappings.get(applicant_id)
Copy link
Member

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?

Copy link
Member Author

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:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
connector-google-drive:
connector-diode-import:

Align name

@richard-julien richard-julien merged commit a34a8bd into master Apr 8, 2024
3 checks passed
@richard-julien richard-julien deleted the issue/2009 branch April 8, 2024 20:16
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.

Diode import connector to ingest directory bundle generated by the send_to_directory option
3 participants