[ZEPPELIN-6054] Eliminate no-invalid-this warnings

### What is this PR for?
This PR aims to refactor several parts of the Zeppelin project codebase to eliminate no-invalid-this warnings reported by ESLint. These warnings indicate that the this keyword is being used in ways that might lead to unexpected behavior or bugs, particularly within nested callbacks or when this loses its intended context. By addressing these warnings, we improve the stability, readability, and maintainability of the codebase.

**Note on `note-action.service.js`**:
Initially, I aimed to refactor `note-action.service.js` to eliminate ESLint warnings. However, during testing, it was found that the note actions on the default page were not displaying correctly after the changes. To ensure the stability of the project, I have reverted the changes made to `note-action.service.js`. I plan to revisit this refactor to address the ESLint warnings while ensuring no issues arise in the build process.

### What type of PR is it?
Refactoring

### Todos
* [x] - Resolve ESLint warnings of files in zeppelin-web/src/app
* [ ] - Resolve ESLint warnings of files in zeppelin-web/src/components
* [x] - Check if project compiles successfully

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

### How should this be tested?
* CI
* Build and run 

### Screenshots (if appropriate)
*Current Warnings*:
<img width="1102" alt="image" src="https://github.com/user-attachments/assets/4a928656-ec97-4553-a12c-2cd0fbd46350">


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


Closes #4788 from cherrie-k/fix/minor-warnings.

Signed-off-by: Cheng Pan <chengpan@apache.org>
2 files changed
tree: be65ff6f3d62e63bf3c495bb508c7f5b5475324d
  1. .github/
  2. .mvn/
  3. alluxio/
  4. angular/
  5. bigquery/
  6. bin/
  7. build-tools/
  8. cassandra/
  9. conf/
  10. dev/
  11. docs/
  12. elasticsearch/
  13. examples/
  14. file/
  15. flink/
  16. flink-cmd/
  17. groovy/
  18. hbase/
  19. helium-dev/
  20. influxdb/
  21. java/
  22. jdbc/
  23. k8s/
  24. licenses/
  25. livy/
  26. markdown/
  27. mongodb/
  28. neo4j/
  29. notebook/
  30. python/
  31. rlang/
  32. scripts/
  33. shell/
  34. spark/
  35. spark-submit/
  36. sparql/
  37. testing/
  38. zeppelin-client/
  39. zeppelin-client-examples/
  40. zeppelin-common/
  41. zeppelin-distribution/
  42. zeppelin-examples/
  43. zeppelin-integration/
  44. zeppelin-interpreter/
  45. zeppelin-interpreter-integration/
  46. zeppelin-interpreter-parent/
  47. zeppelin-interpreter-shaded/
  48. zeppelin-jupyter/
  49. zeppelin-jupyter-interpreter/
  50. zeppelin-jupyter-interpreter-shaded/
  51. zeppelin-plugins/
  52. zeppelin-server/
  53. zeppelin-test/
  54. zeppelin-web/
  55. zeppelin-web-angular/
  56. zeppelin-zengine/
  57. .appveyor.yml
  58. .asf.yaml
  59. .gitattributes
  60. .gitignore
  61. Dockerfile
  62. LICENSE
  63. mvnw
  64. mvnw.cmd
  65. NOTICE
  66. pom.xml
  67. README.md
  68. Roadmap.md
  69. SECURITY-README.md
  70. STYLE.md
README.md

Apache Zeppelin

Documentation: User Guide
Mailing Lists: User and Dev mailing list
Continuous Integration: core frontend rat
Contributing: Contribution Guide
Issue Tracker: Jira
License: Apache 2.0

Zeppelin, a web-based notebook that enables interactive data analytics. You can make beautiful data-driven, interactive and collaborative documents with SQL, Scala and more.

Core features:

  • Web based notebook style editor.
  • Built-in Apache Spark support

To know more about Zeppelin, visit our web site https://zeppelin.apache.org

Getting Started

Install binary package

Please go to install to install Apache Zeppelin from binary package.

Build from source

Please check Build from source to build Zeppelin from source.