-
Notifications
You must be signed in to change notification settings - Fork 655
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 installed plugins to options.ini and deprecate kolibri_settings.json #17
Comments
Note - this refers to the |
The main issue here was that the settings file is hard for a developer to manually edit. As an easier alternative to switching formats, I submitted a quick PR to simply format the JSON in a more developer-friendly way. I think this should suffice to close this issue? (Most devs are familiar with editing JSON) |
Can we re-open this? I actually liked the unreadable JSON because it avoided people messing around in it with manual edits and writing instructions with references to this file :) It's nice that the JSON file is readable but there's still no semantic verification or documentation. This means that we're half-encouraging deployments to base things off a configuration file that we don't really support, it's an internal file still. Being backwards compatible on an interface we didn't intend, can have serious negative consequences. Ideally, the configuration file is a public, human interface, or it's an un-readable mess that discourages any kind of interaction. |
Until #106 is fixed, manually editing the config file is a fairly common activity |
True that! So you're suggesting to fix #106 - I'm stepping up to that! |
see also #2019 |
Shall we close this now, or maybe migrate kolibri_settings.json to an ini file? |
@rtibbles for non-human readable settings it still serves a purpose.. but I guess we don't have any of such? 🎉 I have changed the title of the issue, reduce, reuse, recycle 💚 |
Alas poor kolibri_settings.json, I knew him, Horatio! |
closing to consolidate. let me know if anything wasn't captured |
"Exists" as in is created by default with Kolibri installation, or as in you can create one yourself, if needed? I hope the latter, or I need to amend the documentation. |
yup - you can create one yourself, if needed :) |
Currently, we use JSON, which isn't human friendly. This was under the assumption that ConfigParser (Python 2) and configparser (Python 3) would be terrible to try and unify. However, it turns out there's a backport of Python 3's configparser for Python 2:
https://pypi.python.org/pypi/configparser
@rtibbles you asked about .ini files, thanks for reminding me about this :)
INSTALLED_APPS
, instead rename configuration option toPLUGINS
and use module names. This avoids problems with application configs and can minimize the work done when checking if a plugin exists Autoremove configured plugins when they do not exist #1902The text was updated successfully, but these errors were encountered: