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

MMI 3061 service to move s3 file, locally implement. #2318

Merged
merged 6 commits into from
Oct 31, 2024

Conversation

kkwangsir
Copy link
Contributor

This is a locally run service
-- update apiServcies to handle API call
-- added uploadFile services
-- build docker / docker compose for local test

This service call storage API to move files published between [32 days before today, 30 days before today]

tested it locally

log from tno-fileupload

2024-10-31 08:12:30 info: TNO.Services.Runners.BaseService[0]
2024-10-31 08:12:30       Service started
2024-10-31 08:12:30 info: TNO.Services.FileUpload.FileUploadManager[0]
2024-10-31 08:12:30       start upload files to S3
2024-10-31 08:12:30 info: TNO.Services.FileUpload.FileUploadManager[0]
2024-10-31 08:12:30       Date range: 09/30/2024 00:00:00 to 10/01/2024 00:00:00
2024-10-31 08:12:31 dbug: TNO.Core.Http.OpenIdConnectRequestClient[0]
2024-10-31 08:12:31       HTTP request made: POST:http://host.docker.internal:40010/api/editor/storage/upload-files-to-s3?limit=-1&publishedAfter=2024-09-30&publishedBefore=2024-10-01 (User-Agent: TNO)
2024-10-31 08:12:31 info: TNO.Services.Runners.BaseService[0]
2024-10-31 08:12:31       Service stopped

log from API container

Received HTTP Request POST user:(null) http://host.docker.internal:40010/api/editor/storage/upload-files-to-s3?limit=-1&publishedAfter=2024-09-30&publishedBefore=2024-10-01

@Fosol Fosol added the enhancement New feature or request label Oct 31, 2024
Copy link
Collaborator

@Fosol Fosol left a comment

Choose a reason for hiding this comment

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

Do you want to include the Infrastructure as code.

  • build
  • deploy
  • cronjob

@JacobWang-bc
Copy link
Collaborator

Do you want to include the Infrastructure as code.

  • build
  • deploy
  • cronjob

Hi Jeremy, I would create another story to track those work. They will be in the next pr.

@JacobWang-bc JacobWang-bc merged commit 0a2ab31 into bcgov:dev Oct 31, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants