[PR #32094] fix: clean metadata list before sending to backend in batch edit #33547

Closed
opened 2026-02-21 20:53:28 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/32094

State: closed
Merged: No


Fixes #31964.

Addresses the issue where frontend-only fields (isUpdated, updateType, isMultipleValue) were being sent to the backend during batch metadata editing, causing validation failures.

This PR implements:

  • Explicit serialization of metadata objects to include only 'id', 'name', 'type', and 'value'.
  • Refactored 'apply to all' logic to prevent object reference pollution and duplicate fields.

Addressing Bot Feedback:

  • The PR has been rebased/cherry-picked to ensure it only contains the relevant frontend fix.
  • (Unrelated backend changes mentioned by the bot were from a stale base and have been removed).
**Original Pull Request:** https://github.com/langgenius/dify/pull/32094 **State:** closed **Merged:** No --- Fixes #31964. Addresses the issue where frontend-only fields (isUpdated, updateType, isMultipleValue) were being sent to the backend during batch metadata editing, causing validation failures. This PR implements: - Explicit serialization of metadata objects to include only 'id', 'name', 'type', and 'value'. - Refactored 'apply to all' logic to prevent object reference pollution and duplicate fields. Addressing Bot Feedback: - The PR has been rebased/cherry-picked to ensure it only contains the relevant frontend fix. - (Unrelated backend changes mentioned by the bot were from a stale base and have been removed).
yindo added the pull-request label 2026-02-21 20:53:28 -05:00
yindo closed this issue 2026-02-21 20:53:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#33547