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

Create upselling package and implement EntityAnalytics serverless upselling #164136

Merged
merged 11 commits into from
Aug 24, 2023

Conversation

machadoum
Copy link
Member

@machadoum machadoum commented Aug 17, 2023

UX: https://github.com/elastic/security-team/issues/7310

Summary

  • It creates an Upselling package to share the service and components between ESS and Serverless plugins
  • It implements upselling for entity analytics on serverless by replicating the ESS approach

ESS
Screenshot 2023-08-17 at 13 34 59

Serverless
Screenshot 2023-08-17 at 13 39 25

We are not displaying the upgrade button because we still don't know how to link to the cloud settings page.

@machadoum machadoum changed the title Create Upselling package to share the service and components between … Create Upselling package and implement EntityAnalytics serverless upselling Aug 17, 2023
@machadoum machadoum force-pushed the siem-explore-entity-analytics-plg branch 2 times, most recently from bc9f753 to 661fa4d Compare August 17, 2023 11:08
@machadoum machadoum self-assigned this Aug 17, 2023
@machadoum machadoum added Team:Threat Hunting Security Solution Threat Hunting Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting:Explore release_note:skip Skip the PR/issue when compiling release notes labels Aug 17, 2023
@machadoum machadoum changed the title Create Upselling package and implement EntityAnalytics serverless upselling Create upselling package and implement EntityAnalytics serverless upselling Aug 17, 2023
@machadoum machadoum marked this pull request as ready for review August 17, 2023 13:31
@machadoum machadoum requested review from a team as code owners August 17, 2023 13:31
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)


export const UPGRADE_PRODUCT_MESSAGE = (requiredProduct: string) =>
i18n.translate('securitySolutionPackages.entityAnalytics.paywall.upgradeProductMessage', {
defaultMessage: 'Entity Analytics is available with {requiredProduct} subscriptions',
Copy link
Contributor

Choose a reason for hiding this comment

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

We should not use the word "subscription" in serverless

Suggested change
defaultMessage: 'Entity Analytics is available with {requiredProduct} subscriptions',
defaultMessage: 'Update your project features with {requiredProduct}',

Copy link
Member Author

Choose a reason for hiding this comment

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

It is aligned with the design on this ticket: https://github.com/elastic/security-team/issues/7310
@SourinPaul @craig-abbott Could you please consider this comment and provide a new copy?

I would suggest Entity risk scoring is available with SIEM Complete tier but I am unsure if the user would understand.

Copy link
Contributor

@stephmilovic stephmilovic left a comment

Choose a reason for hiding this comment

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

LGTM, tested locally and all works as expected. Only comments are to update any serverless language to not use the word "subscription". Nice work @machadoum

@machadoum machadoum force-pushed the siem-explore-entity-analytics-plg branch 2 times, most recently from 7e948de to df25491 Compare August 21, 2023 12:26
@SourinPaul
Copy link

Only comments are to update any serverless language to not use the word "subscription". Nice work @machadoum

@machadoum Since you need to close this, I recommend the following:

Entity risk scoring capability is available in our SIEM Complete license tier.....

Btw, I noticed that PLU worksheet refers to SIEM Essentials/ Complete as Security Essentials/ Complete.

@machadoum machadoum force-pushed the siem-explore-entity-analytics-plg branch from d7b4c40 to 68ed0ce Compare August 24, 2023 07:16
@machadoum machadoum enabled auto-merge (squash) August 24, 2023 07:16
Copy link
Contributor

@gergoabraham gergoabraham left a comment

Choose a reason for hiding this comment

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

defend workflows related changes LGTM 🚀

@machadoum machadoum force-pushed the siem-explore-entity-analytics-plg branch from cd72067 to f5282ef Compare August 24, 2023 09:50
Copy link
Contributor

@dasansol92 dasansol92 left a comment

Choose a reason for hiding this comment

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

Changes under /management LGTM!

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolutionServerless 410 413 +3

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
securitySolution 129 109 -20

Async chunks

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

id before after diff
securitySolution 15.7MB 15.7MB +6.2KB
securitySolutionEss 42.0KB 42.4KB +409.0B
securitySolutionServerless 249.3KB 266.2KB +16.9KB
total +23.4KB

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
@kbn/security-solution-upselling - 1 +1

Page load bundle

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

id before after diff
securitySolutionEss 8.0KB 8.2KB +142.0B
securitySolutionServerless 38.0KB 38.4KB +330.0B
total +472.0B
Unknown metric groups

API count

id before after diff
securitySolution 195 175 -20

async chunk count

id before after diff
securitySolutionServerless 35 36 +1

ESLint disabled line counts

id before after diff
@kbn/security-solution-upselling - 1 +1
securitySolutionEss 6 5 -1
securitySolutionServerless 34 32 -2
total -2

miscellaneous assets size

id before after diff
securitySolutionServerless 740.5KB 2.9MB ⚠️ +2.2MB

Total ESLint disabled count

id before after diff
@kbn/security-solution-upselling - 1 +1
securitySolutionEss 6 5 -1
securitySolutionServerless 34 32 -2
total -2

History

  • 💔 Build #153037 failed cd720673b0c91122b5be51642b00b22c71e32972
  • 💔 Build #153033 failed 7f5353dafba6eb6fe2b90b144a7413d13767affd
  • 💛 Build #151866 was flaky d7b4c40ea3e5f48953d04c2097d351b471494df0
  • 💛 Build #151751 was flaky 7e948de8ee672f4cf25a9d1c55899c187dbfaf96
  • 💚 Build #151481 succeeded 8162fb7288f0c255bd8a9f5d106cf9949d549d2a

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

cc @machadoum

@machadoum machadoum merged commit 7564479 into elastic:main Aug 24, 2023
@kibanamachine kibanamachine added v8.11.0 backport:skip This commit does not require backporting labels Aug 24, 2023
jloleysens added a commit that referenced this pull request Aug 24, 2023
* main: (3152 commits)
  [Security Solution][Detection Engine] fixes 410 error on index legacy template call (#164682)
  [SavedObjects] Create serverless roots for jest integration tests (#164157)
  Create upselling package and implement EntityAnalytics serverless upselling (#164136)
  [Fleet] Change 'Out-of-date' to 'Outdated policy' in agent list table (#164673)
  [IndexManagement] Use internal base path for API (#164665)
  [Profiling] removing ~ symbol (#164595)
  [Telemetry] Fetch snapshot: allow specifying the version via querystring (#164670)
  [Cases] Show warning when all cases table reaches 10k cases message (#164323)
  [ML] Removing token list from text expansion model testing (#164560)
  [Fleet] Add secrets package API integration test (#164583)
  [Fleet] Fix security solution tag id (#164582)
  [Security Solution] Modal says "duplicating 0 rules" when you duplicate an individual rule (#163908)
  [api-docs] 2023-08-24 Daily api_docs build (#164658)
  [APM] Cleanup alerting api tests (#164438)
  Upgrade EUI to 87.2.0 (#164385)
  [ML] Fix query bar autocompletion for ML and AIOps embeddables (#164485)
  [Fleet] Fix flaky unit test for the details page (#164641)
  [Security Solution] update codeowner for serverless security subdir (#164640)
  [Security Solution] Fixes Assistant Connector and Actions RBAC Flow (#164382)
  [Discover] Removing large string truncation from doc viewer (#164236)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting:Explore Team:Threat Hunting Security Solution Threat Hunting Team v8.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants