gitlab-org--gitlab-foss/lib/peek/views
Stan Hu 7a5c4cd0ca Fix SystemStackError when Peek bar is active with Rugged calls
Peek attempts to serialize results with `to_json`, which calls
`ActiveSupport::JSON`. If an object is passed to `to_json` that contains
instance variables, `ActiveSupport` will attempt to recursively traverse
all variables.

The problem is that we can get into an infinite loop if the instance
references to an instance that references to something else that points
back to the same instance.

To avoid this mess, we just call `to_s` on the object. It appears only
`Gitlab::Git::Repository` and `::Repository` are the culprits here.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65404
2019-07-31 15:47:19 -07:00
..
active_record.rb Replace peek-pg with our own implementation 2019-07-26 14:37:26 +01:00
detailed_view.rb Replace peek-pg with our own implementation 2019-07-26 14:37:26 +01:00
gitaly.rb Replace peek-pg with our own implementation 2019-07-26 14:37:26 +01:00
host.rb
redis_detailed.rb Remove line profiler from performance bar 2019-07-30 10:00:52 +01:00
rugged.rb Fix SystemStackError when Peek bar is active with Rugged calls 2019-07-31 15:47:19 -07:00
tracing.rb Migrate correlation and tracing code to LabKit 2019-04-18 09:57:16 +02:00