Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
# Backport This will backport the following commits from `main` to `8.x`: - [basic enhancements for import logging (#196056)](#196056) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Kyra Cho","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-01T00:50:21Z","message":"basic enhancements for import logging (#196056)\n\n## Summary\r\nHello, this is a follow up PR to #192234 . The previous PR added\r\nsimplistic logging to the saved objects importer. The goal now is to\r\nenhance the logs with information on the saved objects being imported,\r\nhow they are imported, and by displaying any errors.\r\n\r\n#### `import_saved_objects.ts`:\r\n- Logs specific types being imported\r\n- Logs size limit and overwrite status\r\n- Logs Success/Fail messages\r\n\r\n#### Changes to `saved_objects_importer.ts`:\r\n- Passes the logger to `importSavedObjectsFromStream` \r\n- Removes \"starting import\"\r\n\r\n#### Changes to `import_saved_objects.test.ts`:\r\n- Updates it for the new logger parameter\r\n\r\n#### Changes to `import.test.ts`:\r\n- Uses the mock logger provided by core, instead of using a custom one\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [ ] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)\r\n- [ ] This will appear in the **Release Notes** and follow the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Alejandro Fernández Haro <[email protected]>","sha":"45543a12a6ce7c32d0a14b45a24eccceca23d9d0","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Saved Objects","release_note:skip","💝community","v9.0.0","backport:prev-minor","v8.17.0"],"title":"basic enhancements for import logging","number":196056,"url":"https://github.com/elastic/kibana/pull/196056","mergeCommit":{"message":"basic enhancements for import logging (#196056)\n\n## Summary\r\nHello, this is a follow up PR to #192234 . The previous PR added\r\nsimplistic logging to the saved objects importer. The goal now is to\r\nenhance the logs with information on the saved objects being imported,\r\nhow they are imported, and by displaying any errors.\r\n\r\n#### `import_saved_objects.ts`:\r\n- Logs specific types being imported\r\n- Logs size limit and overwrite status\r\n- Logs Success/Fail messages\r\n\r\n#### Changes to `saved_objects_importer.ts`:\r\n- Passes the logger to `importSavedObjectsFromStream` \r\n- Removes \"starting import\"\r\n\r\n#### Changes to `import_saved_objects.test.ts`:\r\n- Updates it for the new logger parameter\r\n\r\n#### Changes to `import.test.ts`:\r\n- Uses the mock logger provided by core, instead of using a custom one\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [ ] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)\r\n- [ ] This will appear in the **Release Notes** and follow the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Alejandro Fernández Haro <[email protected]>","sha":"45543a12a6ce7c32d0a14b45a24eccceca23d9d0"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196056","number":196056,"mergeCommit":{"message":"basic enhancements for import logging (#196056)\n\n## Summary\r\nHello, this is a follow up PR to #192234 . The previous PR added\r\nsimplistic logging to the saved objects importer. The goal now is to\r\nenhance the logs with information on the saved objects being imported,\r\nhow they are imported, and by displaying any errors.\r\n\r\n#### `import_saved_objects.ts`:\r\n- Logs specific types being imported\r\n- Logs size limit and overwrite status\r\n- Logs Success/Fail messages\r\n\r\n#### Changes to `saved_objects_importer.ts`:\r\n- Passes the logger to `importSavedObjectsFromStream` \r\n- Removes \"starting import\"\r\n\r\n#### Changes to `import_saved_objects.test.ts`:\r\n- Updates it for the new logger parameter\r\n\r\n#### Changes to `import.test.ts`:\r\n- Uses the mock logger provided by core, instead of using a custom one\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [ ] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)\r\n- [ ] This will appear in the **Release Notes** and follow the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Alejandro Fernández Haro <[email protected]>","sha":"45543a12a6ce7c32d0a14b45a24eccceca23d9d0"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Kyra Cho <[email protected]> Co-authored-by: Alejandro Fernández Haro <[email protected]>
- Loading branch information