Skip to content

Commit

Permalink
Update deps and format
Browse files Browse the repository at this point in the history
  • Loading branch information
simonprev committed Aug 3, 2024
1 parent f670ef1 commit 48c641f
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 57 deletions.
4 changes: 2 additions & 2 deletions lib/telemetry_ui/digest/worker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ if Code.ensure_loaded?(Oban) do
telemetry_name = get_telemetry_name(args)
share_key = TelemetryUI.theme(telemetry_name).share_key

if not TelemetryUI.valid_share_key?(share_key) do
unless TelemetryUI.valid_share_key?(share_key) do
raise TelemetryUI.InvalidThemeShareKeyError.exception(share_key)
end

if not TelemetryUI.valid_share_url?(args["share_url"]) do
unless TelemetryUI.valid_share_url?(args["share_url"]) do
raise TelemetryUI.InvalidDigestShareURLError.exception(share_key)
end

Expand Down
8 changes: 4 additions & 4 deletions lib/telemetry_ui/slug.ex
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,9 @@ defmodule TelemetryUI.Slug do
{, ~c"Ch"},
{, ~c"Sh"},
{, ~c"Shch"},
{, ''},
{, ~c""},
{, ~c"Y"},
{, ''},
{, ~c""},
{, ~c"E"},
{, ~c"Ju"},
{, ~c"Ja"},
Expand Down Expand Up @@ -456,9 +456,9 @@ defmodule TelemetryUI.Slug do
{, ~c"ch"},
{, ~c"sh"},
{, ~c"shch"},
{, ''},
{, ~c""},
{, ~c"y"},
{, ''},
{, ~c""},
{, ~c"e"},
{, ~c"ju"},
{, ~c"ja"},
Expand Down
2 changes: 1 addition & 1 deletion lib/telemetry_ui/web/components/compare_aggregate.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule TelemetryUI.Web.Components.CompareAggregate do
alias VegaLite, as: Vl

def fill_expression(metric) do
{good, bad} = Keyword.get(metric.ui_options, :compare_value_scale, {~c"green", ~c"red"})
{good, bad} = Keyword.get(metric.ui_options, :compare_value_scale, {"green", "red"})

"datum.compare_percentage >= 1 ? '#{good}' : '#{bad}'"
end
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ defmodule TelemetryUI.Mixfile do
{:ecto_sql, "~> 3.0"},
{:postgrex, "~> 0.16"},
{:telemetry, "~> 1.0"},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_metrics, ">= 0.6.0"},
{:telemetry_poller, "~> 1.0"},
{:timex, "~> 3.7"},
{:oban, "~> 2.13", optional: true},
Expand Down
Loading

0 comments on commit 48c641f

Please sign in to comment.