Skip to content

Commit 97b12e6

Browse files
authored
[ZEPPELIN-6147] Make interpreter searching case-insensitive in new ui
### What is this PR for? The interpreter search in the new UI doesn’t ignore case sensitivity, unlike the old UI. I updated it to be case-insensitive in the new UI as well for better UX. ### What type of PR is it? Improvement ### Todos ### What is the Jira issue? [ZEPPELIN-6147](https://issues.apache.org/jira/browse/ZEPPELIN-6147/) ### How should this be tested? * Ensure interpreters can be searched case-insensitively ### Screenshots (if appropriate) **old ui** <img src="https://github.com/user-attachments/assets/3096ed71-6e76-4dcb-b3db-ecac9d1ca2e6" width="450" /> **new ui (before update)** <img src="https://github.com/user-attachments/assets/371bdc9f-a0d2-47bd-b3c0-1786470758a9" width="450" /> ### Questions: * Does the license files need to update? * Is there breaking changes for older versions? * Does this needs documentation? Closes #4897 from seung-00/ZEPPELIN-6147. Signed-off-by: Philipp Dallig <[email protected]>
1 parent e463373 commit 97b12e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

zeppelin-web-angular/src/app/pages/workspace/interpreter/interpreter.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ export class InterpreterComponent implements OnInit, OnDestroy {
4646
}
4747

4848
filterInterpreters(value: string) {
49-
this.filteredInterpreterSettings = this.interpreterSettings.filter(e => e.name.search(value) !== -1);
49+
this.filteredInterpreterSettings = this.interpreterSettings.filter(
50+
e => e.name.search(new RegExp(value, 'i')) !== -1
51+
);
52+
5053
this.cdr.markForCheck();
5154
}
5255

0 commit comments

Comments
 (0)