Approval rules name can't be blank

Hi,

I am owner in several projects. Today I faced the problem that I get the following error message by creating a merge request in only one of my projects (others are working correctly):

Approval rules name can’t be blank

I also tried to create new approval rules with a name, but I still get the same error.
I am using gitlab.com SaaS.

I compared the working project settings with the one of the failing, but I do not see any difference.

What could be the root cause for this mistake?

I am looking forward receiving your hints.

Best regards

Jan

does anyone have a hint?

We just expirienced this issue and it seems to be because the ‘All Members’ approval rule for that project (DB table approval_project_rules) had users assigned to it in the approval_project_rules_users table.

gitlab=# select * from approval_project_rules where project_id = 277;
 id |          created_at           |          updated_at           | project_id | approvals_required |    name     | rule_type
----+-------------------------------+-------------------------------+------------+--------------------+-------------+-----------
 21 | 2020-02-03 14:34:48.573935+00 | 2021-08-19 11:22:19.828492+00 |        277 |                  0 | All Members |         3

gitlab=# select * from approval_project_rules_users;
 id | approval_project_rule_id | user_id
----+--------------------------+---------
 10 |                       21 |       2
 11 |                       21 |       7
 12 |                       21 |      14
 13 |                       21 |      44
 14 |                       21 |      60

Once I removed the entries in approval_project_rules_users, it seemed to start working again.

1 Like