Skip to content

[Security Solution][Attacks] Flyout: improving assignees functionality#253729

Merged
agusruidiazgd merged 6 commits intoelastic:mainfrom
agusruidiazgd:feat/attacks-alerts-improve-assignees-flyout
Feb 23, 2026
Merged

[Security Solution][Attacks] Flyout: improving assignees functionality#253729
agusruidiazgd merged 6 commits intoelastic:mainfrom
agusruidiazgd:feat/attacks-alerts-improve-assignees-flyout

Conversation

@agusruidiazgd
Copy link
Copy Markdown
Contributor

Summary

Address this comment implementing a improvement to the assignees functionality on the Attack Details Flyour header

@agusruidiazgd agusruidiazgd self-assigned this Feb 18, 2026
@agusruidiazgd agusruidiazgd requested a review from a team as a code owner February 18, 2026 14:00
@agusruidiazgd agusruidiazgd added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting:Investigations Security Solution Threat Hunting Investigations Team ci:cloud-deploy Create or update a Cloud deployment labels Feb 18, 2026
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@elasticmachine
Copy link
Copy Markdown
Contributor

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

});

const showAssignees = hasPermission && isPlatinumPlus;
const uids = useMemo(() => new Set(assignees), [assignees]);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a great way to get rid of duplicates! 😄

I can see that useBulkGetUserProfiles accepts an array of string, but we are passing a Set at the moment.
Maybe we could wrap the set with a Array.from to make it consistent with what useBulkGetUserProfiles is expecting?

Array.from(new Set(assignees))

What do you think?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hey @NicholasPeretti thanks for your review. I've double check my implementation but it seems that useBulkGetUserProfiles is expecting a Set<string> so the Array.from is giving me type issues. Here is the code

Screenshot 2026-02-18 at 13 33 30

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh my bad... maybe I checked the wrong function or maybe I was on a different branch 😅
Thanks for addressing my comment ☺️

@agusruidiazgd agusruidiazgd enabled auto-merge (squash) February 23, 2026 11:01
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Feb 23, 2026

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 8780 8779 -1

Async chunks

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

id before after diff
securitySolution 11.1MB 11.1MB +61.0B

History

cc @agusruidiazgd

@agusruidiazgd agusruidiazgd merged commit 7c5c404 into elastic:main Feb 23, 2026
16 checks passed
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: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting:Investigations Security Solution Threat Hunting Investigations Team v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants