Skip to content

["BUG"] tutor.py is not being used. #44

@MoisesGSalas

Description

@MoisesGSalas

Describe the bug
This plugins defines a tutor.py file that allows you to override the default configuration of the service, this pattern is also used in other Tutor plugins (e.g. tutor-notes). Even though the tutor.py file is mounted in the container (local-docker-compose-services) it's not actually being used by the service. In order to make use of the file we would need to set the environment variable FLASK_APP_SETTINGS to use the tutor.py module in the container definition.

Additionally we would need to use a new patch similar to notes-settings that allows us to override the default settings of the service..

To Reproduce
Steps to reproduce the behavior:

  1. Manually edit the tutor.py file and alter the default configuration (see description message)
  2. Inside the container run flask shell
  3. Check the values by running app.config['CODE_JAIL'] in the shell.
  4. None of the values were overriden.

Expected behavior
Is possible to modify the default values of the codejail service.

Metadata

Metadata

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions