Skip to content

Add enable_direction_rate_history_intervals config option#88

Merged
dapi merged 1 commit intomasterfrom
feature/optional-direction-rate-history-intervals
Jan 20, 2026
Merged

Add enable_direction_rate_history_intervals config option#88
dapi merged 1 commit intomasterfrom
feature/optional-direction-rate-history-intervals

Conversation

@dapi
Copy link
Copy Markdown

@dapi dapi commented Jan 16, 2026

Summary

  • Add enable_direction_rate_history_intervals config option to allow disabling direction_rate_history_intervals creation
  • Table occupies ~42GB on production and is only used for admin charts
  • Default is true for backward compatibility
  • When disabled, shows warning banner in the charts view

Related

Test plan

  • Tests pass in gera (bundle exec rspec spec/jobs/gera/create_history_intervals_job_spec.rb spec/lib/configuration_spec.rb)
  • Test with Mercury integration

🤖 Generated with Claude Code

Allow disabling direction_rate_history_intervals creation to save disk space
(~42GB on production). The table is only used for admin charts.

- Add enable_direction_rate_history_intervals config (default: true)
- Skip saving direction_rate_history_intervals when disabled
- Add helper method for controller to check status
- Show warning banner in view when collection is disabled

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@dapi dapi merged commit 8b79180 into master Jan 20, 2026
1 check passed
@dapi dapi deleted the feature/optional-direction-rate-history-intervals branch January 20, 2026 09:29
@dapi dapi restored the feature/optional-direction-rate-history-intervals branch January 20, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant