-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete src/legacy/ui/public folder #76085
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apm changes lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code owner changes are testing mocks only.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removal of unneeded ui/new_platform
and ui/i18n
mocks from ES UI Jest tests LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maps lgtm! Thanks for the clean up 🙇
- Code review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
25k LOC less 🥳. KibanaApp code owner review, just test files were modified, LGTM, didn't test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Canvas changes lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Security changes LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Operations LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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/public
folder, that is no longer used by any code.src/legacy/ui/public
jest.mock('ui/XXX')
usages in test filesui/*
moduleNameMapper from jest configs"ui/*"
from tsconfig's pathsCapabilities
fromcore/types
instead ofui/capabilities