Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dashboards][Discuss] Returning saved object properties in responses from API #196609

Open
nickpeihl opened this issue Oct 16, 2024 · 3 comments
Open
Labels
discuss Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@nickpeihl
Copy link
Member

There are several saved object metadata properties that we return in the API response. We should decide if/how we want to expose these properties. Because these properties are automatically updated by the saved objects client we only expose these in the response. These properties can not be created or modified by API consumers in requests. The only exception is id which can be optionally specified in the Create endpoint.

  • id
  • type
  • updatedAt
  • createdAt
  • updatedBy
  • createdBy
  • managed
@nickpeihl nickpeihl added discuss Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas labels Oct 16, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@thomasneirynck
Copy link
Contributor

See #158277.

The created/updatesBy properties, while useful in the API should not just bleed through without an explicit mapping.

nickpeihl added a commit to nickpeihl/kibana that referenced this issue Nov 5, 2024
We are tracking this in issue elastic#196609
@thomasneirynck
Copy link
Contributor

Somewhat of a dupe of #197529. I'd merge these tickets under a single "clean up"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

3 participants