mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 17:05:56 +03:00
[PR #402] [MERGED] Sync SEO dashboard imports in app/main and add route smoke test #709
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#709
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/AJaySi/ALwrity/pull/402
Author: @AJaySi
Created: 3/9/2026
Status: ✅ Merged
Merged: 3/9/2026
Merged by: @AJaySi
Base:
main← Head:codex/update-imports-and-add-smoke-tests📝 Commits (1)
e8d76cdSync SEO dashboard imports and add route smoke test📊 Changes
3 files changed (+70 additions, -2 deletions)
View changed files
📝
backend/app.py(+12 -1)📝
backend/main.py(+2 -1)➕
backend/tests/test_seo_dashboard_routes_smoke.py(+56 -0)📄 Description
Motivation
cache-stats,sif-health, etc.) from bothbackend.appandbackend.mainso route registration is consistent.Description
get_semantic_cache_statsandget_sif_indexing_healthto thefrom api.seo_dashboard import (...)list inbackend/app.pyand synced the same imports intobackend/main.py./api/seo-dashboard/sif-healthroute handler inbackend/app.pythat returnsget_sif_indexing_health(current_user)so the route uses an explicitly imported symbol.backend/tests/test_seo_dashboard_routes_smoke.pythat importsbackend.appandbackend.main, stubs lightweight optional dependencies (e.g.,spacy), sets minimal environment defaults for Stripe mapping, and asserts the registration of/api/seo-dashboard/cache-statsand/api/seo-dashboard/sif-health.backend/app.pyandbackend/main.pyin sync to avoid future drift.Testing
pytest -q backend/tests/test_seo_dashboard_routes_smoke.pyand the test suite reported2 passed.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.