OpenSourceBrain / OSBv2

An updated version of the Open Source Brain platform
https://www.v2.opensourcebrain.org/
Other
12 stars 6 forks source link

feature/812 - fix for - Error when deleting the Workspace Resources #908

Closed D-GopalKrishna closed 9 months ago

D-GopalKrishna commented 9 months ago

Closes - #812

Task description: This fixes two endpoints for the Workspaceresource - GET and DELETE. GET and DELETE on Workspaceresource previously gave 500.

https://github.com/OpenSourceBrain/OSBv2/assets/59233227/5ff304aa-e92b-481f-b220-1f5b75ec9b38

D-GopalKrishna commented 9 months ago

I see the following error when I delete resources. This happens in etl_helpers.py.

image

The path was removed and folder was added instead in the type def. Reference - /models/workspace_resource_entity.py https://github.com/OpenSourceBrain/OSBv2/commit/1f90a6476dffa27a033a014a31cd22035d40e837

Should I change that to folder? @filippomc

filippomc commented 9 months ago

An alternative solution has been implemented