-
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
[Usage Collection] [schema] lens
#77929
Conversation
Pinging @elastic/kibana-telemetry (Team:KibanaTelemetry) |
indexpattern_dimension_operation_max: { type: 'long' }, | ||
indexpattern_dimension_operation_sum: { type: 'long' }, | ||
indexpattern_dimension_operation_count: { type: 'long' }, | ||
indexpattern_dimension_operation_cardinality: { type: 'long' }, |
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 believe you are missing one of the newly added functions, indexpattern_dimension_operation_filters
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.
added here
const suggestionEventsSchema: MakeSchemaFrom<LensUsage['suggestion_events_30_days']> = { | ||
back_to_current: { type: 'long' }, | ||
reload: { type: 'long' }, | ||
position_0_of_5: { type: 'long' }, |
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.
Just removed this one
position_0_of_5: { type: 'long' }, |
|
||
const savedSchema: MakeSchemaFrom<LensUsage['saved_overall']> = { | ||
bar_stacked: { type: 'long' }, | ||
// TODO: Extend this list as we know more visualizationTypes |
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.
The full list is here https://github.com/elastic/telemetry/issues/453
}, | ||
"indexpattern_dimension_operation_cardinality": { | ||
"type": "long" | ||
} |
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.
Same comment about the filters
operation
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.
"type": "long" | ||
}, | ||
"position_0_of_5": { | ||
"type": "long" |
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.
Not valid any more
Thank you @wylieconlon! I've amended the schema. Do you mind taking a second look? |
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.
Approving the Lens-related parts, can't comment on the more general changes
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build SucceededBuild metricsdistributable file count
History
To update your PR or re-run it, just comment with: |
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 if we missed position_0_of_5
in the schema or if it's added in the indexing layer.
Otherwise. LGTM
|
||
const suggestionEventsSchema: MakeSchemaFrom<LensUsage['suggestion_events_30_days']> = { | ||
back_to_current: { type: 'long' }, | ||
reload: { type: 'long' }, |
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.
xpack-phone-home
also has a position_0_of_5
field (type: long) in the suggestion_events_30_days
field.
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.
Wylie asked to remove it because they are not sending it anymore 🙂
@@ -157,6 +165,19 @@ export function getDescriptor(node: ts.Node, program: ts.Program): Descriptor | | |||
return uniqueKinds[0]; | |||
} | |||
|
|||
// Support `type MyUsageType = SomethingElse` |
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.
Personally, I'm not a fan of type aliases but see them often enough to warrant adding support here.
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 agree. The underlying reason to support it is type MyType = Something & SomethingElse
, which definitely has a point 🙂
Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Pinging @elastic/kibana-core (Team:Core) |
Summary
schema
definition to the collectorlens
.type
aliases,&
unions andRecord<string, SOMETHING>
in the@kbn/telemetry-tools
@kbn/telemetry-tools
Related to #70180.
Checklist
Delete any items that are not applicable to this PR.
For maintainers