forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with duplicate references in error object when copying save…
…d objects to space (elastic#200053) Closes elastic#158027 ## Summary Simply dedupes references to objects if they are part of the missing_references in the copy saved objects to SO endpoint ### Notes - Update forEach over SOs to a regular for loop since we had a couple of early exit scenarios - Checks against the set for references already added to the missing list and adds only if not present ------ **Old response: Note the duplicate references** <img width="400" alt="Screenshot 2024-11-14 at 01 52 54" src="https://github.com/user-attachments/assets/67078080-e39d-43b2-bf7c-7abb76866fa4"> **New response** <img width="800" alt="Screenshot 2024-11-14 at 01 50 41" src="https://github.com/user-attachments/assets/776db189-af8c-4522-bb03-f8efbb7cdcd9"> ### Release note Dedupe results from copy saved objects to spaces API when object contains references to other objects. --------- Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
Showing
2 changed files
with
53 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters