Skip to content

[ZEPPELIN-1047] Add filter to handle upper case#1066

Closed
suvam97 wants to merge 4 commits intoapache:masterfrom
suvam97:ZEPPELIN-1047
Closed

[ZEPPELIN-1047] Add filter to handle upper case#1066
suvam97 wants to merge 4 commits intoapache:masterfrom
suvam97:ZEPPELIN-1047

Conversation

@suvam97
Copy link
Copy Markdown
Contributor

@suvam97 suvam97 commented Jun 22, 2016

What is this PR for?

The notebook filter in navbar does not filter the results of note if note name is given in upper case .

What type of PR is it?

[Bug Fix]

Todos

What is the Jira issue?

ZEPPELIN-1047

How should this be tested?

1.Open the notebook filter under navbar -> Notebook menu.
2.Search for any note by giving name in upper case.
3.You should be able to search all the note book names irrespective of case.

Screenshots (if appropriate)

BEFORE:
http://g.recordit.co/jqo7DYXStI.gif

AFTER:
http://g.recordit.co/uuCT79uEti.gif

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

@corneadoug
Copy link
Copy Markdown
Contributor

@suvam97 Sorry, I was actually testing your branch :)
Works, great, could you then delete the notebookFilter since it is not being used?

@suvam97
Copy link
Copy Markdown
Contributor Author

suvam97 commented Jun 22, 2016

@corneadoug : sorry for late response ! Changes updated.

@corneadoug
Copy link
Copy Markdown
Contributor

LGTM

@minahlee
Copy link
Copy Markdown
Member

@suvam97 Could you rebase master and resolve conflicts?

@suvam97
Copy link
Copy Markdown
Contributor Author

suvam97 commented Jun 24, 2016

@minahlee Conflict Resolved

@minahlee
Copy link
Copy Markdown
Member

Merge if there is no more dicussion

@asfgit asfgit closed this in 330d1da Jun 25, 2016
asfgit pushed a commit that referenced this pull request Jun 25, 2016
### What is this PR for?
The notebook filter in navbar does not filter the results of note if note name is given in upper case .

### What type of PR is it?
[Bug Fix]

### Todos

### What is the Jira issue?
[ZEPPELIN-1047](https://issues.apache.org/jira/browse/ZEPPELIN-1047)

### How should this be tested?
1.Open the notebook filter under navbar -> Notebook menu.
2.Search for any note by giving name in upper case.
3.You should be able to search all the note book names irrespective of case.

### Screenshots (if appropriate)

**BEFORE:**
http://g.recordit.co/jqo7DYXStI.gif

**AFTER:**
http://g.recordit.co/uuCT79uEti.gif

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

Author: suvam97 <[email protected]>

Closes #1066 from suvam97/ZEPPELIN-1047 and squashes the following commits:

6bbbdf1 [suvam97] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1047
86477e3 [suvam97] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1047
5352f27 [suvam97] Removed notebookFilter function
5f176cb [suvam97] Add filter to hamdle upper case

(cherry picked from commit 330d1da)
Signed-off-by: Mina Lee <[email protected]>
asfgit pushed a commit that referenced this pull request Jun 26, 2016
### What is this PR for?
This PR is fixing the bug by implementing a new layout for the Notebook Dropdown menu.
Reason being that setting a maximum height and having a scrollbar doesn't mix with having bootstrap submenus.

In term of dropdown layout, I think we have 2 options:
* The one I implemented, a tree view similar to the one in the home page, I can probably uniform both of them later. One possible problem is the dropdown width getting bigger and bigger as we indent at each submenu.
* The second one would not have any indent, but use a background color to show elements in the same folder (A grey that goes clearer as we go in the submenus)

<img width="691" alt="screen shot 2016-06-25 at 1 42 41 am" src="https://cloud.githubusercontent.com/assets/710411/16344155/2d387af0-3a76-11e6-87ba-9626d9f17fea.png">

Reworking the whole notebook list and dropdown will probably need a lot more work later (especially in term of refactoring and code cleaning), so I'm not sure where the scope of this PR should stop, especially with the release coming. I think the layout I implemented is fine to solve the immediate problem, and it is always possible to switch to the layout of option 2 later if we think it is best.

### What type of PR is it?
Hot Fix

### Todos
* [ ] - Rebase & Double Check the filtering and Notebook ordering after #1066

### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-846

### How should this be tested?
Just play with the folder structure and check the notebook dropdown

### Screenshots (if appropriate)
![openingfolder](https://cloud.githubusercontent.com/assets/710411/16343658/583e1064-3a73-11e6-8607-bcdced587636.gif)

![notebookisrunnable](https://cloud.githubusercontent.com/assets/710411/16343663/5c10894c-3a73-11e6-9f54-c32136d3437a.gif)

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

Author: Damien CORNEAU <[email protected]>

Closes #1081 from corneadoug/fix/longNavbarNotebookList and squashes the following commits:

223a7d3 [Damien CORNEAU] Fix Notebook dropdown css when on mobile
8170782 [Damien CORNEAU] Fix Notebook ordering in dropdown
5a0fa09 [Damien CORNEAU] fix jshint errors
a52b219 [Damien CORNEAU] Change Notebook dropdown style
asfgit pushed a commit that referenced this pull request Jun 26, 2016
### What is this PR for?
This PR is fixing the bug by implementing a new layout for the Notebook Dropdown menu.
Reason being that setting a maximum height and having a scrollbar doesn't mix with having bootstrap submenus.

In term of dropdown layout, I think we have 2 options:
* The one I implemented, a tree view similar to the one in the home page, I can probably uniform both of them later. One possible problem is the dropdown width getting bigger and bigger as we indent at each submenu.
* The second one would not have any indent, but use a background color to show elements in the same folder (A grey that goes clearer as we go in the submenus)

<img width="691" alt="screen shot 2016-06-25 at 1 42 41 am" src="https://cloud.githubusercontent.com/assets/710411/16344155/2d387af0-3a76-11e6-87ba-9626d9f17fea.png">

Reworking the whole notebook list and dropdown will probably need a lot more work later (especially in term of refactoring and code cleaning), so I'm not sure where the scope of this PR should stop, especially with the release coming. I think the layout I implemented is fine to solve the immediate problem, and it is always possible to switch to the layout of option 2 later if we think it is best.

### What type of PR is it?
Hot Fix

### Todos
* [ ] - Rebase & Double Check the filtering and Notebook ordering after #1066

### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-846

### How should this be tested?
Just play with the folder structure and check the notebook dropdown

### Screenshots (if appropriate)
![openingfolder](https://cloud.githubusercontent.com/assets/710411/16343658/583e1064-3a73-11e6-8607-bcdced587636.gif)

![notebookisrunnable](https://cloud.githubusercontent.com/assets/710411/16343663/5c10894c-3a73-11e6-9f54-c32136d3437a.gif)

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

Author: Damien CORNEAU <[email protected]>

Closes #1081 from corneadoug/fix/longNavbarNotebookList and squashes the following commits:

223a7d3 [Damien CORNEAU] Fix Notebook dropdown css when on mobile
8170782 [Damien CORNEAU] Fix Notebook ordering in dropdown
5a0fa09 [Damien CORNEAU] fix jshint errors
a52b219 [Damien CORNEAU] Change Notebook dropdown style

(cherry picked from commit eca39e2)
Signed-off-by: Mina Lee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants