[dashboard] update dashboard CRUD APIs to accept and return tags as an array of tag saved object ids#233541
Merged
nreese merged 10 commits intoelastic:mainfrom Sep 23, 2025
Merged
[dashboard] update dashboard CRUD APIs to accept and return tags as an array of tag saved object ids#233541nreese merged 10 commits intoelastic:mainfrom
nreese merged 10 commits intoelastic:mainfrom
Conversation
Contributor
Author
|
/ci |
Contributor
Author
|
@elasticmachine merge upstream |
Contributor
Author
|
/ci |
Contributor
Author
|
/ci |
Contributor
Author
|
/ci |
Contributor
Author
|
/ci |
Contributor
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
Contributor
Author
|
@elasticmachine merge upstream |
ThomThomson
approved these changes
Sep 4, 2025
Contributor
ThomThomson
left a comment
There was a problem hiding this comment.
Great work & cleanup. It's good to keep the code clean by removing features that aren't in the main value-path. I'm especially happy with the fact that the transform can be synchronous now.
| references: soReferences, | ||
| error: transformDashboardError, | ||
| } = await transformDashboardIn({ | ||
| } = transformDashboardIn({ |
Contributor
There was a problem hiding this comment.
Hopefully we can keep this synchronous from now on!
| }); | ||
|
|
||
| // TODO - remove once all references are provided server side | ||
| const nonTagIncomingReferences = incomingReferences.filter( |
Contributor
There was a problem hiding this comment.
Good to keep these separately!
|
|
||
| import { transformTagsIn } from './transform_tags_in'; | ||
|
|
||
| describe('transformTagsIn', () => { |
Contributor
💚 Build Succeeded
Metrics [docs]
History
|
CAWilson94
pushed a commit
to CAWilson94/kibana
that referenced
this pull request
Sep 24, 2025
…n array of tag saved object ids (elastic#233541) Part of elastic#216346 elastic#214788 updated dashboard CRUD API read `attributes.tags` as an array of tag names and write `attributes.tags` as an array of tag names. Returning `attributes.tags` as an array of tag names breaks the link between the tag saved object. Instead, `attributes.tags` should be an array of tag ids. elastic#214788 updated dashboard CRUD API with a side effect where if a tag saved object did not exist for a tag name, then a tag saved object would be created for the tag name. APIs should not have side effects like this. This PR updates dashboard CRUD API read `attributes.tags` as an array of tag ids and write `attributes.tags` as an array of tag ids to avoid breaking the link between tag saved objects. The PR also removes the ability for the dashboard CRUD APIs to create tag saved objects. --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
niros1
pushed a commit
that referenced
this pull request
Sep 30, 2025
…n array of tag saved object ids (#233541) Part of #216346 #214788 updated dashboard CRUD API read `attributes.tags` as an array of tag names and write `attributes.tags` as an array of tag names. Returning `attributes.tags` as an array of tag names breaks the link between the tag saved object. Instead, `attributes.tags` should be an array of tag ids. #214788 updated dashboard CRUD API with a side effect where if a tag saved object did not exist for a tag name, then a tag saved object would be created for the tag name. APIs should not have side effects like this. This PR updates dashboard CRUD API read `attributes.tags` as an array of tag ids and write `attributes.tags` as an array of tag ids to avoid breaking the link between tag saved objects. The PR also removes the ability for the dashboard CRUD APIs to create tag saved objects. --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
rylnd
pushed a commit
to rylnd/kibana
that referenced
this pull request
Oct 17, 2025
…n array of tag saved object ids (elastic#233541) Part of elastic#216346 elastic#214788 updated dashboard CRUD API read `attributes.tags` as an array of tag names and write `attributes.tags` as an array of tag names. Returning `attributes.tags` as an array of tag names breaks the link between the tag saved object. Instead, `attributes.tags` should be an array of tag ids. elastic#214788 updated dashboard CRUD API with a side effect where if a tag saved object did not exist for a tag name, then a tag saved object would be created for the tag name. APIs should not have side effects like this. This PR updates dashboard CRUD API read `attributes.tags` as an array of tag ids and write `attributes.tags` as an array of tag ids to avoid breaking the link between tag saved objects. The PR also removes the ability for the dashboard CRUD APIs to create tag saved objects. --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #216346
#214788 updated dashboard CRUD API read
attributes.tagsas an array of tag names and writeattributes.tagsas an array of tag names. Returningattributes.tagsas an array of tag names breaks the link between the tag saved object. Instead,attributes.tagsshould be an array of tag ids.#214788 updated dashboard CRUD API with a side effect where if a tag saved object did not exist for a tag name, then a tag saved object would be created for the tag name. APIs should not have side effects like this.
This PR updates dashboard CRUD API read
attributes.tagsas an array of tag ids and writeattributes.tagsas an array of tag ids to avoid breaking the link between tag saved objects. The PR also removes the ability for the dashboard CRUD APIs to create tag saved objects.