Commit graph

25 commits

Author SHA1 Message Date
jennypavlova
9291a4f484
[ObsUX][APM] Rename observability setting apmEnableMultiSignal to entityCentricExperience (#188097)
Closes https://github.com/elastic/observability-dev/issues/3731

## Summary

This PR rename `apmEnableMultiSignal` to `entityCentricExperience`

<img width="1834" alt="image"
src="bc8dfcf6-f739-4215-9f68-47345fbdef5e">

Co-authored-by: Katerina <aikaterini.patticha@elastic.co>
2024-07-15 18:41:51 +02:00
Carlos Crespo
d816fdf538
[APM][Serverless] Remove universal profiling setting from Advanced Settings (#187371)
## Summary

Remove the "Enable Universal Profiling integration in APM" setting from
Advanced Settings


Tab not displayed
<img width="1466" alt="image"
src="48c80f8a-5805-4740-9a58-602eddad4576">

Setting not available
<img width="1724" alt="image"
src="1871c6c9-0a6b-454c-b3a5-bbb067eb27d9">


# How to test
- `yarn es serverless --projectType=oblt --clean --no-ssl`
- `yarn start --serverless=oblt --no-ssl`
- Navigate to Advanced Settings
2024-07-03 10:21:26 +02:00
Philippe Oberti
506ff4cbb6
[Security Solution][Expandable flyout] - replace advanced settings with feature flag (#184169) 2024-06-04 10:04:19 -05:00
Sander Philipse
95eb12cc45
[Search] Renaming the search frontend group (#184565)
## Summary

This renames the enterprise-search-frontend group to search-kibana to
better align with what our group actually does.
2024-06-03 13:14:49 -07:00
Ignacio Rivas
a5269144dd
[Advanced settings] Hide Defer loading panels below "the fold" setting (#184090)
Fixes https://github.com/elastic/kibana/issues/183166

## Summary

This small PR hides the previously mentioned setting in serverless and
adds a uiOverride to keep it always disabled too.


##### How to test
* Verify that the setting is disabled and hidden for serverless
* Verify that the setting is still functional for onprem

---------

Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>
2024-05-27 12:05:52 -07:00
Miriam
a495387443
[ObsUX][INFRA] Fix setting id wrong named for new Container View feature flag (#184097)
After the feature flag for the new container view was deployed, we saw
it wasn't working properly.
The feature flag is shown in Infrastructure setting, but not in Advance
Settings in Kibana Management.

The feature flag was incorrectly named in` setting_ids/index` file and
needed to be added to serverless observability settings
2024-05-24 09:23:02 +01:00
Katerina
216ecd774e
[APM] Add advanced setting for enabling multi signal views in APM (#182862)
## Summary

close #182678

key: `observability:apmEnableMultiSignal`


![image](d45a60f2-4d7e-42d8-9a29-2af69bcb0326)
2024-05-08 13:30:30 +03:00
Patryk Kopyciński
0780c19322
Add explicit children types (#181257)
## Summary

Prep work for React@18 bump

tl;dr In React@18 `React.FC` doesn't contain `children` anymore, so in
order to make the bump easier I have decided to split the effort in
multiple faces and hopefully this will make it easier for everyone

This PR focuses only on adding explicit `children` declaration either by
using `React.PropsWithChildren` type or by adding `children:
React.ReactNode` to the existing props types

https://github.com/DefinitelyTyped/DefinitelyTyped/issues/46691

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Sergi Massaneda <sergi.massaneda@gmail.com>
Co-authored-by: Marco Vettorello <marco.vettorello@elastic.co>
Co-authored-by: James Gowdy <jgowdy@elastic.co>
2024-04-29 16:56:41 +01:00
Cauê Marcondes
aff0cf7e3b
[APM][Serverless] Fix missing settings key (#179910)
I missed the serverless settings keys when I created a new settings key
on this [PR](https://github.com/elastic/kibana/pull/179096).

It breaks serverless APM UI when a user tries to enable the fast filter.
<img width="692" alt="Screenshot 2024-04-03 at 09 45 02"
src="66ee785b-a01c-43b0-b23a-13aa8d287a73">
2024-04-03 17:04:55 +01:00
Marco Antonio Ghiani
c8c3f19186
[Logs Explorer] Add settings for Logs Explorer features (#178602)
## 📓 Summary

Closes #177703

This work supports a new Logs Explorer UI setting to customize the data
view patterns which allow to browse data views directly in Logs
Explorer. It's a follow-up work of
https://github.com/elastic/kibana/pull/176078, where we introduced a way
to recognise logs-backed data views and explore their entires without
redirecting to Discover.

The previously hard-coded list of allowed patterns (`logs, auditbeat,
filebeat, winbeat`) is now used as the default value for the UI setting
"**Logs Explorer allowed data views**", where is possible to add more
base patterns or full indices that should be available for exploration
in Logs Explorer.

## 🎥 Demo


b2d43c2d-e0a3-4315-9d4c-be512a01245f

## 👣 Next steps
- Create a dashboard to track the updates on this setting and link it to
the team docs.

---------

Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-03-20 11:55:12 +01:00
Elena Stoeva
dbf017ba31
Rename Management team name in codeowners file (#178626)
The AppEx Management team was recently renamed on GitHub from
`platform-deployment-management` to `kibana-management`. This PR updates
the Codeowners file and all references to the team name.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-03-18 15:46:31 +00:00
Mykola Harmash
b50f5387fc
[Infra] Add endpoints to manage Custom Dashboards (#176612)
Closes https://github.com/elastic/kibana/issues/176069

## Summary

This adds the logic to register a new Saved Object type to store custom
dashboards for Asset Details and adds endpoints to fetch and save custom
dashboards.

Changes highlights:
* Renamed the `enableInfrastructureHostsCustomDashboards` to
`enableInfrastructureAssetCustomDashboards` to make it more generic and
support additional asset types in the future
* Added a new Saved Object type
* Moved initialization of all Infra endpoints to plugin's `start`. This
one one of the points on [the BE tech debt
ticket](https://github.com/elastic/kibana/issues/175975). Having
endpoint initialization in `start` makes it more convenient to access
start dependencies which almost all endpoints require.
* Added `savedObjectClient` and `uiSettingsClient` to the custom request
context (also one of the ideas for endpoints improvement). Right now
infra endpoints use custom `libs` object with all dependencies required
for routes, the idea is to rely on the request context instead because
it automatically available for every route handler and by default
includes some useful things like scoped service clients.
* Added a wrapper `handleRouteErrors` to avoid error handling
duplication which we now have in a few routes. In the future we could do
something similar right within `registerRoutes` framework function, but
this would require a bit of refactoring.

## Hot to Test

1. Toggle the UI setting off in Advanced Settings
![CleanShot 2024-02-13 at 16 01
36@2x](fc3772a1-a075-42bd-bdc3-2c7e83278844)
2. Go to the Dev Tools and try the endpoints, both should respond with
403
```
GET kbn:api/infra/custom-dashboards/host

POST kbn:api/infra/custom-dashboards
{
  "assetType": "host",
  "dashboardIdList": ["0", "1"]
}
```
3. Toggle the UI setting on
4. Try the endpoints again, now they should work as expected

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-02-22 11:56:33 +01:00
Pablo Machado
582de679c0
[SecuritySolution] Add asset criticality advanced setting to serverless (#176991)
## Summary

Adds the asset criticality setting to the list of settings displayed on
the serverless.
2024-02-19 03:27:35 -07:00
Rodney Norris
05555d0bce
[Dev Tools] Introduce UI setting for Docked Console (#176414)
## Summary

Introduce a new UI setting to allow users to disable the "Docked
Console" aka the EmbeddableConsole from the console plugin. This console
is currently used on Search pages and Index Management pages for 8.13,
and will be added to more pages in future releases.

### Screenshots

![image](c8b7ed8a-8695-486d-aef5-d403ea4d4547)

### 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/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-02-08 14:34:13 -06:00
Mykola Harmash
069e6f8bc7
[Infra] Add Host Details Dashboard advanced setting (#176143)
Closes https://github.com/elastic/kibana/issues/176068

## Summary

This adds a new Advanced setting to toggle custom dashboards in Hosts
view.

![CleanShot 2024-02-02 at 13 12
54@2x](b81e8f03-3358-471a-9d20-85156d89186a)
2024-02-05 11:28:42 -08:00
Luke G
62f873a90e
[Security Solution][Serverless] Cold and frozen tier toggle for analy… (#173638)
…zer settings

## Summary

This enables missing security solution setting in serverless offering,
as per https://github.com/elastic/security-docs/issues/4387 . I did not
realize that we have a separate config entry for the SLS listing
available options there.
2023-12-20 06:13:35 -07:00
Pierre Gayvallet
04b93f92cc
flag more packages without side effects (#173602)
## Summary

Follow-up of https://github.com/elastic/kibana/pull/173351

`-1.8MB` more on async chunks
2023-12-20 13:17:18 +01:00
Paul Bianciardi
c72d4d3372
Update new codeowners for Obs team changes (#170182)
Updates new teams as codeowners for Observability team changes.

Also took the opportunity to:
- Delete some paths that no longer exist
- Split infra code ownership between teams (from #168992)
2023-11-08 14:30:17 +00:00
Devin W. Hurley
d7dc3345bd
[Security Solution] [Detections] Enables alert expandable flyout and alert tags options in the advanced settings for serverless (#170158)
Enables alert expandable flyout and alert tags options in the advanced
settings for serverless

Expandable flyout:
<img width="1472" alt="enable_alert_flyout"
src="3d22f96d-553d-4907-9fdf-8a474c02ebc2">

Alert tagging settings:
<img width="1502" alt="alert_tags"
src="a1472f10-f757-4357-b8fd-6fbdd6bf307c">
2023-11-01 14:55:21 -04:00
Mykola Harmash
e804ef2dc8
[ObsUX] Enable Hosts advanced setting on serverless (#170035)
Closes https://github.com/elastic/kibana/issues/169198

## Summary

* Adds Hosts advanced setting to the observability settings allowlist
* Adds tests for Hosts sidenav item visibility


3c9252c8-a4cb-4da8-aa60-23a8aeb60d4c

# How to test

* Run locally in serverless mode
* Make sure "Observability Hosts view" toggle is visible on the Advanced
Settings screen
* Toggle the setting on and off, make sure sidenav properly reacts to
the changes
* Go to Infra settings screen
* Toggle the same setting on and off, and also make sure sidenav
properly reacts to the changes
2023-10-30 11:49:47 +01:00
Elena Stoeva
cfddceeafd
[Serverless] [Advanced Settings] Remove storeInSessionStorage setting (#168725)
Closes https://github.com/elastic/kibana/issues/168480

## Summary

This PR removes the `storeInSessionStorage` setting from the serverless
common settings allowlist, so that the setting is hidden from Advanced
Settings in all serverless projects.

**How to test:**
1. Start Es with `yarn es serverless` and Kibana with `yarn
serverless-{es/oblt/security}`
2. Go to Management -> Advanced Settings
3. Verify that the setting is not on the page.
2023-10-13 18:48:19 +01:00
Yuliia Naumenko
679716d0b1
Security solution newsfeed for Serverless (#168737)
Bringing back security newsfeed for serverless project
2023-10-12 14:19:28 -07:00
Giorgos Bamparopoulos
08c3902c57
[APM] Add APM settings to allowlist for serverless (#167165)
`uiSettings` need to be included to an allowlist to work on Serverless.
This PR adds the APM settings to that list.

### Before

b176cd95-f31d-4403-bc76-190e722c85e6

### After

d29dca3e-a182-47f2-96b9-6887593578e2

Closes https://github.com/elastic/kibana/issues/167119
2023-10-06 16:39:23 +01:00
Elena Stoeva
e2fb10522e
[Advanced settings] Add settings allowlist (#164471)
Addresses https://github.com/elastic/kibana/issues/160411

## Summary

This PR adds functionality for filtering out advanced settings that are
not relevant for serverless.

For context, we need to build an Advanced settings page in serverless
which only contains a set of the existing settings. We will reuse the
section registry (https://github.com/elastic/kibana/pull/163502) from
the original Advanced settings plugin as well as its UI components which
will also be extracted into a separate package. The app will be
registered from inside the `serverless` plugin.

In order to only display the settings that are relevant for serverless,
we need to make some changes to the uiSettings service. The
implementation in this PR leverages the existing `readonly` uiSettings
param and adds the `setAllowlist()` method which is called by the
serverless plugin to set an allowlist of setting keys.

**Testing in serverless:**
1. Set `advanced_settings.enabled: true` to enable the Advanced settings
app in serverless:
5b216c6ea9/config/serverless.yml (L53)
2. Start Es with `yarn es serverless --ssl` and Kibana with `yarn
serverless-{mode} --ssl` in any serverless mode.
3. Navigate to `app/management/kibana/settings`
4. Verify that the app only displays the settings from
`packages/serverless/settings/common/index.ts` (these are the settings,
relevant for all projects in serverless) as well as the settings from
the corresponding project package
`packages/serverless/settings/{mode}_project/index.ts`.
5. Verify that the app is functioning correctly.

**Testing in self-managed:**
1. Start Es with `yarn es snapshot` and Kibana with `yarn start`.
2. Go to Stack Management > Advanced settings
3. Verify that all settings are displayed as usual.
4. Verify that the app is functioning correctly.

If your team is a code owner of any of the serverless project plugins,
please review the corresponding package
`packages/serverless/settings/{search/observanility/security}_project/index.ts`
where you've been added as an owner and test in the serverless solution
accordingly.


<!---
### Checklist

Delete any items that are not applicable to this PR.

- [ ] 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/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [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
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.

When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:

| Risk | Probability | Severity | Mitigation/Notes |

|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces&mdash;unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes&mdash;Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |

-->

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2023-09-11 21:12:53 +01:00
Clint Andrew Hall
8e37b38417
[serverless] Create the Serverless Plugin (#155582)
> Derived from https://github.com/elastic/kibana/pull/153274 for
production.

## Summary

This PR creates the `serverless` plugin for Kibana Serverless projects.


![image](https://user-images.githubusercontent.com/297604/233892935-b3713575-a2f7-4e82-a9dd-e8c11823683f.png)


It uses the methodology proven out in the proof-of-concept
(https://github.com/elastic/kibana/pull/153274) and prepares it for
production:

- Adds chrome style and related API to the `chrome` services.
- Creates the `serverless` plugin.
- Invokes the new chrome style API for all serverless projects.
- Alters `yarn` scripts to support all project types, and switching
between them.
- Creates the new "Project Switcher" component for use in the new chrome
header for Serverless.
- Creates a Storybook config for this and future components.
- Adds API endpoint to trigger project switching and `Watcher` restarts.

<img width="1598" alt="Screenshot 2023-04-26 at 10 44 01 AM"
src="https://user-images.githubusercontent.com/297604/234612654-fdcf38ea-8c48-4066-bc85-507f40c984aa.png">


## Next steps

- [x] Creating a PR for enabling/disabling related plugins for
Serverless. (https://github.com/elastic/kibana/pull/155583)
- [ ] Creating product plugin PR based on
https://github.com/elastic/kibana/pull/153274.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-04-26 11:48:23 -07:00