-
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
Remove data_enhanced
plugin
#122075
Remove data_enhanced
plugin
#122075
Conversation
@elasticmachine merge upstream |
1d61349
to
83640bc
Compare
@elasticmachine merge upstream |
@@ -154,6 +154,19 @@ | |||
} | |||
} | |||
}, | |||
"search-session": { |
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.
@elastic/telemetry this config was moved from x-pack to oss. Is it safe to do? Is there anything else to be aware of?
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.
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.
yup! all good! I don't think it changes the resulting output :)
}, | ||
"include": [ | ||
"src/core/server/index.ts", | ||
"src/core/public/index.ts", | ||
"src/plugins/data/server/index.ts", |
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.
After moving the code from data_enhanced
to data
this type generation for docs stopped working because data
now references code from x-pack (task_manager, security) and this changed the output folder structure of this types.
Since we don't use these types for app services plugins generation anymore, I just removed them. I added the rootDir
to preserve the previous file tree output structure.
@@ -19,4 +19,7 @@ export const autocompleteConfigDeprecationProvider: ConfigDeprecationProvider = | |||
renameFromRoot('kibana.autocompleteTimeout', 'data.autocomplete.valueSuggestions.timeout', { | |||
level: 'warning', | |||
}), | |||
renameFromRoot('xpack.data_enhanced.search.sessions', 'data.search.sessions', { |
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.
session config has to be changed
- @Dosant to allowlist in cloud
@elasticmachine merge upstream |
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 changes LGTM and things seem to be working properly (even having sessions from master & then checking out this PR).
checkPersistedCompletedSessionExpiration | ||
); | ||
|
||
this.setupCompleted = true; |
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.
I'm not sure I understand why this is now necessary. Could you explain?
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.
Mostly a precaution, because task_manager plugin is optional, we have to handle a code branch where search_service doesn't have access to task_manager and it can't initialize session_service:
kibana/src/plugins/data/server/search/search_service.ts
Lines 159 to 165 in 1bdbafe
if (taskManager) { | |
this.sessionService.setup(core, { taskManager, security }); | |
} else { | |
// this should never happen in real world, but | |
// taskManager and security are optional deps because they are in x-pack | |
this.logger.debug('Skipping sessionService setup because taskManager is not available'); | |
} |
This makes it possible so that setup is never called and I wanted a clear error in case start is called by mistake in this case
data: DataPublicPluginStart; | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface StartPlugins {} |
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.
Was this unused?
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.
Yes
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.
Response Ops 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 Solution 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.
Infra 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.
LGTM
…/kibana into d/2021-12-22-remove-data-enhanced
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.
LGTM
@@ -154,6 +154,19 @@ | |||
} | |||
} | |||
}, | |||
"search-session": { |
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.
yup! all good! I don't think it changes the resulting output :)
@elasticmachine merge upstream |
Pinging @elastic/kibana-app-services (Team:AppServicesSv) |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💛 Build succeeded, but was flakyMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
async chunk count
ESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
Unreferenced deprecated APIs
History
To update your PR or re-run it, just comment with: |
Code moved into `data` plugin
Summary
Close #119321
This pr removes the
data_enhanced
plugin and moves its code to thedata
pluginThe
_enhanced
plugins were created as a license workaround which is no longer needed and we can clean it up.Most of the moved code is search-sessions code. That code moved to
data
plugin anddata
plugin now has to depend onsecurity
andtask_manager
(src plugins can depend on x-pack plugins as an optional dep). In some places this dependency created circular dependencies which were fixed by fixing the dependence to be ondataViews
plugin instead ofdata
plugin.Risk Matrix
For maintainers
Release notes
xpack.data_enhanced.*
kibana.yml config params are deprecated anddata.*
counterparts should be used instead