5
11
Fork
You've already forked tomato
1

Limit HttpRequest collection #147

Merged
edwardloveall merged 2 commits from el-no-track-head-requests into main 2026年05月04日 16:06:54 +02:00

This changes two things:

  • Automatically prune old HttpRequest records after 2 months
  • Stop recording HEAD requests because they aren't useful to track
This changes two things: * Automatically prune old HttpRequest records after 2 months * Stop recording HEAD requests because they aren't useful to track
edwardloveall force-pushed el-no-track-head-requests from a87b6e34ef to 1b2559709b
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
2026年04月16日 19:31:14 +02:00
Compare
edwardloveall force-pushed el-no-track-head-requests from 1b2559709b
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to ede792b7f1
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
2026年04月16日 19:31:44 +02:00
Compare
edwardloveall force-pushed el-no-track-head-requests from ede792b7f1
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to 0ccfa02b3f
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2026年04月16日 19:32:05 +02:00
Compare
edwardloveall force-pushed el-no-track-head-requests from 0ccfa02b3f
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
to ed28f786da
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2026年04月16日 19:38:31 +02:00
Compare
@ -0,0 +2,4 @@
class PruneHttpRequestsJob < ApplicationJob
def perform
records = HttpRequest.where(created_at: ..2.months.ago)
puts "removing #{records.count} HttpRequest records"
First-time contributor
Copy link

Good one for the logger. 😄

Good one for the logger. 😄
edwardloveall force-pushed el-no-track-head-requests from ed28f786da
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
to ed312a9e8a
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2026年05月04日 15:38:00 +02:00
Compare
edwardloveall changed target branch from el-doc-updates to main 2026年05月04日 16:05:59 +02:00
edwardloveall deleted branch el-no-track-head-requests 2026年05月04日 16:06:58 +02:00
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rootable/tomato!147
Reference in a new issue
rootable/tomato
No description provided.
Delete branch "el-no-track-head-requests"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?