-
Notifications
You must be signed in to change notification settings - Fork 680
Closed
Labels
Description
Describe the bug
When adding an example to two or more datasets, the metadata in the datasets table is wrong. The right number of examples that the datasets contain is not accurate, and netiher is the last edited date.
To Reproduce
Steps to reproduce the behavior:
- Go to the traces table.
- Click on any trace record.
- Click
Add to dataseet - Select two or more datasets to add the example to.
- Click
Viewin the snackbar. - See the wrong information in the datasets that you added the example to (they are the first in the table). Pay close attention to the
examplesandlast editedcolumns. The information is not accurate.
Expected behavior
It should show the right metadata: number or examples on the dataset, the right last edited date for all, etc.
Screenshots
https://github.com/user-attachments/assets/c68a5ace-bea2-44af-887c-bf2ef4e33a53
Additional context
The problem seems to be the switchMap in the updateEvalDataset method as that operator cancels the previous request. mergeMap seems to be more appropiate in this situation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done