Skip to content

Group push rules: execute read operations from group_push_rules table

Implementation plan

We want to execute read operations using the new group_push_rules table instead of push_rules. To achieve this, we need to perform the following changes:

belongs_to :push_rule, inverse_of: :group

With something like (untested code) that points to group_push_rules table:

belongs_to :group_push_rule, inverse_of: :group

Expectations

  • The GET request for group_push_rules should return a GroupPushRule record without changes in the API response.
  • Use the group_push_rule association in the group model if the FF is on.
  • Create the rollout and cleanup issues for the FF (if it has not been created yet).
Edited by 🤖 GitLab Bot 🤖