When clicking left index pattern item in discover dataset modal, it will use find to get all index patterns and use bulk_get to get all reference data sources in returned index patterns. If one of these data sources is dissociated with current workspace, non dashboard admin user wouldn't have access to this object and bulk_get request would fail because of ACL which would cause the modal always be in loading state.
Index pattern list page uses find to find all available data sources and uses response to match index pattern reference for data source connection state, so it will work normally in this case.
For availability, discover dataset modal should use find to get data sources instead of bulk_get to keep consistent with index pattern page.
To Reproduce
Steps to reproduce the behavior:
Use dashboard admin to create a workspace, associate data source and create index patterns.
Dissociate the data source.
Non dashboard admin user would see this error when in discover data set modal.
Expected behavior
Discover data set modal should display currently available index patterns for all kinds users.
Describe the bug
When clicking left index pattern item in discover dataset modal, it will use
find
to get all index patterns and usebulk_get
to get all reference data sources in returned index patterns. If one of these data sources is dissociated with current workspace, non dashboard admin user wouldn't have access to this object and bulk_get request would fail because of ACL which would cause the modal always be in loading state.Index pattern list page uses
find
to find all available data sources and uses response to match index pattern reference for data source connection state, so it will work normally in this case.For availability, discover dataset modal should use
find
to get data sources instead ofbulk_get
to keep consistent with index pattern page.To Reproduce Steps to reproduce the behavior:
Expected behavior Discover data set modal should display currently available index patterns for all kinds users.