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

Update/download files through integration #365

Merged
merged 16 commits into from
Oct 14, 2023

Conversation

GDay
Copy link
Member

@GDay GDay commented Sep 29, 2023

This allows users to set up manifests with download and upload options. You will first have to download a file before you can upload it to a different endpoint.
Especially helpful for moving files between storage providers.

@coveralls
Copy link
Collaborator

coveralls commented Sep 29, 2023

Coverage Status

coverage: 93.496% (+0.03%) from 93.465% when pulling 24917b4 on download-upload-files-through-integration into ee84ddd on master.

@GDay GDay marked this pull request as ready for review September 30, 2023 01:44
back/admin/integrations/models.py Outdated Show resolved Hide resolved
back/admin/integrations/models.py Outdated Show resolved Hide resolved
back/admin/integrations/serializers.py Outdated Show resolved Hide resolved
@GDay GDay mentioned this pull request Oct 7, 2023
Copy link

@cscheng cscheng left a comment

Choose a reason for hiding this comment

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

Looks good. For now, and the type of use cases that are considered, having these files temporarily in memory should work fine. You might want to monitor this in production and if necessary apply changes to accommodate increased memory usage (for instance tweaking gunicorn config).

try:
files_to_send[field_name] = (file_name, self.params["files"][file_name])
except KeyError:
return (
Copy link

Choose a reason for hiding this comment

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

Good to see that incorrect file names are caught here with proper feedback for the user. Additionally, you could choose to validate this when saving the integration.

@GDay GDay merged commit 03fe6ae into master Oct 14, 2023
3 checks passed
@GDay GDay deleted the download-upload-files-through-integration branch October 14, 2023 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants