Skip to content

Conversation

@bartoval
Copy link
Contributor

@bartoval bartoval commented Aug 5, 2025

Summary

This PR is part of #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
4

  1. use kibana servless oblt( Editor not show CHANGE POINT suggestion)

yarn serverless-oblt and yarn es serverless --projectType oblt

3

@bartoval bartoval self-assigned this Aug 5, 2025
@bartoval bartoval requested a review from a team as a code owner August 5, 2025 07:40
@bartoval
Copy link
Contributor Author

bartoval commented Aug 5, 2025

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?

@bartoval bartoval added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana t// v9.2.0 labels Aug 5, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-esql (Team:ESQL)

Copy link
Contributor

@stratoula stratoula left a 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 {
Copy link
Contributor

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

Copy link
Contributor Author

@bartoval bartoval Aug 5, 2025

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

Copy link
Contributor Author

@bartoval bartoval Aug 5, 2025

Choose a reason for hiding this comment

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

Copy link
Contributor

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

Copy link
Contributor

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 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same

Copy link
Contributor Author

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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Same

Copy link
Contributor Author

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 {
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

see comment above

@bartoval bartoval force-pushed the esql_add_observability_tier_check branch from a3a9448 to fbe9339 Compare August 5, 2025 12:58
@bartoval bartoval requested a review from stratoula August 5, 2025 13:20
Copy link
Contributor

@stratoula stratoula left a 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?

@bartoval
Copy link
Contributor Author

bartoval commented Aug 5, 2025

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)

@stratoula
Copy link
Contributor

Makes sense!

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #46 / Journey[cloud_security_dashboard] "before all" hook for "Go to cloud security dashboards Page"

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/esql-validation-autocomplete 33 34 +1
@kbn/monaco 192 193 +1
total +2

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
esql 260.6KB 260.7KB +51.0B
onechat 707.6KB 707.6KB +20.0B
total +71.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
kbnUiSharedDeps-srcJs 3.8MB 3.8MB +262.0B
Unknown metric groups

API count

id before after diff
@kbn/esql-validation-autocomplete 34 35 +1
@kbn/monaco 192 193 +1
total +2

References to deprecated APIs

id before after diff
@kbn/esql-editor 0 3 +3

cc @bartoval

@bartoval bartoval merged commit da36805 into elastic:main Aug 5, 2025
12 checks passed
delanni pushed a commit to delanni/kibana that referenced this pull request Aug 5, 2025
## 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>
@wildemat wildemat mentioned this pull request Aug 7, 2025
10 tasks
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Aug 18, 2025
## 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>
@bartoval bartoval deleted the esql_add_observability_tier_check branch November 6, 2025 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:ES|QL ES|QL related features in Kibana release_note:skip Skip the PR/issue when compiling release notes Team:ESQL ES|QL related features in Kibana t// v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants