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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user