-
Notifications
You must be signed in to change notification settings - Fork 172
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
Make action protos private #1924
Conversation
core/actions/operation.ts
Outdated
@@ -323,6 +324,16 @@ export class Operation extends ActionBuilder<dataform.Operation> { | |||
return dataform.Target.create(this.proto.target); | |||
} | |||
|
|||
/** @hidden */ | |||
public getHasOutput() { |
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.
Maybe specify a return type? I assume it is boolean
but maybe it is better to make it clear?
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.
With most methods we just let the return value be implicit, but I'm also a fan of explicitly putting the returned types. Would be good to update everything else too!
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 think we can do it as we go, when touching some code.
core/actions/test.ts
Outdated
@@ -137,6 +147,11 @@ export class Test extends ActionBuilder<dataform.Test> { | |||
return undefined; | |||
} | |||
|
|||
/** @hidden */ | |||
public setFilename(filename: string) { | |||
return (this.proto.fileName = filename); |
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.
We missed this one.
This prevents proto update logic from happening outside of actions. This makes action update logic more strict by having it happen inside the action files where they are configured.