-
Notifications
You must be signed in to change notification settings - Fork 35
Warn on high-cost LightRAG and LivingMemory config #199
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -273,6 +273,22 @@ def test_dashboard_exposes_companion_plugin_api_hub(): | |
| assert "GET /api/data/overview" in service | ||
|
|
||
|
|
||
| def test_dashboard_exposes_config_cost_warnings(): | ||
| text = (PLUGIN_ROOT / "web_res" / "static" / "html" / "dashboard.html").read_text(encoding="utf-8") | ||
| index = (PLUGIN_ROOT / "pages" / "dashboard" / "index.html").read_text(encoding="utf-8") | ||
| app = (PLUGIN_ROOT / "pages" / "dashboard" / "app.js").read_text(encoding="utf-8") | ||
| service = (PLUGIN_ROOT / "webui" / "services" / "config_service.py").read_text(encoding="utf-8") | ||
|
|
||
| assert "configWarnings" in text | ||
| assert "settings-warning-list" in text | ||
| assert "成本提醒" in text | ||
| assert "settings-warnings" in index | ||
| assert "integration-warnings" in index | ||
| assert "warningListHtml" in app | ||
| assert "schema.warnings" in app | ||
|
Comment on lines
+276
to
+288
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (testing): Consider asserting the presence of the new warning containers ( Adding assertions for these DOM containers in |
||
| assert "get_config_cost_warnings" in service | ||
|
|
||
|
|
||
| def test_dashboard_exposes_tiered_dependency_install_controls(): | ||
| text = (PLUGIN_ROOT / "web_res" / "static" / "html" / "dashboard.html").read_text(encoding="utf-8") | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.