Skip to content

[Security assistant] Remove feature flag to enable conversation sharing#234100

Merged
stephmilovic merged 10 commits intoelastic:mainfrom
stephmilovic:sharing_release
Sep 11, 2025
Merged

[Security assistant] Remove feature flag to enable conversation sharing#234100
stephmilovic merged 10 commits intoelastic:mainfrom
stephmilovic:sharing_release

Conversation

@stephmilovic
Copy link
Copy Markdown
Contributor

@stephmilovic stephmilovic commented Sep 4, 2025

Summary

  • Remove feature flag to enable conversation sharing in serverless
  • Removes color differentiation on the conversation list item share icons. Now icons are the default color (black) regardless of if the conversation was shared with the user or by the user
  • Makes adjustments for the cypress tests to work in serverless

Merge requirements

Docs update: elastic/docs-content#2903

@stephmilovic stephmilovic added the release_note:skip Skip the PR/issue when compiling release notes label Sep 4, 2025
@stephmilovic stephmilovic requested review from a team as code owners September 4, 2025 20:44
@stephmilovic stephmilovic added backport:skip This PR does not require backporting Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. ci:cloud-deploy Create or update a Cloud deployment Team:Security Generative AI Security Generative AI v9.2.0 labels Sep 4, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

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

Copilot AI review requested due to automatic review settings September 4, 2025 21:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the feature flag controlling conversation sharing functionality in the security assistant, making the feature permanently available in both ESS and serverless environments. The primary changes include removing all references to the isAssistantSharingEnabled feature flag and updating Cypress tests to work properly in serverless environments.

Key changes:

  • Complete removal of the isAssistantSharingEnabled feature flag and related conditional logic
  • Removal of color differentiation for conversation share icons (now all icons use default color)
  • Updates to Cypress tests to properly handle user authentication and test scenarios in serverless environments

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
shared_conversations.cy.ts Updated Cypress tests to remove serverless skip tags, simplified user handling, and removed conditional logic for serverless vs ESS testing
config.ts Removed feature flag override for assistant sharing in Cypress configuration
use_assistant_availability.ts Removed feature flag import and isAssistantSharingEnabled property from the hook
index.ts (kbn-elastic-assistant) Removed isAssistantSharingEnabled property from UseAssistantAvailability interface
types.tsx Removed isAssistantSharingEnabled property from AssistantAvailability interface
index.tsx (assistant) Removed isAssistantSharingEnabled prop passing to child components
index.tsx (conversation_sidepanel) Removed isAssistantSharingEnabled prop and related conditional logic
conversation_list_item.tsx Removed feature flag dependency, color differentiation for icons, and conditional rendering of context menu
conversation_list_item.test.tsx Updated test to remove isAssistantSharingEnabled prop
index.tsx (assistant_header) Removed isAssistantSharingEnabled prop and conditional rendering of ShareSelectModal
index.test.tsx (assistant_header) Updated tests to remove isAssistantSharingEnabled prop usage
kbn_elastic_assistant.devdocs.json Updated API documentation to remove isAssistantSharingEnabled references

Comment on lines +289 to +295
const loginSecondaryUser = (isServerless: boolean, username: string) => {
if (isServerless) {
loginWithUser({ username, password: 'changeme' });
} else {
login(username);
}
);
};
Copy link

Copilot AI Sep 4, 2025

Choose a reason for hiding this comment

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

The hardcoded password 'changeme' is a security concern. Consider using environment variables or a more secure credential management approach for test environments.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

@e40pud e40pud left a comment

Choose a reason for hiding this comment

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

This is awesome! Tested locally and did not notice any weirdness 🚀

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Sep 11, 2025

💚 Build Succeeded

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/elastic-assistant 175 173 -2

Async chunks

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

id before after diff
securitySolution 10.5MB 10.5MB -148.0B

Page load bundle

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

id before after diff
elasticAssistant 301.5KB 301.0KB -593.0B
Unknown metric groups

API count

id before after diff
@kbn/elastic-assistant 209 207 -2

History

@stephmilovic stephmilovic merged commit 9b3bc19 into elastic:main Sep 11, 2025
12 checks passed
KodeRad pushed a commit to KodeRad/kibana that referenced this pull request Sep 15, 2025
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Sep 24, 2025
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 ci:cloud-deploy Create or update a Cloud deployment release_note:skip Skip the PR/issue when compiling release notes Team:Security Generative AI Security Generative AI Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants