Error when generating default labels for projects belonging to a group
Stack trace:
NoMethodError - undefined method `authorized_projects' for #<Group:0x007f5c13ff7ed8>:
activemodel (4.2.7.1) lib/active_model/attribute_methods.rb:433:in `method_missing'
app/finders/projects_finder.rb:14:in `all_projects'
app/finders/projects_finder.rb:3:in `execute'
app/finders/labels_finder.rb:94:in `available_projects'
app/finders/labels_finder.rb:76:in `find_project'
app/finders/labels_finder.rb:66:in `project'
app/finders/labels_finder.rb:22:in `label_ids'
app/finders/labels_finder.rb:10:in `execute'
app/services/labels/find_or_create_service.rb:19:in `available_labels'
app/services/labels/find_or_create_service.rb:23:in `find_or_create_label'
app/services/labels/find_or_create_service.rb:11:in `execute'
lib/gitlab/issues_labels.rb:22:in `block in generate'
lib/gitlab/issues_labels.rb:21:in `generate'
app/controllers/projects/labels_controller.rb:58:in `generate'
This error is not yet present in 8.13, because at this point generating labels does not work at all. This fix https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7055 was not yet released. Error described above will show up after releasing this change. This is currently broken only on master
.
/cc @stanhu @smcgivern