-
[OPIK-3836] [FE] Add batchGroupId param for dataset version creation (#4735)
发布于
2026-01-15 10:19:32 +00:00 - [OPIK-3836] [FE] Add batchGroupId param for dataset version creation
Add batchGroupId parameter to dataset item CRUD operations that bypass
draft mode (select all with filters), enabling the backend to create
new versions when the dataset versioning feature flag is enabled.Changes:
- Add generateBatchGroupId utility function to lib/utils.ts
- Update useDatasetItemBatchDeleteMutation to accept and send batchGroupId
- Update useDatasetItemBatchUpdateMutation to accept and send batchGroupId
- Update DatasetItemsActionsPanel to pass batchGroupId for select all delete
- Update AddTagDialog to pass batchGroupId for select all tag updates
The batchGroupId is only sent when isAllItemsSelected is true (operations
using filters instead of specific IDs). These versioned components are only
used when DATASET_VERSIONING_ENABLED feature flag is enabled.- OPIK-3836 invalidate the dataset query
Co-authored-by: GitHub Actions Bot github-actions@comet.com
下载附件