Closed adammccartney closed 1 year ago
Update
Local version appears to also be broken: the lectureBasePath
variable is unset when we try to load files in the files view.
Testting locally with new build of checkout 32c6ff3ae376b5e639cc7da52a352e9a584d2fd1
I'm running jupyter locally with the following command:
jupyterhub -f /home/adam/Code/tuw/datalab/gs_configs/jupyterhub_config.py
Jupyter seems to ignore this completely:
(migration) <adam@mc grader_labextension> (main)$jupyter --paths
config:
/home/adam/.local/miniconda3/envs/migration/etc/jupyter
/home/adam/.jupyter
/home/adam/.local/etc/jupyter
/usr/local/etc/jupyter
/etc/jupyter
data:
/home/adam/.local/miniconda3/envs/migration/share/jupyter
/home/adam/.local/share/jupyter
/usr/local/share/jupyter
/usr/share/jupyter
runtime:
/home/adam/.local/share/jupyter/runtime
Describe the bug
In production release of grader-labextension v0.2.2, we do not manage to find the correct paths for files.
The function that returns the variable lectureBasePath in
services/file.service.ts
returns an empty string to it's caller. The specific case that we are seeing is at the call site incomponents/coursemanage/files/files.tsx
.The string returns empty at this call site and presumably also at any other sites that call the function.