refactor(web): align doctor diagnostics contracts - #548
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Reviewer's GuideRefactors WebUI doctor diagnostics to use argparse.Namespace for option construction and splits doctor checks into access and request-security helpers while adding a targeted test to lock in the diagnostics contract and behavior. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Summary
Align WebUI doctor option construction with its declared API and reduce the complexity of health diagnostic assembly without changing readiness, authentication, mutation, redaction, or response behavior.
argparse.Namespacefor the doctor option parser's declared contract.AZ6uKgZclZga0k7Gje-A,AZ6uKgZclZga0k7Gje-B.AZ9IUp3sJecd4IOuD73yinweb_wud_api.pyandAZ8QJXwzb5VpPISv262ainweb_security.py; both are analyzer false positives and source changes would only silence Sonar.Scope
Checklist
README.mdordocs/updated if install, deployment, config, or user-facing behavior changed — N/A, no user-facing behavior changedtemplate.envupdated if environment variables or example config changed — N/A, no configuration changedCHANGELOG.mdupdated in ## [Unreleased] section — N/A, maintainability-only changeTest plan
tests/run-all.sh— N/A, full shell/container suite is outside this Python-only scopeFocused test(s):
.venv/bin/python -m pytest -q tests/test_python_web_health.py.venv/bin/ruff check src/wudup/web_health.py tests/test_python_web_health.pytests/run-all.sh --pythongit diff --checkDocker or Compose validation, if container behavior changed: N/A, container behavior did not change
Sonar local file analysis was attempted twice for
src/wudup/web_health.py; the MCP analyzer returned “Failed to request analysis of the list of files” both times.