ragflow/api/db/services
Can Wang 779932dcb0
Fix: graphrag, raptor can be null for api created kb issue (#8743)
### What problem does this PR solve?

When knowledgebase/dataset created by API, graphrag and raptor can be
null, and will trigger NoneType error when reach to this code, causing
chunking task not able to finish.

![image](https://github.com/user-attachments/assets/998a63e9-611b-4301-8808-24839a05be8a)

Proposed solution will result in None and pass the condition check
without error.

![image](https://github.com/user-attachments/assets/184374fb-e06a-46e6-b8ac-d66a3fd93b59)


### Type of change

-   Bug Fix (non-breaking change which fixes an issue)
2025-07-09 17:12:42 +08:00
..
__init__.py Fix: patch regex vulnerability in filename handling (#7887) 2025-05-27 16:35:37 +08:00
api_service.py Feat(api): Add dsl parameters to control whether dsl fields are included (#5769) 2025-03-07 16:58:00 +08:00
canvas_service.py Fix typo in code (#8327) 2025-06-18 09:41:09 +08:00
common_service.py Fix: File selection in Retrieval testing causes other options to disappear (#7759) 2025-05-30 09:38:50 +08:00
conversation_service.py Fix:when stream=false,new message without sessionid does no (#8078) 2025-06-05 15:14:15 +08:00
dialog_service.py Feat: wrap search app (#8320) 2025-06-18 16:45:42 +08:00
document_service.py Fix: graphrag, raptor can be null for api created kb issue (#8743) 2025-07-09 17:12:42 +08:00
file2document_service.py Tagging (#4426) 2025-01-09 17:07:21 +08:00
file_service.py Feat: add advanced document filter (#8723) 2025-07-09 09:33:11 +08:00
knowledgebase_service.py Fix: filed_map was incorrectly persisted (#7443) 2025-05-06 09:44:38 +08:00
langfuse_service.py Feat: add Langfuse APIs (#6460) 2025-03-24 18:25:43 +08:00
llm_service.py Fix: user_default_llm configuration doesn't work for OpenAI API compatible LLM factory (#8502) 2025-06-27 09:41:12 +08:00
mcp_server_service.py Feat: add MCP dashboard operations (#8460) 2025-06-25 09:26:04 +08:00
search_service.py Feat: wrap search app (#8320) 2025-06-18 16:45:42 +08:00
task_service.py fix task_service.py (#8687) 2025-07-07 09:48:51 +08:00
user_canvas_version.py Feat: Improve 'user_canvan_version' delete and 'document' delete performance (#6553) 2025-05-07 10:55:08 +08:00
user_service.py Fix: Authentication Bypass via predictable JWT secret and empty token validation (#7998) 2025-06-05 12:10:24 +08:00