usdot-fhwa-stol / cda-telematics

Apache License 2.0
1 stars 2 forks source link

Implement APIs to upload and list ROS 2 rosbag #174

Closed dan-du-car closed 8 months ago

dan-du-car commented 8 months ago

PR Details

Description

Create a file upload service to upload files to S3 bucket if files are to be stored in the AWS s3. Update the service to copy the file into pre-configured folder if the service saves files in host machine. Upon successful upload, the service shall send file processing request to NATS server:

{\"uploaded_path\":\" /path/to/folder\",\"filename\":\" <file-name>\"}

Add a service to list the uploaded files and update the MYSQL DB with the uploaded file info.

Update copyright year to 2024.

Related GitHub Issue

NA

Related Jira Key

https://usdot-carma.atlassian.net/browse/WFD-491

Motivation and Context

Support ROS2 rosbag upload

How Has This Been Tested?

Local integration testing and unit test

Types of changes

Checklist:

dan-du-car commented 8 months ago

This is looking good. The one additional question i had was about handling messages from the processing service to update the Processing -> Processed status. Is that going to be handled under a different issue?

@adev4a Updating processing status is handled by processing service. Once the processing service receives the file (ros2 rosbag this case), it updates the status to in progress before reading the ros2 rosbag file.