Open source video conferencing app powered by LiveKit. Built with Django and React.
♻️(backend) clarify storage hook message for intentionally ignored req
lebaudantoinef3e90c39998c
diff --git a/src/backend/core/api/viewsets.py b/src/backend/core/api/viewsets.pyindex aafada92..ad3e3c64 100644--- a/src/backend/core/api/viewsets.py+++ b/src/backend/core/api/viewsets.py@@ -762,14 +762,14 @@ class RecordingViewSet(except InvalidBucketError as e:raise drf_exceptions.PermissionDenied("Invalid bucket specified") from e- except InvalidFilepathError as e:+ except InvalidFilepathError:return drf_response.Response(- {"message": f"Ignore this filepath, {e}"},+ {"message": "Notification ignored."},)- except InvalidFileTypeError as e:+ except InvalidFileTypeError:return drf_response.Response(- {"message": f"Ignore this file type, {e}"},+ {"message": "Notification ignored."},)try:diff --git a/src/backend/core/tests/recording/test_api_recordings_storage_hook.py b/src/backend/core/tests/recording/test_api_recordings_storage_hook.pyindex 008372e8..fe85cb76 100644--- a/src/backend/core/tests/recording/test_api_recordings_storage_hook.py+++ b/src/backend/core/tests/recording/test_api_recordings_storage_hook.py@@ -133,7 +133,7 @@ def test_save_recording_filetype_error(recording_settings, mock_get_parser):)assert response.status_code == 200- assert response.json() == {"message": "Ignore this file type, unsupported '.json'"}+ assert response.json() == {"message": "Notification ignored."}def test_save_recording_filepath_error(recording_settings, mock_get_parser):@@ -154,9 +154,7 @@ def test_save_recording_filepath_error(recording_settings, mock_get_parser):)assert response.status_code == 200- assert response.json() == {- "message": "Ignore this filepath, Invalid filepath structure: parent/folder/recording.jpeg"- }+ assert response.json() == {"message": "Notification ignored."}def test_save_recording_unknown_recording(recording_settings, mock_get_parser, client):