fix: correct graph_enabled logic in process configuration

- Updated the logic for `graph_enabled` in `UploadConfirmDialog.vue` to require both `nodeExtractConfig.enabled` and `graphEnabled` to be true.
- Added a new test case in `knowledge_process_config_test.go` to ensure that `GraphEnabled` is false when `ExtractConfig.Enabled` is false.
- Adjusted the `ResolveProcessConfig` function to reflect the updated dependency between graph and extract configurations, ensuring proper behavior in the process configuration resolution.
This commit is contained in:
wizardchen
2026-06-09 18:29:22 +08:00
committed by lyingbug
parent ed9e780c8c
commit 76dc23226d
3 changed files with 20 additions and 5 deletions
@@ -687,7 +687,7 @@ function buildProcessOverrides(): KnowledgeProcessOverrides {
enabled: state.questionGenerationConfig.enabled,
question_count: state.questionGenerationConfig.questionCount,
},
graph_enabled: state.nodeExtractConfig.enabled || state.graphEnabled,
graph_enabled: state.nodeExtractConfig.enabled && state.graphEnabled,
extract_config: {
enabled: state.nodeExtractConfig.enabled,
text: state.nodeExtractConfig.text,