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

[POC] Dashboard filter by user #179034

Closed
wants to merge 2 commits into from
Closed

Conversation

Dosant
Copy link
Contributor

@Dosant Dosant commented Mar 20, 2024

Summary

Part of https://github.com/elastic/kibana-team/issues/769

This is a poc for adding filters by author on the dashboard listing page.

Here is the demo:

poc.filter.by.user.mov

I'll write up a doc to discuss the poc and the implementation.

In this POC:

  • added created_by to the base saved object interface.
  • created_by is passed as a CreateOptions from outside, but with adding security apis to core, in the actual implementation core could take care of populating it from inside [Security into Core] expose authc.getCurrentUser from core.security #177976
  • user filter UI uses existing UserProfilesPopover component 👍
  • the POC is using security.userProfiles.suggest to show the list of users (not only the ones that have a dashboard 👎)
  • The username from the search query is using security.userProfiles.suggest to look up the user id to execute the search

@Dosant Dosant closed this May 3, 2024
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.

1 participant