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

Make action protos private #1924

Merged
merged 7 commits into from
Feb 19, 2025
Merged

Make action protos private #1924

merged 7 commits into from
Feb 19, 2025

Conversation

Ekrekr
Copy link
Contributor

@Ekrekr Ekrekr commented Feb 17, 2025

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.

@Ekrekr Ekrekr requested a review from a team as a code owner February 17, 2025 12:45
@Ekrekr Ekrekr requested review from kolina and Ceridan and removed request for a team February 17, 2025 12:45
@@ -323,6 +324,16 @@ export class Operation extends ActionBuilder<dataform.Operation> {
return dataform.Target.create(this.proto.target);
}

/** @hidden */
public getHasOutput() {
Copy link
Contributor

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?

Copy link
Contributor Author

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!

Copy link
Contributor

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.

@kolina kolina removed their request for review February 19, 2025 10:57
@Ekrekr Ekrekr requested a review from Ceridan February 19, 2025 10:58
@@ -137,6 +147,11 @@ export class Test extends ActionBuilder<dataform.Test> {
return undefined;
}

/** @hidden */
public setFilename(filename: string) {
return (this.proto.fileName = filename);
Copy link
Contributor

Choose a reason for hiding this comment

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

We missed this one.

@Ekrekr Ekrekr merged commit f27ed12 into main Feb 19, 2025
4 checks passed
@Ekrekr Ekrekr deleted the make-action-protos-private branch February 19, 2025 11:58
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.

2 participants