Kibana: Dashboard only user cannot paginate on saved searches

Created on 26 Oct 2018  路  6Comments  路  Source: elastic/kibana

_Originally reported in the discuss forums_

Kibana version: master

When adding a saved search to a dashboard, a dashboard only user is unable to see the pagination labels & buttons:

Left side: dashboard only user
Right side: full user

__To Reproduce__:

  1. Create a saved search.
  2. Add saved search to a dashboard & save the dashboard.
  3. Create a dashboard only user:

    • In Management > Security > Roles, create a custom role with read privileges on the relevant indices

    • In Management > Security > Users, create a new user with 2 roles: kibana_dashboard_only_user, and the custom role you just created.

  4. Log in as dashboard only user and note the absence of pagination in the saved search.
Dashboard KibanaApp Security bug

Most helpful comment

Yes, thanks @simpleuser99! Just one note, for anyone putting up a PR, I think the import should go somewhere in the saved search embeddable file, not dashboard_listing.js. I think it should still fix the problem, and the import then is closer to where it's actually needed. I ran into what I think is the same issue when trying to embed saved searches inside canvas and I had to add the ui/pager import in the embeddable files to get it to work.

All 6 comments

cc @elastic/kibana-security @elastic/kibana-app

Who has idea how to fast fix this bug. When I do edit kibana code?

+1

I found how to solve the problem.
I go to edit src/core_plugins/kibana/public/dashboard/listing/dashboard_listing.js and add

import 'ui/pager_control';
import 'ui/pager';

After line 23.

That's great @simpleuser99 - thanks for investigating! I'd be happy to review that change for you if you're willing to put it in a PR... if not, I should be able to open one sometime soon.

Yes, thanks @simpleuser99! Just one note, for anyone putting up a PR, I think the import should go somewhere in the saved search embeddable file, not dashboard_listing.js. I think it should still fix the problem, and the import then is closer to where it's actually needed. I ran into what I think is the same issue when trying to embed saved searches inside canvas and I had to add the ui/pager import in the embeddable files to get it to work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cff3 picture cff3  路  83Comments

bquartier picture bquartier  路  79Comments

stacey-gammon picture stacey-gammon  路  74Comments

seti123 picture seti123  路  100Comments

rashidkpc picture rashidkpc  路  116Comments