TU-Wien-dataLAB / Grader-Service

Grader Service offers lecturers and students a well integrated teaching environment for data science, machine learning and programming classes.
https://grader-service.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
27 stars 3 forks source link

Incorrect paths in labextension 0.2.2 #113

Closed adammccartney closed 1 year ago

adammccartney commented 1 year ago

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 in components/coursemanage/files/files.tsx.

The string returns empty at this call site and presumably also at any other sites that call the function.

adammccartney commented 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

adammccartney commented 1 year ago

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