Skip to content

Commit

Permalink
Allow overriding annotation service
Browse files Browse the repository at this point in the history
  • Loading branch information
khasinski committed Jun 13, 2022
1 parent 5b4126a commit dd40653
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/blazer/queries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def continue_run
def render_run
@checks = @query ? @query.checks.order(:id) : []

@annotations = Blazer::Annotations.new(@data_source.annotations).call(@result)
@annotations = Blazer.annotations.new(@data_source.annotations).call(@result)

@first_row = @rows.first || []
@column_types = []
Expand Down
1 change: 1 addition & 0 deletions lib/blazer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class << self
self.async = false
self.images = false
self.override_csp = false
self.annotations = Blazer::Annotations

VARIABLE_MESSAGE = "Variable cannot be used in this position"
TIMEOUT_MESSAGE = "Query timed out :("
Expand Down

0 comments on commit dd40653

Please sign in to comment.