[Security assistant] Remove feature flag to enable conversation sharing#234100
[Security assistant] Remove feature flag to enable conversation sharing#234100stephmilovic merged 10 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
There was a problem hiding this comment.
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
isAssistantSharingEnabledfeature 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 |
| const loginSecondaryUser = (isServerless: boolean, username: string) => { | ||
| if (isServerless) { | ||
| loginWithUser({ username, password: 'changeme' }); | ||
| } else { | ||
| login(username); | ||
| } | ||
| ); | ||
| }; |
There was a problem hiding this comment.
The hardcoded password 'changeme' is a security concern. Consider using environment variables or a more secure credential management approach for test environments.
e40pud
left a comment
There was a problem hiding this comment.
This is awesome! Tested locally and did not notice any weirdness 🚀
.../security/test/security_solution_cypress/cypress/e2e/ai_assistant/shared_conversations.cy.ts
Show resolved
Hide resolved
.../security/test/security_solution_cypress/cypress/e2e/ai_assistant/shared_conversations.cy.ts
Show resolved
Hide resolved
.../security/test/security_solution_cypress/cypress/e2e/ai_assistant/shared_conversations.cy.ts
Outdated
Show resolved
Hide resolved
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
|
Summary
Merge requirements
Docs update: elastic/docs-content#2903