Skip to content

[* As Code] Use PUT for upserts#260318

Merged
nreese merged 21 commits intoelastic:mainfrom
nreese:issue_260047
Apr 1, 2026
Merged

[* As Code] Use PUT for upserts#260318
nreese merged 21 commits intoelastic:mainfrom
nreese:issue_260047

Conversation

@nreese
Copy link
Copy Markdown
Contributor

@nreese nreese commented Mar 30, 2026

Closes #260047

Created #260606 as a follow on to consolidate meta schemas and helper functions into a package.

dashboard route changes:

  • Removes id URL parameter from POST route
  • Adds upsert to PUT route
  • Uses asCodeIdSchema for params.id in PUT route

markdown route changes:

  • Removes id URL parameter from POST route
  • Adds upsert to PUT route
  • Uses asCodeIdSchema for params.id in PUT route
  • Replaces markdown panel copy with markdown library item. Panel is a dashboard concept. Markdown as code CRUD API deals with library items - not panels

asCodeIdSchema changes:

  • removes maybe wrapper
  • removes derived type AsCodeId. Not used anywhere and just a string

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Mar 30, 2026

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Mar 30, 2026

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Mar 30, 2026

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Mar 30, 2026

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Mar 30, 2026

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Mar 30, 2026

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Mar 30, 2026

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Mar 31, 2026

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Mar 31, 2026

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Mar 31, 2026

/ci

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Mar 31, 2026

/ci

@nreese nreese marked this pull request as ready for review March 31, 2026 16:30
@nreese nreese requested review from a team as code owners March 31, 2026 16:30
@nreese nreese requested a review from a team as a code owner March 31, 2026 16:30
@nreese nreese added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Project:Dashboards API v9.4.0 labels Mar 31, 2026
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/as-code-shared-schemas 2 1 -1
Unknown metric groups

API count

id before after diff
@kbn/as-code-shared-schemas 2 1 -1

History

@nickpeihl nickpeihl self-requested a review April 1, 2026 13:54
Copy link
Copy Markdown
Contributor

@nickpeihl nickpeihl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! presumably lens will update their apis in a separate PR?

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Apr 1, 2026

presumably lens will update their apis in a separate PR?

Right. I am only fixing presentation owned APIs in this effort.

@nreese nreese merged commit f33f24c into elastic:main Apr 1, 2026
19 checks passed
mbondyra added a commit to mbondyra/kibana that referenced this pull request Apr 1, 2026
…heck

* commit '6f040b29a5220ce12886a9731f656613e50aff06': (34 commits)
  [Entity Analytics] Add entity resolution UI to service flyout (elastic#260504)
  [Dashboard] Fix setState in embeddables (elastic#260082)
  [EDR Workflows] Unskip FTR tests that failed due to transient Fleet service unavailability (elastic#260519)
  [Observability:Streams] Fix query streams error handling test (elastic#260777)
  [Alerting v2] Dispatcher grouping modes, throttle strategies, and matcher autosuggestion (elastic#260249)
  [Dashboard] State extraction as a consistent override (elastic#259839)
  [Alerting v2] [Rule authoring] Fix rule name validation and error visibility in create/edit flow (elastic#260337)
  [Fix] re-introduce sln breadcrumbs to unified rules (elastic#260289)
  [Security Solution][Endpoint] Updated kibana docs to include `xpack.securitySolution.maxEndpointScriptFileSize` as configurable in cloud (elastic#260568)
  [Alerting v2] updated the alerting-v2-constants package with artifacts constants, fix to the runbook max characters (elastic#260342)
  [Automatic Import V2] Provide user tooltips (elastic#260725)
  [One Workflow] Deduplicate step types by base type in workflow list (elastic#260763)
  [Security Solution] Execution results UI: Enable the feature flag (elastic#260711)
  [Metrics][Discover] internal/search/esql_async returns 200 but METRICS_INFO responds with error (elastic#260746)
  Collapse redundant anyOf/oneOf array unions in OAS query params (elastic#260585)
  [Unified rules] Hide stack rules from global search (elastic#260088)
  [Agent Builder] Sidebar navigation updates (elastic#260728)
  [* As Code] Use PUT for upserts (elastic#260318)
  Update EUI to v114.0.0 (elastic#259497)
  [Entity Resolution] Add contextual-security-apps as co-owner of resolution paths (elastic#260659)
  ...

# Conflicts:
#	src/platform/plugins/shared/dashboard/public/index.ts
eokoneyo pushed a commit to davismcphee/kibana that referenced this pull request Apr 2, 2026
Closes elastic#260047

Created elastic#260606 as a follow on
to consolidate meta schemas and helper functions into a package.

dashboard route changes:
* Removes `id` URL parameter from POST route
* Adds upsert to PUT route
* Uses `asCodeIdSchema` for params.id in PUT route

markdown route changes:
* Removes `id` URL parameter from POST route
* Adds upsert to PUT route
* Uses `asCodeIdSchema` for params.id in PUT route
* Replaces `markdown panel` copy with `markdown library item`. `Panel`
is a dashboard concept. Markdown as code CRUD API deals with library
items - not panels

asCodeIdSchema changes:
* removes `maybe` wrapper
* removes derived type AsCodeId. Not used anywhere and just a string

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
paulinashakirova pushed a commit to paulinashakirova/kibana that referenced this pull request Apr 2, 2026
Closes elastic#260047

Created elastic#260606 as a follow on
to consolidate meta schemas and helper functions into a package.

dashboard route changes:
* Removes `id` URL parameter from POST route
* Adds upsert to PUT route
* Uses `asCodeIdSchema` for params.id in PUT route

markdown route changes:
* Removes `id` URL parameter from POST route
* Adds upsert to PUT route
* Uses `asCodeIdSchema` for params.id in PUT route
* Replaces `markdown panel` copy with `markdown library item`. `Panel`
is a dashboard concept. Markdown as code CRUD API deals with library
items - not panels

asCodeIdSchema changes:
* removes `maybe` wrapper
* removes derived type AsCodeId. Not used anywhere and just a string

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Project:Dashboards API release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[* As Code] Use PUT for upserts

6 participants