Skip to content

Add Blazer gem for business intelligence queries#999

Merged
maebeale merged 6 commits intomainfrom
copilot/add-blazer-gem
Feb 16, 2026
Merged

Add Blazer gem for business intelligence queries#999
maebeale merged 6 commits intomainfrom
copilot/add-blazer-gem

Conversation

Copy link
Contributor

Copilot AI commented Feb 15, 2026

What is the goal of this PR and why is this important?

Adds Blazer 3.3.0 for ad-hoc SQL queries and business intelligence dashboards.

How did you approach the change?

Installation

  • Added blazer gem (depends on chartkick which is already present)
  • Generated migration creating 5 tables: queries, audits, dashboards, dashboard_queries, checks
  • Enhanced migration with explicit foreign key constraints for referential integrity

Security

  • Mounted at /blazer with super_user access only via config/initializers/blazer.rb
  • Enforces authenticate_user! and require_blazer_access before_actions
  • Configured config/blazer.yml with User model integration

Deployment

  • Run rails db:migrate to create tables
  • Optionally set BLAZER_DATABASE_URL env var (defaults to main database)

Anything else to add?

Foreign key constraints ensure audit trail integrity and prevent orphaned records when users or queries are deleted.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 4 commits February 15, 2026 06:47
Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Blazer gem and install Add Blazer gem for business intelligence queries Feb 15, 2026
Copilot AI requested a review from maebeale February 15, 2026 06:55
@maebeale maebeale marked this pull request as ready for review February 16, 2026 20:53
apipie
authenticate :user, ->(user) { user.super_user? } do
mount Blazer::Engine, at: "blazer"
end
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nest the blazer route under call to super_user

@maebeale maebeale merged commit bbd9dfa into main Feb 16, 2026
3 checks passed
@maebeale maebeale deleted the copilot/add-blazer-gem branch February 16, 2026 21:29
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.

2 participants