mirror of
https://github.com/inventree/InvenTree.git
synced 2026-07-18 04:33:48 +00:00
Ensure configuration settings are documented (#11674)
* Export configuration keys to JSON * Support rendering of config options in docs * Check for missing config settings * Simplify macro * Initial tests * Fix collisions * Updates * Ensure values are stringified * Ensure null values are exported correctly * Refactor database config - Observability on the config settings * More docs updates * Updates * Add observability of cache settings * More updates * Observability * Set env config for RTD * Revert RTD config file - Handled by ENV VAR on RTD account * Visibility on background worker settings * Tweaks * Tweaks * Split tracing settings out into separate file - Improved discovery - declutter settings.py * Cleanup LDAP settings * Social providers docs * More updates * Refactor ldap setup into own module * Tweaks * Formatting tweaks * Tweak logic * Fix INVENTREE_SESSION_COOKIE_SECURE setting * Fix wrapping * Add custom default
This commit is contained in:
+19
-1
@@ -280,9 +280,27 @@ def on_post_build(*args, **kwargs):
|
||||
ignored_settings = {
|
||||
'global': ['SERVER_RESTART_REQUIRED'],
|
||||
'user': ['LAST_USED_PRINTING_MACHINES'],
|
||||
'config': [
|
||||
'INVENTREE_DB_TCP_KEEPALIVES',
|
||||
'INVENTREE_DB_TCP_KEEPALIVES_IDLE',
|
||||
'INVENTREE_DB_TCP_KEEPALIVES_INTERVAL',
|
||||
'INVENTREE_DB_TCP_KEEPALIVES_COUNT',
|
||||
'INVENTREE_DB_ISOLATION_SERIALIZABLE',
|
||||
'INVENTREE_DB_WAL_MODE',
|
||||
'INVENTREE_PLUGIN_DIR',
|
||||
'INVENTREE_DOCKER',
|
||||
'INVENTREE_FLAGS',
|
||||
'INVENTREE_REMOTE_LOGIN',
|
||||
'INVENTREE_REMOTE_LOGIN_HEADER',
|
||||
'TEST_TRANSLATIONS',
|
||||
'INVENTREE_FRONTEND_URL_BASE',
|
||||
'INVENTREE_FRONTEND_API_HOST',
|
||||
'INVENTREE_FRONTEND_SETTINGS',
|
||||
'INVENTREE_LOGOUT_REDIRECT_URL',
|
||||
],
|
||||
}
|
||||
|
||||
for group in ['global', 'user']:
|
||||
for group in ['global', 'user', 'config']:
|
||||
expected = expected_settings.get(group, {})
|
||||
observed = observed_settings.get(group, {})
|
||||
ignored = ignored_settings.get(group, [])
|
||||
|
||||
Reference in New Issue
Block a user