Skip to content
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

Migrate away from request package in kibana_usage_collection plugin #109202

Closed
azasypkin opened this issue Aug 19, 2021 · 9 comments · Fixed by #110439
Closed

Migrate away from request package in kibana_usage_collection plugin #109202

azasypkin opened this issue Aug 19, 2021 · 9 comments · Fixed by #110439
Assignees
Labels
chore Feature:Telemetry Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@azasypkin
Copy link
Member

The request package has been deprecated long ago: request/request#3142. The last release was in 2018 (!!!) and new ones aren't planned (including security patches). We should do our best to get rid of this package completely as soon as we can.

It seems CloudService is the only non-test consumer of this package.

We're (Platform Security) are going to update all tests that still rely on this package, but we'll need your help to migrate CloudService.

Thanks!

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-telemetry (Team:KibanaTelemetry)

@mshustov
Copy link
Contributor

@azasypkin As I understand there is no deadline? Can it wait until after v8.0 release?

@azasypkin
Copy link
Member Author

@azasypkin As I understand there is no deadline? Can it wait until after v8.0 release?

Yep, there is no deadline, v8.0 sounds reasonable to me. But as usual the sooner the better and we'll need to backport this update to 7.x anyway.

@azasypkin
Copy link
Member Author

Sent PR that removes request package from all tests in Kibana: #109225

@mshustov mshustov added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Aug 26, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@mshustov
Copy link
Contributor

Sent PR that removes request package from all tests in Kibana

Considering kibana_usage_collection is the last consumer of the package, we should remove the library from the dependency list in package.json

@azasypkin
Copy link
Member Author

Considering kibana_usage_collection is the last consumer of the package, we should remove the library from the dependency list in package.json

Yep, that was the goal! 🙂

@lukeelmers
Copy link
Member

If we are already doing this cleanup, we should look at #96711 and evaluate whether it is worth the effort to tackle both issues at the same time. (Removing request was already one of the items outlined in that issue).

IMO this issue takes priority, but if some of the other tasks can be done without too much effort, it would be an easy win.

@mshustov
Copy link
Contributor

@lukeelmers added both to Next column to take in work in the next sprint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Feature:Telemetry Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants