8000 [Bug]: File Manager bulk delete includes files hidden by a search on the same page · Issue #22757 · infiniflow/ragflow · GitHub
[go: up one dir, main page]

Skip to content

[Bug]: File Manager bulk delete includes files hidden by a search on the same page #22757

Backlog

Description

@ZedingZhang

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (Language Policy).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

RAGFlow workspace code commit ID

Reproduced on 2c1adcfd335fde0434a8c2ac5c06d20d883302dc. The relevant Files page and selection code is identical on upstream 1f461db66aabee460877beea0cbb5d56a74a48a6.

RAGFlow image version

N/A. Reproduced in a frontend component test using mocked file services.

Other environment information

Windows, Node.js 24.19.0, Jest with jsdom.

Actual behavior

In File Manager, searching on page one can hide a checked file while leaving it in the bulk selection. After I selected the one visible result, the confirmation counted two files. Confirming in the component test called the mocked delete service with { ids: ['file-alpha', 'file-beta'] } even though only beta.pdf was visible.

Expected behavior

The confirmation should count one file, and confirming should submit only the ID of beta.pdf.

Steps to reproduce

  1. Open Files in a folder with both alpha.pdf and beta.pdf on page one.
  2. Check alpha.pdf, then enter beta in the search box and wait for the results.
  3. Check beta.pdf and open the bulk Delete dialog. The count already shows the issue. You can cancel here.

The same payload was observed when checking alpha.pdf just after typing, while the previous rows were still displayed during the search debounce.

Additional information

Changing the search on page one leaves the page number and page size unchanged. The Files page watches pagination to clear its selection. With file-ID selection, the shared helper returns all stored keys, and the bulk delete handler forwards those IDs. Files page · Selection helper · Delete handler

Related work covers folder navigation (#21393) and pagination (#19158). This case occurs in a single folder on page one throughout.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0