-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ZEPPELIN-866] Hotfix - does not working search box on navbar. #911
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
| $scope.search = function() { | ||
| $location.url(/search/ + $scope.searchTerm); | ||
| $scope.search = function(searchTerm) { | ||
| console.log('search term ', searchTerm); |
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.
Can you remove console.log from here.
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.
@prabhjyotsingh oh, Thank you!
|
If we use |
|
@prabhjyotsingh |
|
Or that is also broken for |
|
@prabhjyotsingh Okay, i will look to this issue. |
|
@prabhjyotsingh |
|
@prabhjyotsingh |
|
Thanks for hotfix, but do we know why it stopped working in the first place? \cc @felizbear for review as well |
|
I tesed and working well. but it seems need a "initial statement". |
| <form role="search" | ||
| style="width: 300px; display: inline-block; margin: 0 10px" | ||
| ng-submit="search()"> | ||
| ng-submit="search(searchTerm)"> |
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.
i definitely like passing the argument to search instead of taking it from the $scope 👍
|
@astroshim Thank you for feed back. |
|
@cloverhearts I agree with @astroshim. I think he was saying that when the result is nothing, Zeppelin needs to show some statement like "We couldn’t find any notebook matching 'something_you_typed' " |
|
Thanks for the detail explanation AhyoungRyu. |
|
Thank you for explaining, @astroshim @AhyoungRyu |
|
@cloverhearts Yeah you're right. LGTM 👍 |
|
I think this sounds good, have created a jira for the same https://issues.apache.org/jira/browse/ZEPPELIN-869. LGTM. |
@prabhjyotsingh could you please wait, as there was an issue raised, but not addressed yet?
It would be really cool, if we could know the answer, as I think it might help us avoiding such bugs further down the road. @cloverhearts could you please share, if you have already done some investigation before? |
|
Surething. |
|
@bzz I think we need to recover the ability to hotfix first. |
|
@cloverhearts fix looks great to me. Pity that we can not identify the source of the bug though. Let's merge as a hotfix! |
|
Sure, I'll merge this. |
### What is this PR for? When you type in the search box and start the search, The result is not exposed. Previously, it was working well. ### What type of PR is it? Hot Fix ### Todos * [x] - fixed bug on navbar.html and controller ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-866 ### How should this be tested? try to search action on navbar. ### Screenshots (if appropriate) #### before <img width="1280" alt="test02" src="https://cloud.githubusercontent.com/assets/10525473/15469402/10713c64-2125-11e6-909d-cb375e7c31a4.png"> #### after <img width="1280" alt="test01" src="https://cloud.githubusercontent.com/assets/10525473/15469411/1a6e0b0c-2125-11e6-9ade-e4147e7143d8.png"> ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: CloverHearts <cloverheartsdev@gmail.com> Closes apache#911 from cloverhearts/fixed/searchbar and squashes the following commits: bca027b [CloverHearts] remove whitespace c592422 [CloverHearts] add space in navbar.controller.js 433139a [CloverHearts] removed event locationChangeSuccess on pr ( does not working search bar) bac1254 [CloverHearts] removed console.log (pr does not working search box) 4d06560 [CloverHearts] Hotfix - dose not working search box on navbar.
What is this PR for?
When you type in the search box and start the search,
The result is not exposed.
Previously, it was working well.
What type of PR is it?
Hot Fix
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-866
How should this be tested?
try to search action on navbar.
Screenshots (if appropriate)
before

#### after
### Questions: - Does the licenses files need update? no - Is there breaking changes for older versions? no - Does this needs documentation? no