You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(platform): project Files says "Indexing queued" when the server refused Index now or Retry indexing #4837
In a project's Files tab, Index now and Retry indexing always toast success, even when the server refused. mainacd5dbd10:
services/platform/app/features/projects/components/project-files-tab.tsx:925-938 awaits retryRagIndexing({ documentId }) and then shows "Indexing queued" (files.indexingStartQueued) or "Indexing retry queued" without reading the result. The catch handles only a thrown error (:939-949).
The answer it ignores: the same mutation answers a refusal with { success: false, … } and status 200. Knowledge › Documents checks it: features/documents/components/document-row-actions.tsx:187-196 shows rag.toast.retryFailed when result.success is false.
When the server refuses: per the backend handler (backend/domains/documents/service.ts, retryRagIndexing), after its per-minute rate limit, or for a row with no stored file.
What the user sees: "Indexing queued" while nothing was queued. They then wait for an index that never comes, with no hint to try later or re-upload the file.
Expected
Read result.success as Knowledge › Documents does. On false, show the failure toast with the server's reason, mapped to catalog text where a code exists.
Regression: a Files-tab test where retryRagIndexing resolves { success: false } and must not show "Indexing queued". On acd5dbd10 it does.
Severity and owner
Severity: medium. It is a false success on the action meant to fix a file that isn't searchable.
Owner: platform (projects, files).
Found by: Review A (TALE-358), 2026-10-12 08:15 Zurich occurrence, oldest-due projects.files slice. Static reading at acd5dbd10, verified against the Knowledge Hub caller; I didn't run it.
Addendum (Review A, TALE-358, 2026-10-13 00:15 Zurich occurrence): two create-folder problems. maindf7cd70f7, paths under services/platform/app/features/projects/components/ unless noted.
1. The create-folder deep link ignores edit rights.
project-files-tab.tsx:422-434: ?createFolder=1 opens the create-folder dialog (setCreateFolderParent({})) for anyone who follows the link. The tab's own create-folder controls only render for canEdit (:1087, :1099).
A reader, or anyone on an archived project, gets a dialog that can only fail. Submitting raises "Couldn't create folder" with the server's refusal as the description (project-create-folder-dialog.tsx:79-86, failureDetail(error)), not a sentence saying they can't add folders here.
Expected: honour canEdit, and the archived state, before opening the dialog from the link. Otherwise drop the parameter, or explain why no folder can be created.
Regression: a files-tab test as a reader with openCreateFolder. No dialog opens. On df7cd70f7 it opens.
2. Folder-name rules arrive in English, after the round trip.
The dialog's schema only requires a non-empty name (project-create-folder-dialog.tsx:46-50).
A name like "2024/25" goes to the server, which refuses it with FOLDER_NAME_INVALID and the English sentence "Folder name must not contain a path separator ("/" or "")" (backend/domains/folders/paths.ts:28-45). That sentence becomes the toast description under the localized title, in every locale.
The same rules exist as a shared helper (lib/shared/utils/folder-name.ts).
Expected: validate with the shared helper in the dialog and show localized, field-level messages for each reason (blank, too long, separator, control character, dot).
This is static reading, verified at the cited lines. I didn't run it.
Activity
yannickmonney commentedon Oct 12, 2026
Addendum (Review A, TALE-358, 2026-10-13 00:15 Zurich occurrence): two create-folder problems.
maindf7cd70f7, paths underservices/platform/app/features/projects/components/unless noted.1. The create-folder deep link ignores edit rights.
project-files-tab.tsx:422-434:?createFolder=1opens the create-folder dialog (setCreateFolderParent({})) for anyone who follows the link. The tab's own create-folder controls only render forcanEdit(:1087,:1099).project-create-folder-dialog.tsx:79-86,failureDetail(error)), not a sentence saying they can't add folders here.canEdit, and the archived state, before opening the dialog from the link. Otherwise drop the parameter, or explain why no folder can be created.openCreateFolder. No dialog opens. Ondf7cd70f7it opens.2. Folder-name rules arrive in English, after the round trip.
project-create-folder-dialog.tsx:46-50).FOLDER_NAME_INVALIDand the English sentence "Folder name must not contain a path separator ("/" or "")" (backend/domains/folders/paths.ts:28-45). That sentence becomes the toast description under the localized title, in every locale.lib/shared/utils/folder-name.ts).This is static reading, verified at the cited lines. I didn't run it.
fix(platform): honour refusals and edit rights in project Files