Revert "feat: Go knowledge compiler with scheduler-driven dataset compilation" (#17897)

Reverts infiniflow/ragflow#17881
This commit is contained in:
Jin Hai
2026-08-05 21:50:28 +08:00
committed by GitHub
parent eaf553320f
commit cf13082a1a
165 changed files with 3172 additions and 6959 deletions

View File

@@ -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'));