mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-10 01:11:23 +08:00
Revert "feat: Go knowledge compiler with scheduler-driven dataset compilation" (#17897)
Reverts infiniflow/ragflow#17881
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { useHandleFilterSubmit } from '@/components/list-filter-bar/use-handle-filter-submit';
|
||||
import message from '@/components/ui/message';
|
||||
import { isGoDatasetBackend } from '@/utils/api-proxy-scheme';
|
||||
import { GenerateType, ParseType } from '@/constants/knowledge';
|
||||
import { ResponsePostType, ResponseType } from '@/interfaces/database/base';
|
||||
import {
|
||||
@@ -965,13 +964,6 @@ export const useRunArtifactIndex = (kind: string) => {
|
||||
} = useMutation({
|
||||
mutationKey: [KnowledgeApiAction.RunArtifactIndex],
|
||||
mutationFn: async () => {
|
||||
// Go/hybrid: wiki compilation is auto-driven by the scheduler; there is no
|
||||
// legacy RunIndex endpoint. Reject instead of reporting success so a wiki
|
||||
// update can't be mistaken for a real re-merge (the UI hides/disables the
|
||||
// update control — plan v4.1 §4.2).
|
||||
if (isGoDatasetBackend()) {
|
||||
throw new Error(i18n.t('message.compileNotSupported'));
|
||||
}
|
||||
const { data } = await runIndex(knowledgeBaseId, 'artifact');
|
||||
if (data?.code === 0) {
|
||||
message.success(i18n.t('message.operated'));
|
||||
|
||||
Reference in New Issue
Block a user