Skip to content

Commit

Permalink
Remove protoc-gen-validate (#4643)
Browse files Browse the repository at this point in the history
* Stop producing the protoc-gen-validate code in go and python

Signed-off-by: Eduardo Apolinario <[email protected]>

* Remove python files

Signed-off-by: Eduardo Apolinario <[email protected]>

* Remove pb.validate.go files

Signed-off-by: Eduardo Apolinario <[email protected]>

* Add datacatalog files

Signed-off-by: Eduardo Apolinario <[email protected]>

* Remove uses of validate in flyteadmin

Signed-off-by: Eduardo Apolinario <[email protected]>

* Remove validate from artifacts and cloudevents

Signed-off-by: Eduardo Apolinario <[email protected]>

---------

Signed-off-by: Eduardo Apolinario <[email protected]>
Co-authored-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
eapolinario and eapolinario authored Dec 27, 2023
1 parent 4a7c3c0 commit 81ce71e
Show file tree
Hide file tree
Showing 62 changed files with 23 additions and 37,866 deletions.
5 changes: 0 additions & 5 deletions flyteadmin/pkg/manager/impl/validation/execution_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ func ValidateExecutionRequest(ctx context.Context, request admin.ExecutionCreate
return err
}
}
// TODO: Remove redundant validation with the rest of the method.
// This final call to validating the request ensures the notification types are expected.
if err := request.Validate(); err != nil {
return err
}
return nil
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ func ValidateLaunchPlan(ctx context.Context,
return err
}
}
// TODO: Remove redundant validation that occurs with launch plan and the validate method for the message.
// Ensure the notification types are validated.
if err := request.Validate(); err != nil {
return err
}
return nil
}

Expand Down
Loading

0 comments on commit 81ce71e

Please sign in to comment.