mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 08:55:58 +03:00
[PR #362] [MERGED] Return canonical SemanticHealthMetric for semantic health API #329
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#329
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/362
Author: @AJaySi
Created: 3/2/2026
Status: ✅ Merged
Merged: 3/2/2026
Merged by: @AJaySi
Base:
main← Head:codex/define-canonical-response-model-for-semantic-health📝 Commits (1)
6273d1dUnify semantic health response schema📊 Changes
2 files changed (+44 additions, -18 deletions)
View changed files
📝
backend/api/seo_dashboard.py(+4 -4)📝
backend/services/intelligence/monitoring/semantic_dashboard.py(+40 -14)📄 Description
Motivation
SemanticHealthMetricmodel used across the codebase.Description
RealTimeSemanticMonitor.check_semantic_healthto returnSemanticHealthMetricinstead of temporary inline dataclasses and changed its signature to-> SemanticHealthMetricinbackend/services/intelligence/monitoring/semantic_dashboard.py.SemanticHealthMetricwithmetric_name="semantic_health", a UTCtimestamp, and user-facingdescription/recommendationswhen no individual metrics are present.SemanticHealthMetricby computing overallstatus, averagevalue, averagethreshold, and de-duplicatedrecommendationsbefore returning the summary.backend/api/seo_dashboard.py:get_semantic_healthdocs and the local assignment to explicitly useSemanticHealthMetricso the endpoint success path matches the fallback payload shape.Testing
python -m compileall backend/services/intelligence/monitoring/semantic_dashboard.py backend/api/seo_dashboard.pyand the compilation completed successfully.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.