Skip to content

feat: add rename source functionality#1279

Open
shubsolos19 wants to merge 7 commits intolangflow-ai:mainfrom
shubsolos19:feat/rename-source
Open

feat: add rename source functionality#1279
shubsolos19 wants to merge 7 commits intolangflow-ai:mainfrom
shubsolos19:feat/rename-source

Conversation

@shubsolos19
Copy link
Copy Markdown

Closes #86

What's changed

  • Added POST /documents/rename backend endpoint that updates filename across all matching chunks in OpenSearch using update_by_query
  • Registered the new rename route in main.py
  • Added useRenameDocument mutation hook on the frontend
  • Added inline rename to the knowledge page — double-click any source name to rename it
  • Added "Rename" option to the knowledge actions dropdown (⋮ menu)

How it works

  • Double-click a source name in the knowledge table to edit it inline
  • Or click the ⋮ menu → "Rename"
  • Press Enter to save, Escape to cancel
  • Shows a success/error toast after rename
  • Table refreshes automatically with the new name

Add double-click to rename source name inline in the knowledge table. Press Enter to save, Escape to cancel
Add POST /documents/rename endpoint that updates filename across all matching chunks in OpenSearch using update_by_query
Add Rename menu item to the actions dropdown that triggers inline editing of source name
Add React Query mutation hook to call the rename document API endpoint
Register POST /documents/rename endpoint in the FastAPI app
@github-actions github-actions bot added community frontend 🟨 Issues related to the UI/UX backend 🔷 Issues related to backend services (OpenSearch, Langflow, APIs) enhancement 🔵 New feature or request and removed community labels Mar 26, 2026
@github-actions github-actions bot added enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request labels Mar 28, 2026
@github-actions github-actions bot added enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request labels Mar 28, 2026
@shubsolos19
Copy link
Copy Markdown
Author

@dvncvn @mfortman11 Could you please review this PR? It adds rename source functionality to close #86. Thanks!

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

Labels

backend 🔷 Issues related to backend services (OpenSearch, Langflow, APIs) enhancement 🔵 New feature or request frontend 🟨 Issues related to the UI/UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DESIGN SWEEP: Functional] Rename source

1 participant