-
Notifications
You must be signed in to change notification settings - Fork 8.5k
remove Private from timefilter lib #19651
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
Conversation
💔 Build Failed |
|
jenkins, test this |
💚 Build Succeeded |
stacey-gammon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. code review + pulled it down and played around with it. Visualizations updated with a change in time. Manually stepped through to investigate whether the logic change would have an impact and doesn't seem like it.
| return true; | ||
| } | ||
| } else { | ||
| return !_.isEqual(rangeA, rangeB); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This technically is different than the old code (I think anyway) because angular.equals doesn't care about variables on an object that start with $. But playing around with it, it doesn't seem to ever matter, so I think it's okay to change this. It actually seems pretty weird to ever fall in here anyway - only seems to be the case if either rangeA or rangeB are undefined.
spalger
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, pulled it down and seems things are working great. Updating the time via the time picker, modifying the URL, dragging & clicking on a vis all work as expected. 👍
6fd47fe to
2739e0c
Compare
💔 Build Failed |
|
jenkins, test this |
💚 Build Succeeded |
Part of moving Kibana's global timepicker to react will require migrating the timefilte from an angular service to a singleton. In order to avoid making a giant PR, this PR is just one phase in that migration. This PR removes
Privatefrom timefilter/lib and migrates mocha tests to jest.