-
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
Move more directories into src/legacy #30435
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Pinging @elastic/kibana-platform |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@spalger This is ready for review when you get a chance tomorrow. |
@@ -91,8 +91,7 @@ export class Build { | |||
sourceMap: true, | |||
sourceMapEmbed: true, | |||
includePaths: [ | |||
resolve(__dirname, '../..'), |
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 really the change in this PR that isn't strictly just adjusting paths. The existing sass implementation for plugins allowed importing from anywhere inside src
. I spoke to @tylersmalley about this and we agreed to just let plugin sass import relative to root rather than update this to import from within src/legacy
.
There were a couple reasons for this:
- We can't statically analyze sass, so any sort of bulk updates to paths will need to be done through find/replace. Something more specific like
src/legacy/ui
is much easier to grep for than justui
. - If you don't know exactly where to look, finding this path configuration is challenging since it's just string-based relative paths.
- Why not treat paths a little less magically?
We both also agreed that node_modules should probably be removed as well so folks would need to import those relative root as well, but that felt out of scope of this PR since it wasn't already touching any of those imports.
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.
Changes LGTM, pulled locally and everything ran fine 👍
This commit accompanies the four that precede it. Rather than squash them altogether, the four previous commits all do nothing except move files to help avoid conflicts.
Moves the following directories into src/legacy: src/deprecation -> src/legacy/deprecation src/ui -> src/legacy/ui src/server -> src/legacy/server src/plugin_discovery -> src/legacy/plugin_discovery src/utils -> src/legacy/utils
Moves the following directories into src/legacy: src/deprecation -> src/legacy/deprecation src/ui -> src/legacy/ui src/server -> src/legacy/server src/plugin_discovery -> src/legacy/plugin_discovery src/utils -> src/legacy/utils
💚 Build Succeeded |
There are six commits here, and they will be merged as-is rather than squashed first.
The first five commits perform the following moves:
The final commit cleans up path references across the project into and out of those locations.
This is to support the new platform migration effort, and the target structure as a whole is described in #12466.
Note, I might backport this to 6.7.0. It depends how seamless that turns out to be.