summaryrefslogtreecommitdiff
path: root/app/models/concerns/group_descendant.rb
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2019-08-02 19:11:30 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2019-08-02 19:24:04 +0200
commit788ff54816769117279e64dde7b9578c62b03ecf (patch)
tree9de1d606607eec1838683a80aa8eb1482cb73580 /app/models/concerns/group_descendant.rb
parent1bc2ac330e503005b6eec45c409f774178e3059f (diff)
downloadgitlab-ce-788ff54816769117279e64dde7b9578c62b03ecf.tar.gz
Group `parent not preloaded` errors in sentry
I still haven't found a moment to look into the exact cases that causes this error, but we're not loosing any information this way. In fact, it will be easier to find the right information as we only need to look to one entry in Sentry.
Diffstat (limited to 'app/models/concerns/group_descendant.rb')
-rw-r--r--app/models/concerns/group_descendant.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/concerns/group_descendant.rb b/app/models/concerns/group_descendant.rb
index cfffd845e43..ed14b73ac1b 100644
--- a/app/models/concerns/group_descendant.rb
+++ b/app/models/concerns/group_descendant.rb
@@ -42,7 +42,7 @@ module GroupDescendant
parent = child.parent
exception = ArgumentError.new <<~MSG
- parent: [GroupDescendant: #{parent.inspect}] was not preloaded for [#{child.inspect}]")
+ Parent was not preloaded for child when rendering group hierarchy.
This error is not user facing, but causes a +1 query.
MSG
extras = {
@@ -50,7 +50,7 @@ module GroupDescendant
child: child.inspect,
preloaded: preloaded.map(&:full_path)
}
- issue_url = 'https://gitlab.com/gitlab-org/gitlab-ce/issues/40785'
+ issue_url = 'https://gitlab.com/gitlab-org/gitlab-ce/issues/49404'
Gitlab::Sentry.track_exception(exception, issue_url: issue_url, extra: extras)
end