Commit Graph

23 Commits

Author SHA1 Message Date
GitLab Bot 79ccfc9873 Add latest changes from gitlab-org/gitlab@master 2023-09-13 21:11:27 +00:00
GitLab Bot a5c9ef1929 Add latest changes from gitlab-org/gitlab@master 2023-09-13 18:11:34 +00:00
GitLab Bot 34ee0b51d6 Add latest changes from gitlab-org/gitlab@master 2023-07-14 21:13:45 +00:00
GitLab Bot 13ddda5208 Add latest changes from gitlab-org/gitlab@master 2023-01-31 00:10:33 +00:00
GitLab Bot ba557e8fea Add latest changes from gitlab-org/gitlab@master 2022-12-01 00:07:13 +00:00
GitLab Bot 6bed1b9c9c Add latest changes from gitlab-org/gitlab@master 2022-11-09 21:07:34 +00:00
GitLab Bot 836ddfc35d Add latest changes from gitlab-org/gitlab@master 2022-09-29 21:08:27 +00:00
GitLab Bot bffc536bf8 Add latest changes from gitlab-org/gitlab@master 2022-09-19 09:13:01 +00:00
GitLab Bot b420660ef1 Add latest changes from gitlab-org/gitlab@master 2022-07-28 18:09:03 +00:00
GitLab Bot 5cda8c8a42 Add latest changes from gitlab-org/gitlab@master 2022-06-07 18:09:27 +00:00
GitLab Bot 61d5cc9f23 Add latest changes from gitlab-org/gitlab@master 2022-06-02 03:08:40 +00:00
GitLab Bot e1189e4c3b Add latest changes from gitlab-org/gitlab@master 2021-07-13 15:08:38 +00:00
GitLab Bot e5e0589e09 Add latest changes from gitlab-org/gitlab@master 2021-04-26 12:09:44 +00:00
GitLab Bot 6f2b1c32f3 Add latest changes from gitlab-org/gitlab@master 2021-03-09 15:08:59 +00:00
GitLab Bot f14507e586 Add latest changes from gitlab-org/gitlab@master 2020-02-03 09:08:42 +00:00
GitLab Bot c8e28a0bb8 Add latest changes from gitlab-org/gitlab@master 2020-01-27 09:08:32 +00:00
GitLab Bot c2b98d3dbd Add latest changes from gitlab-org/gitlab@master 2019-12-17 15:08:15 +00:00
Nick Thomas 013f7cd24c
Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
gfyoung 15b878e27e Enable more frozen string in app/models/**/*.rb
Partially addresses #47424.
2018-08-07 00:37:36 -07:00
Yorick Peterse f30089075f
Fixed pagination of web hook logs
For reasons unknown, the logs of a web hook were paginated in memory.
This would result in the "Edit" page of a web hook timing out once it
has more than a few thousand log entries.

This commit makes the following changes:

1. We use LIMIT/OFFSET to paginate the data, instead of doing this in
   memory.

2. We limit the logs to the last two days, just like the documentation
   says (instead of retrieving everything).

3. We change the indexes on "web_hook_logs" so the query to get the data
   can perform a backwards index scan, without the need for a Filter.

These changes combined ensure that Projects::HooksController#edit no
longer times out.
2018-07-03 14:24:17 +02:00
Yorick Peterse e1a3bf30b6
Rename ActiverecordSerialize cop
This cop has been renamed to ActiveRecordSerialize to match the way
"ActiveRecord" is usually written.
2017-07-06 12:01:36 +02:00
Yorick Peterse cd74c1434e
Added Cop to blacklist the use of serialize
This Cop blacklists the use of ActiveRecord's "serialize" method, except
for cases where we already use this.
2017-05-31 14:03:37 +02:00
Alexander Randa 330789c23c Implement web hooks logging
* implemented logging of project and system web hooks
* implemented UI for user area (project hooks)
* implemented UI for admin area (system hooks)
* implemented retry of logged webhook
* NOT imeplemented log remover
2017-05-25 10:07:52 +03:00