kibana/.buildkite
Nick Partridge 17c2556fc6
[Lens] Add internal CRUD api routes (#223296)
## Summary

This adds basic Lens CRUD api routes using the Content Management
system.

| Operation | URI |
|--------|--------|
| Create | `POST api/lens/visualizations` |
| Get | `GET api/lens/visualizations/{id}` |
| Search | `GET api/lens/visualizations?query=test` |
| Update | `PUT api/lens/visualizations/{id}` |
| Delete | `DELETE api/lens/visualizations/{id}` |

### Changes to Lens Content Management

The custom `update` method uses `soClient.create` under the hood for
reasons (i.e. #160116). However, doing this acts as an update or create
method with the provided `id`. I changed this behavior so now any update
where the id is not found will return a `404` error.

Closes #221941
Closes #221942 - OpenAPI docs auto generate from route schema

### Testing

You can testing this locally in kibana dev console like so...

```
GET kbn:/api/lens/visualizations/<id>?apiVersion=1
```

> The `apiVersion` query param is needed to test `internal` api routes.

## Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marco Vettorello <marco.vettorello@elastic.co>
2025-06-25 20:01:35 +01:00
..
hooks [Ops] Refactor env loading & fix agent-targeting rewrite (#178320) 2024-03-12 16:31:26 +01:00
pipeline-resource-definitions Renovate helper pipeline (#224152) 2025-06-25 10:35:37 -06:00
pipeline-utils [ci] Bump jest disk to 80gb (#221116) 2025-05-21 08:08:56 -05:00
pipelines Renovate helper pipeline (#224152) 2025-06-25 10:35:37 -06:00
scripts Renovate helper pipeline (#224152) 2025-06-25 10:35:37 -06:00
.mocharc.json [CI] Move kibana-buildkite-library into kibana (#134787) 2022-06-28 13:19:05 -04:00
.npmrc [CI] Move kibana-buildkite-library into kibana (#134787) 2022-06-28 13:19:05 -04:00
disabled_jest_configs.json [Index Management] Fix broken jest tests (#173029) 2023-12-18 17:21:28 +01:00
ftr_base_serverless_configs.yml [FTR] add feature flags configs for deployment-agnostic tests (#222371) 2025-06-04 15:57:03 +02:00
ftr_chat_serverless_configs.yml [Config stripUnknowns] Skip compatible mode when running in CI (#217536) 2025-04-14 17:52:51 +02:00
ftr_configs_manifests.json [workchat] Initial FTR test setup (#216828) 2025-04-09 10:31:12 +02:00
ftr_oblt_serverless_configs.yml [Observability] [Serverless] Introduce custom roles (#219861) 2025-06-13 22:03:49 -04:00
ftr_oblt_stateful_configs.yml [Observability] [Serverless] Introduce custom roles (#219861) 2025-06-13 22:03:49 -04:00
ftr_platform_stateful_configs.yml [Lens] Add internal CRUD api routes (#223296) 2025-06-25 20:01:35 +01:00
ftr_search_serverless_configs.yml [ftr] split svl common configs with 4 extra groups (#218415) 2025-04-16 11:34:55 -05:00
ftr_search_stateful_configs.yml [Search][Playground] View Saved Playground (#223062) 2025-06-18 21:58:57 +02:00
ftr_security_serverless_configs.yml [ska] relocate x-pack/test/osquery_cypress (#225104) 2025-06-25 10:12:35 +02:00
ftr_security_stateful_configs.yml [ska] relocate x-pack/test/cases_api_integration (#225056) 2025-06-25 18:04:29 +01:00
package-lock.json [On-Week] Automate chromium linux builds for reporting in Kibana (#212674) 2025-05-06 22:04:08 +02:00
package.json [On-Week] Automate chromium linux builds for reporting in Kibana (#212674) 2025-05-06 22:04:08 +02:00
pull_requests.json Renovate helper pipeline (#224152) 2025-06-25 10:35:37 -06:00
README.md [CI] Move kibana-buildkite-library into kibana (#134787) 2022-06-28 13:19:05 -04:00
scout_ci_config.yml chore(streams): add scout test for wired and classic stream (#220295) 2025-05-23 08:37:51 -04:00
tsconfig.json fix(NA): adds pipeline-resource-definitions/fix-location-collection.ts into a tsconfig 2024-04-04 15:16:01 +01:00
tsconfig.test.json [CI] Move kibana-buildkite-library into kibana (#134787) 2022-06-28 13:19:05 -04:00

Kibana / Buildkite

Directory Structure

  • hooks - special directory used by Buildkite agents for hooks
  • pipeline-utils - Shared TypeScript utils for use in pipeline scripts
  • pipelines - contains pipeline definitions
  • scripts/common - scripts that get sourced by other scripts to set environment variables or import shared functions
  • scripts/lifecycle - general scripts for tasks that run before or after individual steps or the entire build
  • scripts/steps - scripts that define something that will run for a step defined in a pipeline
  • scripts/* - all other scripts are building blocks that make up the tasks in pipelines. They may be run by other scripts, but should not be sourced