diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..b00c0cc0 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,39 @@ +## What type of PR is this? (check all applicable) + +- [ ] 🍕 Feature +- [ ] 🐛 Bug Fix +- [ ] 📝 Documentation +- [ ] 🧑‍💻 Refactor +- [ ] ✅ Test +- [ ] 🤖 Build or CI +- [ ] ❓ Other (please specify) + +## Related Issue + +Example: Fixes #123 + +## Describe this PR + +A brief description of how this solves the issue. + +## Screenshots + +Please provide screenshots of the change. + +## Alternative Approaches Considered + +Did you attempt any other approaches that are not documented in code? + +## Review Guide + +Notes for the reviewer. How to test this change? + +## Checklist before requesting a review + +- 📖 Read the HOT Code of Conduct: +- 👷‍♀️ Create small PRs. In most cases, this will be possible. +- ✅ Provide tests for your changes. +- 📝 Use descriptive commit messages. +- 📗 Update any related documentation and include any relevant screenshots. + +## [optional] What gif best describes this PR or how it makes you feel? diff --git a/src/backend/app/projects/image_processing.py b/src/backend/app/projects/image_processing.py index ae74ced9..d51b0e20 100644 --- a/src/backend/app/projects/image_processing.py +++ b/src/backend/app/projects/image_processing.py @@ -246,7 +246,6 @@ async def download_and_upload_assets_from_odm_to_s3( :param current_state: Current state of the task (IMAGE_UPLOADED or IMAGE_PROCESSING_FAILED). """ log.info(f"Starting download for task {task_id}") - # Replace with actual ODM node details and URL node = Node.from_url(node_odm_url) @@ -319,6 +318,7 @@ async def download_and_upload_assets_from_odm_to_s3( ) finally: + # Clean up the temporary directory if os.path.exists(output_file_path): try: shutil.rmtree(output_file_path) diff --git a/src/frontend/src/components/DroneOperatorTask/MapSection/index.tsx b/src/frontend/src/components/DroneOperatorTask/MapSection/index.tsx index e8ccced3..f5c25ba3 100644 --- a/src/frontend/src/components/DroneOperatorTask/MapSection/index.tsx +++ b/src/frontend/src/components/DroneOperatorTask/MapSection/index.tsx @@ -88,6 +88,7 @@ const MapSection = ({ className }: { className?: string }) => { }, onError: (err: any) => { toast.error(err?.response?.data?.detail || err.message); + dispatch(setSelectedTakeOffPoint(null)); }, });