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

Adding filters not working on saved search (js error) #9269

Closed
tomaszglinski opened this issue Nov 30, 2016 · 8 comments
Closed

Adding filters not working on saved search (js error) #9269

tomaszglinski opened this issue Nov 30, 2016 · 8 comments

Comments

@tomaszglinski
Copy link

Kibana version: 5.0.1 buildNum 14458

Elasticsearch version:

Server OS version:

Browser version: Chrome 54.0.2840.99 m

Browser OS version: Windows 7

Original install method (e.g. download page, yum, from source, etc.):

Description of the problem including expected versus actual behavior:
Cannot add filter by clicking the magnifier icon when opened some saved search.
Same as closed bug #6425. Even the workaround (pinning) works the same

Steps to reproduce:

  1. Open app/kibana, adding filters works fine
  2. Open a saved search, adding filters not working, gettingjs exceptions (for 3 different filters):

commons.bundle.js?v=14458:38 TypeError: Cannot read property '@Version' of undefined
at kibana.bundle.js?v=14458:30
at baseFindIndex (commons.bundle.js?v=14458:1)
at Function. (commons.bundle.js?v=14458:2)
at kibana.bundle.js?v=14458:30
at arrayEach (commons.bundle.js?v=14458:1)
at Function. (commons.bundle.js?v=14458:2)
at Object.filterManager.add (kibana.bundle.js?v=14458:30)
at ChildScope.$scope.filterQuery [as filter] (kibana.bundle.js?v=14458:55)
at fn (eval at compile (commons.bundle.js?v=14458:41), :4:875)
at callback (commons.bundle.js?v=14458:42)(anonymous function) @ commons.bundle.js?v=14458:38

commons.bundle.js?v=14458:38 TypeError: Cannot read property '_id' of undefined
at kibana.bundle.js?v=14458:30
at baseFindIndex (commons.bundle.js?v=14458:1)
at Function. (commons.bundle.js?v=14458:2)
at kibana.bundle.js?v=14458:30
at arrayEach (commons.bundle.js?v=14458:1)
at Function. (commons.bundle.js?v=14458:2)
at Object.filterManager.add (kibana.bundle.js?v=14458:30)
at ChildScope.$scope.filterQuery [as filter] (kibana.bundle.js?v=14458:55)
at fn (eval at compile (commons.bundle.js?v=14458:41), :4:875)
at callback (commons.bundle.js?v=14458:42)(anonymous function) @ commons.bundle.js?v=14458:38(anonymous function) @ commons.bundle.js?v=14458:37$apply @ commons.bundle.js?v=14458:39(anonymous function) @ commons.bundle.js?v=14458:42dispatch @ commons.bundle.js?v=14458:28elemData.handle @ commons.bundle.js?v=14458:28

commons.bundle.js?v=14458:38 TypeError: Cannot read property '@timestamp' of undefined
at kibana.bundle.js?v=14458:30
at baseFindIndex (commons.bundle.js?v=14458:1)
at Function. (commons.bundle.js?v=14458:2)
at kibana.bundle.js?v=14458:30
at arrayEach (commons.bundle.js?v=14458:1)
at Function. (commons.bundle.js?v=14458:2)
at Object.filterManager.add (kibana.bundle.js?v=14458:30)
at ChildScope.$scope.filterQuery [as filter] (kibana.bundle.js?v=14458:55)
at fn (eval at compile (commons.bundle.js?v=14458:41), :4:875)
at callback (commons.bundle.js?v=14458:42)

@tbragin
Copy link
Contributor

tbragin commented Dec 5, 2016

I can't reproduce it on my dataset. Could you provide a sample dataset and Elasticsearch mapping that could help us reproduce?

screen shot 2016-12-05 at 9 23 55 am

@tomaszglinski
Copy link
Author

tomaszglinski commented Dec 7, 2016

Hi,
After trying to clear the browser caches, cookies and so on (didnt work) I opened kibana in incognito mode - for some time it worked properly, but problem started to occur again.
Some time ago we have migrated kibana version to 5 (from 4 I think), but it also should not be the reason since i cleared the cache.

Problem is also not only about adding filters. Also when trying to save modified filter I get again:

TypeError: Cannot read property 'meta' of undefined
at mapFilter (kibana.bundle.js?v=14458:30)
at exports.default (kibana.bundle.js?v=14458:30)
at kibana.bundle.js?v=14458:29
at baseFindIndex (commons.bundle.js?v=14458:1)
at Function. (commons.bundle.js?v=14458:2)
at kibana.bundle.js?v=14458:29
at arrayEach (commons.bundle.js?v=14458:1)
at Function. (commons.bundle.js?v=14458:2)
at mergeStateFilters (kibana.bundle.js?v=14458:29)
at kibana.bundle.js?v=14458:29

A collegue working with the same instance on same browser does not experience any problems...

@Bargs
Copy link
Contributor

Bargs commented Dec 7, 2016

What browser are you on? If Chrome you could try clearing all site data with dev tools:

screen shot 2016-12-07 at 5 54 18 pm

@tomaszglinski
Copy link
Author

tomaszglinski commented Dec 8, 2016

Tried now, didn't help. I use chrome.

@Bargs
Copy link
Contributor

Bargs commented Dec 8, 2016

I knew this sounded familiar... I think you're running into this bug #7246 which will be fixed in 5.1 #8614

I suspect your saved search has a custom filter attached to it?

@tomaszglinski
Copy link
Author

Yes it has. Looking forward to 5.1....

@Bargs
Copy link
Contributor

Bargs commented Dec 9, 2016

Aaaaand 5.1 is out https://www.elastic.co/blog/elastic-stack-5-1-1-released :)

@Bargs Bargs closed this as completed Dec 9, 2016
@tomaszglinski
Copy link
Author

True, also already updated and seems to work. Thanks!

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

No branches or pull requests

3 participants