mirror of
https://github.com/zitadel/zitadel.git
synced 2025-05-01 18:40:50 +00:00
fix(actions-v3): check feature flag on list methods (#8595)
# Which Problems Are Solved In actions/v3 there was no check for the feature flag on any of the: - ListExecutionFunctions - ListExecutionMethods - ListExecutionServices In the integration tests `ensureFeatureEnabled` relies on `ListExecutionMethods` to return an error if the feature is not enabled. This fix makes the test wait untill the feature is fully projected. # How the Problems Are Solved Add the feature check to all of the above methods. # Additional Changes - none # Additional Context Flaky introduced in https://github.com/zitadel/zitadel/pull/8407
This commit is contained in:
parent
15c9f71bee
commit
02c78a19c6
@ -91,19 +91,28 @@ func conditionToInclude(cond *action.Condition) (string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Server) ListExecutionFunctions(_ context.Context, _ *action.ListExecutionFunctionsRequest) (*action.ListExecutionFunctionsResponse, error) {
|
||||
func (s *Server) ListExecutionFunctions(ctx context.Context, _ *action.ListExecutionFunctionsRequest) (*action.ListExecutionFunctionsResponse, error) {
|
||||
if err := checkActionsEnabled(ctx); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &action.ListExecutionFunctionsResponse{
|
||||
Functions: s.ListActionFunctions(),
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (s *Server) ListExecutionMethods(_ context.Context, _ *action.ListExecutionMethodsRequest) (*action.ListExecutionMethodsResponse, error) {
|
||||
func (s *Server) ListExecutionMethods(ctx context.Context, _ *action.ListExecutionMethodsRequest) (*action.ListExecutionMethodsResponse, error) {
|
||||
if err := checkActionsEnabled(ctx); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &action.ListExecutionMethodsResponse{
|
||||
Methods: s.ListGRPCMethods(),
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (s *Server) ListExecutionServices(_ context.Context, _ *action.ListExecutionServicesRequest) (*action.ListExecutionServicesResponse, error) {
|
||||
func (s *Server) ListExecutionServices(ctx context.Context, _ *action.ListExecutionServicesRequest) (*action.ListExecutionServicesResponse, error) {
|
||||
if err := checkActionsEnabled(ctx); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &action.ListExecutionServicesResponse{
|
||||
Services: s.ListGRPCServices(),
|
||||
}, nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user