mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 01:36:30 +02:00
fix(linear): align KB sync messaging and fix log terminology
- update_issue: handle not_indexed KB sync status with a distinct user message (matches Notion parity) - delete_issue: fix log message "not found in DB" → "not found in KB"
This commit is contained in:
parent
2f9768b371
commit
ca624385a6
2 changed files with 3 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ def create_delete_linear_issue_tool(
|
|||
f"Deleted document {document_id} from knowledge base"
|
||||
)
|
||||
else:
|
||||
logger.warning(f"Document {document_id} not found in DB")
|
||||
logger.warning(f"Document {document_id} not found in KB")
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to delete document from KB: {e}")
|
||||
result["warning"] = (
|
||||
|
|
|
|||
|
|
@ -266,6 +266,8 @@ def create_update_linear_issue_tool(
|
|||
f"Knowledge base successfully updated for issue {final_issue_id}"
|
||||
)
|
||||
kb_message = " Your knowledge base has also been updated."
|
||||
elif kb_result["status"] == "not_indexed":
|
||||
kb_message = " This issue will be added to your knowledge base in the next scheduled sync."
|
||||
else:
|
||||
logger.warning(
|
||||
f"KB update failed for issue {final_issue_id}: {kb_result.get('message')}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue