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

Remove S3 urls from application UI #210

Merged
merged 2 commits into from
Jun 18, 2024
Merged

Conversation

dhvander
Copy link
Contributor

This is done by doing the following.

  • When uploading files, always upload to a folder called temporary_files.
  • Update the save method of the application, so that we copy any files still pointing to the temporary_files folder and pint to the new location (applications/) for each file field. Also, the old file is deleted from the temporary location.
  • Implement new view method to retrieve the file from S3 and serve instead of exposing the S3 urls. The application pages as well as the admin pages have been updated with specific view methods to download temporary as well as application related files.
  • Increase the width of the file field columns to 255 so we can store the file paths

@dhvander dhvander force-pushed the feature/file-upload-s3-changes branch from f4713fe to 1254322 Compare June 17, 2024 15:13
This is done by doing the following.
 - When uploading files, always upload to a folder called temporary_files.
 - Update the save method of the application, so that we copy any files still pointing to the temporary_files folder and pint to the new location (applications/<application reference>) for each file field. Also, the old file is deleted from the temporary location.
 - Implement new view method to retrieve the file from S3 and serve instead of exposing the S3 urls. The application pages as well as the admin pages have been updated with specific view methods to download temporary as well as application related files.
- Increase the width of the file field columns to 255 so we can store the file paths
@dhvander dhvander force-pushed the feature/file-upload-s3-changes branch from 1254322 to 4d5054f Compare June 18, 2024 09:41
Sample data population had to be modified in order to simulate
the availability of files in the /temp_files folder on AWS. Also the init task had to be in the same network as S3 to access the mock bucket.
@dhvander dhvander force-pushed the feature/file-upload-s3-changes branch from 4d5054f to b8e1e9c Compare June 18, 2024 09:50
@dhvander dhvander merged commit 0cc4794 into main Jun 18, 2024
1 check passed
@dhvander dhvander deleted the feature/file-upload-s3-changes branch June 18, 2024 15:53
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.

2 participants