-
- Downloads
Fix "empty" approval rules when user_ids or group_ids provided
Contrbutes to #415431 **Problem** Grape v1.7.0 introduced a change to parameter renaming functionality. Grape update issue: #395809 With out previous configuration it was possible to send `user_ids` and `group_ids` as parameters. But after the gem upgrade this configuration became invalid and prevents us from accessing `user_ids` and `group_ids`. **Solution** Explicitly add a parameter definition for `user_ids` and `group_ids`. It will permit us to set `user_ids` and `group_ids` in the query. Changelog: fixed EE: true
Showing
- ee/lib/api/helpers/project_approval_rules_helpers.rb 8 additions, 4 deletionsee/lib/api/helpers/project_approval_rules_helpers.rb
- ee/spec/requests/api/project_approval_rules_spec.rb 1 addition, 0 deletionsee/spec/requests/api/project_approval_rules_spec.rb
- ee/spec/requests/api/project_approval_settings_spec.rb 1 addition, 0 deletionsee/spec/requests/api/project_approval_settings_spec.rb
- ee/spec/support/shared_examples/requests/api/project_approval_rules_api_shared_examples.rb 126 additions, 0 deletions...equests/api/project_approval_rules_api_shared_examples.rb
Please register or sign in to comment