kibana/x-pack/plugins/infra/server/utils
Sandra G ea7ae45028
[Infra UI] Removed unused saved object attribute and unused source configuration code (#169430)
Resolves https://github.com/elastic/kibana/issues/168240

### Changes

- Removes `fields.message` from the `infrastructure-ui-source` saved
object who's value was being populated by
`xpack.infra.sources.default.fields.message` from config. See
https://www.elastic.co/guide/en/kibana/master/logs-ui-settings-kb.html
- Removes `getInternalSourceConfiguration` and
`defineInternalSourceConfiguration` functions introduced in
https://github.com/elastic/kibana/pull/36066 as I cannot see them being
used anywhere. Stops exposing `defineInternalSourceConfiguration` as
part of server plugin interface.
- Removes `getStaticDefaultSourceConfiguration` from InfraSources class
as we aren't using `sources` from kibana config in source configuration
anymore.
- Removes deprecations warning of removal in 8.0 for other fields
belonging to config xpack.infra.sources.* introduced in
https://github.com/elastic/kibana/pull/115103
- Removes `getAllSourceConfigurations` used only in removed deprecations
file
f427278322 (diff-081721894fc437938eb652beae0a0640ddeee532ec5e48af1f3093c8074f1eecL195)
- Removed `getAllSavedSourceConfigurations` only used in
`getAllSourceConfigurations`

### How to test 
- `infrastructure-ui-source` saved object no longer has `fields`
attributes
- in kibana.yml set `xpack.infra.sources.default.fields.message:
['testmessage', '@testmessage']`
  - go to Infra -> Settings
  - Change the name and save the form
- view the `infrastructure-ui-source` saved object and no `fields`
attribute should exist (unless it previously existed in an already
existing `infrastructure-ui-source` saved object
- changes do not affect`fields.message` is used in logs_shared plugin
- i'm not sure how to easily test this and relying on someone with more
Logs knowledge to help out, but from what I can see logs accesses the
config directly (`xpack.infra.sources.default.fields.message`) and never
uses the saved object field being removed.
2023-11-07 11:54:32 +00:00
..
calculate_metric_interval.ts [apm][infra] remove infra dependency from apm (#167531) 2023-11-02 16:28:32 +02:00
create_afterkey_handler.ts rename @elastic/* packages to @kbn/* (#138957) 2022-08-18 08:54:42 -07:00
elasticsearch_runtime_types.ts [Logs Shared] Move LogStream and LogView into new shared plugin (#161151) 2023-07-05 10:30:28 +02:00
get_all_composite_data.ts
get_all_metrics_data.ts
get_original_action_group.ts [Response Ops] Onboard metric threshold rule type to use framework alerts as data (#166664) 2023-10-18 12:09:23 -04:00
map_source_to_log_view.test.ts [Infra UI] Removed unused saved object attribute and unused source configuration code (#169430) 2023-11-07 11:54:32 +00:00
map_source_to_log_view.ts [Logs Shared] Move LogStream and LogView into new shared plugin (#161151) 2023-07-05 10:30:28 +02:00
README.md
request_context.ts
round_timestamp.ts
serialized_query.ts
typed_elasticsearch_mappings.ts

Utils should be data processing functions and other tools.... all in all utils is basicly everything that is not an adaptor, or presenter and yet too much to put in a lib.