Jose Cervantes (3360ef4a) at 18 Mar 17:41
Edit README.md
Jose Cervantes (d4ff3c91) at 18 Mar 17:39
Initial commit
Jose Cervantes (dec8d9ff) at 17 Mar 19:39
Change Json.parse() to Json.safe_parse() in puma_sampler
... and 98 more commits
The nil case is taken care of before safe_parse is called. Refer line 29: return unless json_stats.
This change replaces Gitlab::Json.parse with Gitlab::Json.safe_parse in lib/gitlab/metrics/samplers/puma_sampler.rb. It also removes the file from the Gitlab/JsonSafeParse RuboCop exclusion list. A unit test is also added to verify the sampler handles large JSON payloads properly.
This change was needed to ensure excessively large JSON payloads are handled properly by moving away from Json.parse to Json.safe_parse.
Closes #586080
Jose Cervantes (cce71011) at 17 Mar 16:12
Edit README.md with Phase 4 updates.
Jose Cervantes (a1d725a0) at 17 Mar 15:54
Change Json.parse() to Json.safe_parse() in puma_sampler
Jose Cervantes (e7f65297) at 16 Mar 04:10
Edit README.md for phase 3.
Jose Cervantes (07f21d96) at 16 Mar 03:54
Add graceful failure tests in puma_sampler_spec for safe_parse dept...
Jose Cervantes (8910ba91) at 16 Mar 03:20
Move to Json.safe_parse() in puma_sampler
Jose Cervantes (2b3568e1) at 16 Mar 02:54
Edit README.md to include implementation plan.
Jose Cervantes (b32bd968) at 16 Mar 02:47
@gitlab-bot help
Jose Cervantes (e5e3fb00) at 15 Mar 23:20
Edit README.md to reflect new issue being worked on.
Jose Cervantes (72960bff) at 11 Mar 02:52
Update README.md to include newest issue.
Excited to be working on this!
@gitlab-bot --help
Jose Cervantes (74800824) at 23 Feb 06:41
Add problem description.