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

[Usage Collection] [schema] static_telemetry #77902

Merged

Conversation

afharo
Copy link
Member

@afharo afharo commented Sep 18, 2020

Summary

Add schema definition to the collector static_telemetry.

Related to #70180.

For maintainers

@afharo afharo requested a review from a team as a code owner September 18, 2020 14:33
@elasticmachine
Copy link
Contributor

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

@afharo
Copy link
Member Author

afharo commented Sep 21, 2020

@elasticmachine merge upstream

@afharo
Copy link
Member Author

afharo commented Sep 23, 2020

@elasticmachine merge upstream

@afharo
Copy link
Member Author

afharo commented Sep 23, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

distributable file count

id value diff baseline
default 45868 +1 45867
oss 26616 +1 26615
total +2

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@@ -60,10 +61,12 @@ export function isFileReadable(path: string): boolean {
* @param configPath The config file path.
* @returns The unmodified JSON object if the file exists and is a valid YAML file.
*/
export async function readTelemetryFile(path: string): Promise<object | undefined> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using configPath rather than path now matches the function description, thanks for making them consistent. We could have gone either way here, either updating the param as is the case here or changing the description.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for noticing. I decided on the configPath side because path matches the 'path' library (and I tend to avoid it as a variable when possible).

Copy link
Contributor

@TinaHeiligers TinaHeiligers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@afharo afharo merged commit 88b03d9 into elastic:master Sep 24, 2020
@afharo afharo deleted the usage_collection/schema/static_telemetry branch September 24, 2020 09:49
afharo added a commit that referenced this pull request Sep 24, 2020
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@lukeelmers lukeelmers added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Oct 1, 2021
@elasticmachine
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Telemetry release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants