Commit graph

12 commits

Author SHA1 Message Date
GitLab Bot
e92c95bf45 Add latest changes from gitlab-org/gitlab@master 2021-02-01 15:08:56 +00:00
GitLab Bot
b2e2c43b3c Add latest changes from gitlab-org/gitlab@master 2020-12-24 00:10:25 +00:00
GitLab Bot
4b9bde7848 Add latest changes from gitlab-org/gitlab@master 2020-08-24 12:10:17 +00:00
GitLab Bot
520f317866 Add latest changes from gitlab-org/gitlab@master 2020-08-20 15:10:18 +00:00
GitLab Bot
274ea604fc Add latest changes from gitlab-org/gitlab@master 2019-09-16 21:06:30 +00:00
Winnie Hellmann
0bf740fa32 Replace === true with parseBoolean() 2018-11-27 09:18:48 +01:00
Mike Greiling
b49c400a96
Prettify performance_bar notes and profile modules 2018-10-17 00:44:22 -05:00
Sean McGivern
96904b0236 Ignore API requests in performance bar
These don't have performance data saved as they use Grape.
2018-08-29 12:01:17 +01:00
Sean McGivern
d77db0adbd Fix flash errors in performance bar for cached responses
When a request contains an ETag value in its If-None-Match header, the backend
may send a request ID (from Rack) that does not correspond to a value in Peek's
Redis cache (because we aborted the Rails processing in our ETag middleware).

Because a cached response (304) has to replace the headers with those from the
previous 200 - https://tools.ietf.org/html/rfc7234#section-4.3.4 - we add a
custom header that will only be present in cache hits, that can tell the
frontend to ignore these.
2018-04-17 11:50:27 +01:00
Phil Hughes
27cd947489
fixed eslint 2018-03-21 17:42:24 +00:00
Phil Hughes
fc32b57384
Add Vue resource interceptor to performance bar 2018-03-21 17:16:25 +00:00
Sean McGivern
a200619d14 Show Ajax requests in performance bar
But first, rewrite the performance bar in Vue:

1. Remove the peek-host gem and replace it with existing code. This also allows
   us to include the host in the JSON response, rather than in the page HTML.
2. Leave the line profiler parts as here-be-dragons: nicer would be a separate
   endpoint for these, so we could use them on Ajax requests too.
3. The performance bar is too fiddly to rewrite right now, so apply the same
   logic to that.

Then, add features! All requests made through Axios are able to be tracked. To
keep a lid on memory usage, only the first two requests for a given URL are
tracked, though. Each request that's tracked has the same data as the initial
page load, with the exception of the performance bar and the line profiler, as
explained above.
2018-03-19 19:06:09 +00:00