fix: add missing impact and requires_restart fields to config metadata

- Added infer_impact() function to determine configuration impact levels
- Added infer_requires_restart() function to determine restart requirements
- Updated export_config_metadata.py to include these fields in JSON output
- Fixes ConfigurationTable.tsx error: "Cannot read properties of undefined (reading 'toUpperCase')"
- All 218 configuration settings now include impact and requires_restart fields
- Fixed type annotations and linting issues in extract_config_schema.py

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Maxime Beauchemin
2025-07-18 02:59:18 -07:00
parent 30e731a15b
commit a21a1824e3
5 changed files with 9044 additions and 186 deletions

View File

@@ -30,9 +30,9 @@ cd "$(dirname "$0")/.."
# Track any failures
FAILED_TASKS=()
# 1. Export configuration metadata
echo "📊 Exporting configuration metadata..."
if python scripts/export_config_metadata.py; then
# 1. Extract configuration schema and export metadata
echo "📊 Extracting configuration schema and exporting metadata..."
if python ../scripts/extract_config_schema.py && python scripts/export_config_metadata.py; then
echo "✅ Configuration metadata exported successfully"
else
echo "⚠️ Warning: Failed to export configuration metadata"
@@ -47,7 +47,6 @@ import sys
sys.path.insert(0, '..')
from superset.app import create_app
from superset.cli.update import update_api_docs
from flask.cli import with_appcontext
import os
# Set required environment variables