Delete src/legacy/ui/public folder#76085
Conversation
|
Pinging @elastic/kibana-platform (Team:Platform) |
| npSetup.plugins.visualizations.createReactVisualization({ | ||
| name: 'self_changing_vis', | ||
| title: 'Self Changing Vis', |
There was a problem hiding this comment.
Remains from before this test plugin was migrated to KP. The file was unused (the test component is now registered from test/plugin_functional/plugins/kbn_tp_custom_visualizations/public/plugin.ts)
|
|
||
| const indexPattern = new StubIndexPattern( | ||
| 'logstash-*', | ||
| (cfg) => cfg, | ||
| 'time', | ||
| fields, | ||
| npSetup.core | ||
| ); | ||
| const indexPattern = new StubIndexPattern('logstash-*', (cfg) => cfg, 'time', fields, { | ||
| uiSettings: uiSettingSetupMock, | ||
| }); | ||
|
|
There was a problem hiding this comment.
This is the only actual code change of the PR. The StubIndexPattern is only accessing uiSettings API, so I created an inline mock to replace the '../legacy/ui/public/new_platform/new_platform.karma_mock' import.
|
Pinging @elastic/apm-ui (Team:apm) |
lizozom
left a comment
There was a problem hiding this comment.
Code owner changes are testing mocks only.
LGTM.
cjcenizal
left a comment
There was a problem hiding this comment.
Removal of unneeded ui/new_platform and ui/i18n mocks from ES UI Jest tests LGTM.
kindsun
left a comment
There was a problem hiding this comment.
Maps lgtm! Thanks for the clean up 🙇
- Code review
kertal
left a comment
There was a problem hiding this comment.
25k LOC less 🥳. KibanaApp code owner review, just test files were modified, LGTM, didn't test
cchaos
left a comment
There was a problem hiding this comment.
Thanks. SASS changes LGTM 👍
💚 Build SucceededBuild metricsasync chunks size
History
To update your PR or re-run it, just comment with: |
* delete src/legacy/ui/public folder
* remove jest.mock('ui/XXX'); from tests
* adapt stubbedLogstashIndexPatternService
* remove delete keys from translation files
* fix types import with Capabilities
* remove legacy test utils
* remove dead file referencing ui/newPlatform
* move saved-object-finder styles to timelion plugin
# Conflicts:
# src/legacy/ui/public/new_platform/new_platform.test.mocks.ts
# src/legacy/ui/public/new_platform/new_platform.ts
# src/test_utils/public/no_digest_promises.js
# x-pack/plugins/snapshot_restore/__jest__/client_integration/home.test.ts
# x-pack/plugins/snapshot_restore/__jest__/client_integration/policy_edit.test.ts
# x-pack/plugins/snapshot_restore/__jest__/client_integration/repository_add.test.ts
# x-pack/plugins/snapshot_restore/__jest__/client_integration/repository_edit.test.ts
* Delete src/legacy/ui/public folder (#76085) * delete src/legacy/ui/public folder * remove jest.mock('ui/XXX'); from tests * adapt stubbedLogstashIndexPatternService * remove delete keys from translation files * fix types import with Capabilities * remove legacy test utils * remove dead file referencing ui/newPlatform * move saved-object-finder styles to timelion plugin # Conflicts: # src/legacy/ui/public/new_platform/new_platform.test.mocks.ts # src/legacy/ui/public/new_platform/new_platform.ts # src/test_utils/public/no_digest_promises.js # x-pack/plugins/snapshot_restore/__jest__/client_integration/home.test.ts # x-pack/plugins/snapshot_restore/__jest__/client_integration/policy_edit.test.ts # x-pack/plugins/snapshot_restore/__jest__/client_integration/repository_add.test.ts # x-pack/plugins/snapshot_restore/__jest__/client_integration/repository_edit.test.ts * fix 7.x code * restore legacy docLinks file
All in title. Delete the
src/legacy/ui/publicfolder, that is no longer used by any code.src/legacy/ui/publicjest.mock('ui/XXX')usages in test filesui/*moduleNameMapper from jest configs"ui/*"from tsconfig's pathsCapabilitiesfromcore/typesinstead ofui/capabilities