-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[ES|QL] Add observability tier check for commands #230500
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
[ES|QL] Add observability tier check for commands #230500
Conversation
|
I used the serverless observability mode, but I had to manually configure several components like Elastic permissions for docker and add data sources using Minikube or RabbitMQ. Is this setup the intended workflow for a manual test? |
|
Pinging @elastic/kibana-esql (Team:ESQL) |
stratoula
left a comment
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 looks nice, some comments about the types duplication mostly
| * License v3.0 only", or the "Server Side Public License, v 1". | ||
| */ | ||
|
|
||
| export interface PricingProductSecurity { |
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.
Why don't you import them from here rather than redeclaring them? src/core/packages/pricing/common/src/types.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.
This is the same case we did for the license types to avoid installing new packages in tsconfig.json. We decided to redeclare types
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.
For the autocomplete package it makes sense to import from pricing (which is a small package) rather the other way around
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.
Also the other case was in the scripts, here is actual code, these types should not belong at the esql-types package.
| product_lines: Array<'ai_soc' | 'endpoint' | 'cloud'>; | ||
| } | ||
|
|
||
| export interface PricingProductObservability { |
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
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.
see comment above
| tier: 'complete' | 'logs_essentials'; | ||
| } | ||
|
|
||
| export type PricingProduct = PricingProductSecurity | PricingProductObservability; |
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
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.
see comment above
|
|
||
| export type { ESQLLicenseType, ESQLSignatureLicenseType, ESQLLicenseResult } from './src/license'; | ||
|
|
||
| export type { |
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.
No these do not belong here, they are already declared in the pricing package so we have to import them from there
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.
see comment above
a3a9448 to
fbe9339
Compare
stratoula
left a comment
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.
Awesome! LGTM! Functions in a separate PR right Valerio?
yes at this point I continue to separate function and command PRs, even if the changes are minimal (there are no tiers on signature) |
|
Makes sense! |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
References to deprecated APIs
cc @bartoval |
## Summary This PR is part of elastic#216791 add observability tier check for commands example: 1) use kibana in local ( Editor does not show CHANGE POINT suggestion) `yarn start` and `yarn es snapshot --license trial ` <img width="1663" height="418" alt="4" src="https://github.com/user-attachments/assets/f13dc0bb-685e-4a46-8f65-3735424bea1f" /> 2) use kibana servless oblt( Editor not show CHANGE POINT suggestion) `yarn serverless-oblt` and `yarn es serverless --projectType oblt` <img width="1591" height="538" alt="3" src="https://github.com/user-attachments/assets/64e59e9d-c98b-412d-8980-5e4e56dc11ad" /> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
## Summary This PR is part of elastic#216791 add observability tier check for commands example: 1) use kibana in local ( Editor does not show CHANGE POINT suggestion) `yarn start` and `yarn es snapshot --license trial ` <img width="1663" height="418" alt="4" src="https://github.com/user-attachments/assets/f13dc0bb-685e-4a46-8f65-3735424bea1f" /> 2) use kibana servless oblt( Editor not show CHANGE POINT suggestion) `yarn serverless-oblt` and `yarn es serverless --projectType oblt` <img width="1591" height="538" alt="3" src="https://github.com/user-attachments/assets/64e59e9d-c98b-412d-8980-5e4e56dc11ad" /> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Summary
This PR is part of #216791
add observability tier check for commands
example:
yarn startandyarn es snapshot --license trialyarn serverless-obltandyarn es serverless --projectType oblt