Commit 840e1eab authored by Sean McGivern's avatar Sean McGivern

Remove unused MissingAttributeError handling

We added this for an issue that we never solved, but didn't reappear,
and has been closed due to inactivity:
https://gitlab.com/gitlab-org/gitlab/-/issues/26751

If we need it again, we can always add it back.
parent d6d1304e
......@@ -186,14 +186,6 @@ module Gitlab
def inject_context_for_exception(event, ex)
case ex
when ActiveModel::MissingAttributeError # Debugging for https://gitlab.com/gitlab-org/gitlab/-/issues/26751
columns_hash = ActiveRecord::Base
.connection
.schema_cache
.instance_variable_get(:@columns_hash)
.transform_values { |v| v.map(&:first) }
event.extra.merge!(columns_hash)
when ActiveRecord::StatementInvalid
event.extra[:sql] = PgQuery.normalize(ex.sql.to_s)
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment