-
-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move the ConfigValues array out of defaults.config. #2372
Move the ConfigValues array out of defaults.config. #2372
Conversation
79ecd4b
to
6a7c5b5
Compare
I forgot to mention another thing that this fixes. Currently the This pull request adds the permission check to stop that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
This array is now defined in `lib/WeBWorK/ConfigValues.pm` and is returned by the `getConfigValues` method. The `$LTIConfigValues` hash is also defined in that file and added to the array when `getConfigValues` is called if LTI authentication is enabled for the course. This means that these are no longer configurable. No config file can modify them. Furthermore, the array is not even ever added to the course environment. Instead it is just used by the course configuration module which is the only place it was ever used. This means that if a course's course.conf file includes authen_LTI.conf, it does not also need to include the LTIConfigValues.config file. That file in fact no longer exists. Also remove all access to the `paramcache` outside of the `WeBWorK::Controller` module. That is an internal implementation detail that should never be accessed directly outside of that file.
6a7c5b5
to
9284a33
Compare
Locally in production, I added More broadly, this has That leaves out Some of those are probably clearly things that only a system admin should have control over. But some of them could be helpful to let instructors set when the WW server serves multiple institutions with multiple LMSs. If this collection won't be configurable, we should consider adding a few of these. Maybe we start by eliminating the ones that should never be changed by an instructor. What do you think? |
I think that it would be fine to add them to the |
OK, I'll work up a list of what I think would be helpful and open a PR after this one. @pstaabp already approved and I just tested with no issues, so merging this now. |
Sounds good. |
This array is now defined in
lib/WeBWorK/ConfigValues.pm
and is returned by thegetConfigValues
method. The$LTIConfigValues
hash is also defined in that file and added to the array whengetConfigValues
is called if LTI authentication is enabled for the course. This means that these are no longer configurable. No config file can modify them. Furthermore, the array is not even ever added to the course environment. Instead it is just used by the course configuration module which is the only place it was ever used.This means that if a course's course.conf file includes authen_LTI.conf, it does not also need to include the LTIConfigValues.config file. That file in fact no longer exists.
Also remove all access to the
paramcache
outside of theWeBWorK::Controller
module. That is an internal implementation detail that should never be accessed directly outside of that file.