Error 500: Filter Projects by Visibility level in Admin Area
I just updated from 8.5.8 to 8.6.1:
Tried to filter Projects by "Visibility Level" in "Admin Area" (/admin/projects)
production log:
Completed 500 Internal Server Error in 111ms (ActiveRecord: 3.7ms)
ActionView::Template::Error (PG::AmbiguousColumn: ERROR: column reference "visibility_level" is ambiguous
LINE 1: ...mespaces"."id" = "projects"."namespace_id" WHERE (visibility...
^
: SELECT COUNT(DISTINCT "projects"."id") FROM "projects" INNER JOIN "events" ON "events"."project_id" = "projects"."id" AND ("events"."author_id" IS NOT NULL) LEFT OUTER JOIN "namespaces" ON "namespaces"."id" = "projects"."namespace_id" WHERE (visibility_level IN ('0')) AND (events.action = 5) AND "projects"."archived" = $1):
46: %section.col-md-9
47: .panel.panel-default
48: .panel-heading
49: Projects (#{@projects.total_count})
50: .controls
51: .dropdown.inline
52: %button.dropdown-toggle.btn.btn-sm{type: 'button', 'data-toggle' => 'dropdown'}
app/views/admin/projects/index.html.haml:49:in `_app_views_admin_projects_index_html_haml___1987937633974748520_54287380'
lib/gitlab/metrics/rack_middleware.rb:17:in `block in call'
lib/gitlab/metrics/transaction.rb:45:in `run'
lib/gitlab/metrics/rack_middleware.rb:17:in `call'
lib/gitlab/middleware/go.rb:16:in `call'