kibana/src
Kyra Cho 45543a12a6
basic enhancements for import logging (#196056)
## Summary
Hello, this is a follow up PR to #192234 . The previous PR added
simplistic logging to the saved objects importer. The goal now is to
enhance the logs with information on the saved objects being imported,
how they are imported, and by displaying any errors.

#### `import_saved_objects.ts`:
- Logs specific types being imported
- Logs size limit and overwrite status
- Logs Success/Fail messages

#### Changes to `saved_objects_importer.ts`:
- Passes the logger to `importSavedObjectsFromStream` 
- Removes "starting import"

#### Changes to `import_saved_objects.test.ts`:
- Updates it for the new logger parameter

#### Changes to `import.test.ts`:
- Uses the mock logger provided by core, instead of using a custom one

### Checklist

- [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
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)
- [ ] This will appear in the **Release Notes** and follow the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2024-10-31 19:50:21 -05:00
..
cli Improve stack traces in dev mode (#195916) 2024-10-18 17:35:08 +02:00
cli_encryption_keys Updated js-yaml to v4 (#190678) 2024-09-19 12:25:03 +02:00
cli_health_gateway Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
cli_keystore Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
cli_plugin Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
cli_setup Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
cli_verification_code Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
core basic enhancements for import logging (#196056) 2024-10-31 19:50:21 -05:00
dev Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to 7082adc (main) (#198500) 2024-10-31 09:26:35 -05:00
plugins [Dashboard] fix Export CSV doesnt work (#198547) 2024-10-31 10:37:51 -06:00
setup_node_env Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00