Skip to content

Backporting "Samples grid insights panel load in background" - #8018

Open
XingY wants to merge 1 commit into
release26.7-SNAPSHOTfrom
26.7_fb_dashboardInsight
Open

Backporting "Samples grid insights panel load in background"#8018
XingY wants to merge 1 commit into
release26.7-SNAPSHOTfrom
26.7_fb_dashboardInsight

Conversation

@XingY

@XingY XingY commented Sep 3, 2026

Copy link
Copy Markdown
Contributor


try
{
Set<Class<? extends Permission>> read = Collections.singleton(ReadPermission.class);

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.

nit: Consider streaming to an unmodifiable list.

List<Integer> userIds = SecurityManager.getUsersWithPermissions(container, Set.of(ReadPermission.class))
        .stream()
        .map(UserPrincipal::getUserId)
        .toList();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants