kibana/config
Marco Antonio Ghiani b40b89e711
[Logs UI] Redirect Logs UI to Discover when in serverless mode (#154145)
## 📓 Summary

Closes #153890

The implementation creates a new LogsApp service where we should keep
any logic concerned with what `target_app` parameter is configured and
the actions related to a specific configuration. I thought it could be a
good approach to avoid drilling down the global config till we need it
and keep it cleaner by injecting only the service with predefined
actions.

In this first case, we create a redirect to discover using its locator,
and the exposed method can be used anywhere across the app for
triggering the redirect.

## 🧪 Testing

### Normal behaviour

When Kibana is used as always, we want to keep the current behaviour and
the user will stay on the Logs UI pages.
- Launch the Kibana dev environment with `yarn start`
- Navigate to Logs UI
- Verify the navigation works normally and that no redirect to Discover
occurs

### Serverless behaviour

When Kibana is used in serverless mode, we want to redirect any user
landing to Logs UI to the Discover page, configuring the same data view
or creating an ad-hoc one starting from the index pattern
- Launch the Kibana dev environment with `yarn serverless-oblt`
- Navigate to Logs UI
- Verify to be redirected to Discover and a temporary data view is
created from the current index pattern

---------

Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-04-19 08:30:45 -07:00
..
kibana.yml [Unified Search] Move autocomplete logic to unified search plugin (#129977) 2022-04-22 11:02:56 +05:00
node.options Bump node to 16.11.1 (#110684) 2021-10-16 16:21:58 -05:00
README.md [serverless] split serverless config files (#150616) 2023-02-08 13:28:47 -07:00
serverless.es.yml [serverless] split serverless config files (#150616) 2023-02-08 13:28:47 -07:00
serverless.oblt.yml [Logs UI] Redirect Logs UI to Discover when in serverless mode (#154145) 2023-04-19 08:30:45 -07:00
serverless.security.yml [serverless] split serverless config files (#150616) 2023-02-08 13:28:47 -07:00
serverless.yml [Logs UI] Redirect Logs UI to Discover when in serverless mode (#154145) 2023-04-19 08:30:45 -07:00

as work on serverless picks up we will add config values to these files that define how Kibana will run in "serverless" modes. To start Kibana locally with this configuration, pass --serverless={mode} or run yarn serverless-{mode}

valid modes are currently: es, oblt, and security

configuration is applied in the following order, later values override

  1. kibana.yml
  2. serverless.yml
  3. serverless.{mode}.yml
  4. kibana.dev.yml
  5. serverless.dev.yml
  6. serverless.{mode}.dev.yml