INGInious
INGInious copied to clipboard
[filesystems/local] Local implementation of distribute() mismatch the specification
The filesystem interface specifies that the type returned by distribute()
must be {file, url, invalid}.
https://github.com/UCL-INGI/INGInious/blob/302f6beb712a848ea5465df052459869470e974a/inginious/common/filesystems/init.py#L137-L142
However, the local implementation returns 'local' as type.
https://github.com/UCL-INGI/INGInious/blob/302f6beb712a848ea5465df052459869470e974a/inginious/common/filesystems/local.py#L160
After discussion, we will update the documentation to match the usages:
https://github.com/UCL-INGI/INGInious/blob/b60326b702022ffe41391e7b7b003b3b3bbb8080/inginious/frontend/pages/tasks.py#L418
https://github.com/UCL-INGI/INGInious/blob/b60326b702022ffe41391e7b7b003b3b3bbb8080/inginious/frontend/pages/course_admin/task_edit_file.py#L252