mirror of
https://github.com/open-webui/docs.git
synced 2026-07-20 15:38:19 -04:00
[PR #503] [MERGED] feat: Enhance scan-missing-env-vars.py to detect defaults, types, and categorize output #561
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/docs/pull/503
Author: @silentoplayz
Created: 4/15/2025
Status: ✅ Merged
Merged: 4/18/2025
Merged by: @tjbck
Base:
main← Head:main📝 Commits (5)
7645989Update env-configuration.md2ca78ceUpdate scan-missing-env-vars.py3598ee5Update env-configuration.md668e48bUpdate env-configuration.md6f0f7fdUpdate env-configuration.md📊 Changes
2 files changed (+209 additions, -41 deletions)
View changed files
📝
docs/getting-started/env-configuration.md(+19 -21)📝
scripts/scan-missing-env-vars.py(+190 -20)📄 Description
Pull Request Checklist
Changelog Entry
Description
scan-missing-env-vars.pyscript to provide more detailed information about environment variable usage in the codebase. The script now detects default values, infers variable types, and categorizes undocumented variables for better analysis of environment variable configurations.Added
os.getenv,os.environ.get, andPersistentConfig.PersistentConfig.PersistentConfigvariables from other undocumented variables.Changed
find_env_varsfunction now returns a dictionary containing detailed context for each environment variable (files, default, type) instead of just a set of variable names.Fixed
Additional Information
PersistentConfigand those with default values and specific types.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.