mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-26 01:15:52 +03:00
[PR #381] [CLOSED] Align SEO dashboard imports/routes and add app router smoke test #686
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#686
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/381
Author: @AJaySi
Created: 3/5/2026
Status: ❌ Closed
Base:
main← Head:codex/update-api-imports-and-add-smoke-test📝 Commits (1)
10d498cAlign SEO dashboard route imports and add app smoke test📊 Changes
3 files changed (+43 additions, -1 deletions)
View changed files
📝
backend/app.py(+12 -1)📝
backend/main.py(+1 -0)➕
backend/tests/test_app_router_smoke.py(+30 -0)📄 Description
Motivation
app.pyandmain.pyremain consistent and avoid runtime errors when routes are used.app.pyroutes becauseapp.pyis still used as an entrypoint and is not deprecated in the repo's startup path.Description
backend/app.pyapi.seo_dashboardimport list to includeget_semantic_cache_statsandget_sif_indexing_healthand added the/api/seo-dashboard/sif-healthroute handler.backend/main.pyapi.seo_dashboardimport list to includeget_semantic_cache_statsso the two entry modules are consistent.backend/tests/test_app_router_smoke.pywhich imports the app and verifies the router has the/api/seo-dashboard/sif-healthand/api/seo-dashboard/cache-statspaths, while stubbingspacyand setting a minimalSTRIPE_PLAN_PRICE_MAPPING_TESTenv var to keep imports stable in test environments.app.pybecause the repository startup scripts referenceapp:app, so both files were aligned instead.Testing
cd backend && pytest -q tests/test_app_router_smoke.pyand the smoke test passed (1 passed) while existing unrelated deprecation/warning noise was observed but did not affect the test outcome.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.