Wiki comments fail to load if a page had a duplicate slug
Comments tail to load if a page has a duplicate slug. Backend returns 500.
Internal server error: Validation failed: Canonical slug Duplicate value found
~/git/gitlab-development-kit/gitlab/app/models/wiki_page/meta.rb:74:in `find_by_canonical_slug' <--
~/git/gitlab-development-kit/gitlab/app/graphql/resolvers/wikis/wiki_page_resolver.rb:31:in `resolve' <--
~/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/graphql-2.4.6/lib/graphql/schema/resolver.rb:121:in `public_send' <--
~/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/graphql-2.4.6/lib/graphql/schema/resolver.rb:121:in `call_resolve' <--
~/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/graphql-2.4.6/lib/graphql/schema/resolver.rb:108:in `block (3 levels) in resolve_with_support' <--
~/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/graphql-2.4.6/lib/graphql/schema.rb:1591:in `after_lazy' <--
~/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/graphql-2.4.6/lib/graphql/query.rb:428:in `after_lazy' <--
~/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/graphql-2.4.6/lib/graphql/schema/resolver.rb:96:in `block (2 levels) in resolve_with_support' <--
~/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/graphql-2.4.6/lib/graphql/schema.rb:1591:in `after_lazy' <--
~/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/graphql-2.4.6/lib/graphql/query.rb:428:in `after_lazy' <--
~/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/graphql-2.4.6/lib/graphql/schema/resolver.rb:87:in `block in resolve_with_support'
Example of what error message looks like:
