Skip to content
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

[ZEPPELIN-6077] Remove raw types for AngularObject #4813

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Reamer
Copy link
Contributor

@Reamer Reamer commented Sep 5, 2024

What is this PR for?

This pull request removes the raw use of the AngularObject. The generic version has been removed. AngularObject now contains an object reference.
As a result, warnings from the IDE due to raw use disappear. The code is also easier to read.

What type of PR is it?

  • Refactoring

What is the Jira issue?

How should this be tested?

  • CI

Questions:

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

@Reamer
Copy link
Contributor Author

Reamer commented Sep 16, 2024

Review required.

@@ -134,7 +134,7 @@ abstract class AbstractAngularElem(val interpreterContext: InterpreterContext,
Text(s"${functionName}=${functionName} + 1"),
Null)

val angularObject = addAngularObject(functionName, 0)
val angularObject = addAngularObject(functionName, Int.box(0))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only place where I am not sure that this is completely correct.

@@ -70,7 +70,7 @@ abstract class AbstractAngularElem(val interpreterContext: InterpreterContext,
* @return
*/
@ZeppelinApi
def model(name: String, value: Any): AbstractAngularElem = {
def model(name: String, value: AnyRef): AbstractAngularElem = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Reamer
Copy link
Contributor Author

Reamer commented Oct 8, 2024

Review required.

@Reamer Reamer force-pushed the raw_type branch 2 times, most recently from 1deca4a to b21c947 Compare October 28, 2024 09:35
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.

1 participant