Skip to content

Commit 7507b42

Browse files
committed
hum
1 parent 41869d0 commit 7507b42

File tree

15 files changed

+104
-94
lines changed

15 files changed

+104
-94
lines changed

.github/workflows/elixir.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111
cancel-in-progress: true
1212

1313
env:
14-
CACHE_VERSION: v16
14+
CACHE_VERSION: v17
1515
PERSISTENT_CACHE_DIR: cached
1616

1717
jobs:

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# we can not use the pre-built tar because the distribution is
22
# platform specific, it makes sense to build it in the docker
33

4+
ARG ALPINE_VERSION=3.22.2
5+
46
#### Builder
5-
FROM hexpm/elixir:1.19.4-erlang-27.3.4-6-alpine-3.22.2 AS buildcontainer
7+
FROM hexpm/elixir:1.19.4-erlang-27.3.4.6-alpine-${ALPINE_VERSION} AS buildcontainer
68

79
ARG MIX_ENV=ce
810

@@ -20,7 +22,7 @@ RUN mkdir /app
2022
WORKDIR /app
2123

2224
# install build dependencies
23-
RUN apk add --no-cache git "nodejs-current=23.2.0-r1" yarn npm python3 ca-certificates wget gnupg make gcc libc-dev brotli
25+
RUN apk add --no-cache git "nodejs-current=23.11.1-r0" yarn npm python3 ca-certificates wget gnupg make gcc libc-dev brotli
2426

2527
COPY mix.exs ./
2628
COPY mix.lock ./
@@ -54,7 +56,8 @@ COPY rel rel
5456
RUN mix release plausible
5557

5658
# Main Docker Image
57-
FROM alpine:3.21.3
59+
FROM alpine:${ALPINE_VERSION}
60+
5861
LABEL maintainer="plausible.io <hello@plausible.io>"
5962

6063
ARG BUILD_METADATA={}
@@ -84,3 +87,4 @@ EXPOSE 8000
8487
ENV DEFAULT_DATA_DIR=/var/lib/plausible
8588
VOLUME /var/lib/plausible
8689
CMD ["run"]
90+

extra/lib/plausible_web/plugins/api/controllers/funnels.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule PlausibleWeb.Plugins.API.Controllers.Funnels do
55
use PlausibleWeb, :plugins_api_controller
66

77
operation(:create,
8-
id: "Funnel.GetOrCreate",
8+
operation_id: "Funnel.GetOrCreate",
99
summary: "Get or create Funnel",
1010
request_body: {"Funnel params", "application/json", Schemas.Funnel.CreateRequest},
1111
responses: %{

lib/plausible/google/ga4/api.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ defmodule Plausible.Google.GA4.API do
202202
end
203203
end
204204

205-
defp prepare_request(report_request = %GA4.ReportRequest{}, date_range, property, access_token) do
205+
defp prepare_request(%GA4.ReportRequest{} = report_request, date_range, property, access_token) do
206206
%GA4.ReportRequest{
207207
report_request
208208
| date_range: date_range,

lib/plausible/stats/query_optimizer.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ defmodule Plausible.Stats.QueryOptimizer do
100100
end
101101
end
102102

103-
defp update_time_in_order_by(query = %Query{}) do
103+
defp update_time_in_order_by(%Query{} = query) do
104104
order_by =
105105
query.order_by
106106
|> Enum.map(fn
@@ -126,7 +126,7 @@ defmodule Plausible.Stats.QueryOptimizer do
126126
# To avoid showing referrers across hostnames when event:hostname
127127
# filter is present for breakdowns, add entry/exit page hostname
128128
# filters
129-
defp extend_hostname_filters_to_visit(query = %Query{}) do
129+
defp extend_hostname_filters_to_visit(%Query{} = query) do
130130
# Note: Only works since event:hostname is only allowed as a top level filter
131131
hostname_filters =
132132
query.filters

lib/plausible_web/controllers/avatar_controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ defmodule PlausibleWeb.AvatarController do
3131
end
3232

3333
@forwarded_headers ["content-type", "cache-control", "expires"]
34-
defp forward_headers(conn = %Plug.Conn{}, headers) do
34+
defp forward_headers(%Plug.Conn{} = conn, headers) do
3535
headers_to_forward = Enum.filter(headers, fn {k, _} -> k in @forwarded_headers end)
3636
%Plug.Conn{conn | resp_headers: headers_to_forward}
3737
end

lib/plausible_web/plugins/api/controllers/custom_props.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule PlausibleWeb.Plugins.API.Controllers.CustomProps do
55
use PlausibleWeb, :plugins_api_controller
66

77
operation(:enable,
8-
id: "CustomProp.GetOrEnable",
8+
operation_id: "CustomProp.GetOrEnable",
99
summary: "Get or enable CustomProp(s)",
1010
request_body:
1111
{"CustomProp enable params", "application/json", Schemas.CustomProp.EnableRequest},
@@ -50,7 +50,7 @@ defmodule PlausibleWeb.Plugins.API.Controllers.CustomProps do
5050
end
5151

5252
operation(:disable,
53-
id: "CustomProp.DisableBulk",
53+
operation_id: "CustomProp.DisableBulk",
5454
summary: "Disable CustomProp(s)",
5555
request_body:
5656
{"CustomProp disable params", "application/json", Schemas.CustomProp.DisableRequest},

lib/plausible_web/plugins/api/controllers/goals.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule PlausibleWeb.Plugins.API.Controllers.Goals do
55
use PlausibleWeb, :plugins_api_controller
66

77
operation(:create,
8-
id: "Goal.GetOrCreate",
8+
operation_id: "Goal.GetOrCreate",
99
summary: "Get or create Goal",
1010
request_body: {"Goal params", "application/json", Schemas.Goal.CreateRequest},
1111
responses: %{
@@ -141,7 +141,7 @@ defmodule PlausibleWeb.Plugins.API.Controllers.Goals do
141141
end
142142

143143
operation(:delete_bulk,
144-
id: "Goal.DeleteBulk",
144+
operation_id: "Goal.DeleteBulk",
145145
summary: "Delete Goals in bulk",
146146
request_body: {"Goal params", "application/json", Schemas.Goal.DeleteBulkRequest},
147147
responses: %{

lib/plausible_web/plugs/favicon.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ defmodule PlausibleWeb.Favicon do
130130
end
131131

132132
@forwarded_headers ["content-type", "cache-control", "expires"]
133-
defp forward_headers(conn = %Plug.Conn{}, headers) do
133+
defp forward_headers(%Plug.Conn{} = conn, headers) do
134134
headers_to_forward = Enum.filter(headers, fn {k, _} -> k in @forwarded_headers end)
135135
%Plug.Conn{conn | resp_headers: headers_to_forward}
136136
end

mix.exs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,24 +70,24 @@ defmodule Plausible.MixProject do
7070
{:bamboo_mua, "~> 0.2.0"},
7171
{:bcrypt_elixir, "~> 3.3"},
7272
{:bypass, "~> 2.1", only: [:dev, :test, :ce_test]},
73-
{:ecto_ch, "~> 0.7.1"},
73+
{:ecto_ch, "~> 0.8.2"},
7474
{:cloak, "~> 1.1"},
7575
{:cloak_ecto, "~> 1.2"},
7676
{:combination, "~> 0.0.3"},
7777
{:cors_plug, "~> 3.0"},
7878
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
7979
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
8080
{:double, "~> 0.8.0", only: [:dev, :test, :ce_test, :ce_dev]},
81-
{:ecto, "~> 3.13.2"},
81+
{:ecto, "~> 3.13.5"},
8282
{:ecto_sql, "~> 3.13.2"},
8383
{:envy, "~> 1.1.1"},
8484
{:eqrcode, "~> 0.2.1"},
8585
{:ex_machina, "~> 2.3", only: [:dev, :test, :ce_dev, :ce_test]},
8686
{:excoveralls, "~> 0.10", only: :test},
87-
{:finch, "~> 0.19.0"},
87+
{:finch, "~> 0.20.0"},
8888
{:floki, "~> 0.36"},
8989
{:lazy_html, "~> 0.1.8"},
90-
{:fun_with_flags, "~> 1.11.0"},
90+
{:fun_with_flags, "~> 1.13.0"},
9191
{:fun_with_flags_ui, "~> 1.0"},
9292
{:locus, "~> 2.3"},
9393
{:gen_cycle, "~> 1.0.4"},
@@ -97,33 +97,33 @@ defmodule Plausible.MixProject do
9797
{:mox, "~> 1.0", only: [:test, :ce_test]},
9898
{:nanoid, "~> 2.1.0"},
9999
{:nimble_totp, "~> 1.0"},
100-
{:oban, "~> 2.19.1"},
100+
{:oban, "~> 2.20.1"},
101101
{:observer_cli, "~> 1.7"},
102102
{:opentelemetry, "~> 1.1"},
103103
{:opentelemetry_api, "~> 1.1"},
104104
{:opentelemetry_ecto, "~> 1.1.0"},
105105
{:opentelemetry_exporter, "~> 1.6.0"},
106106
{:opentelemetry_phoenix, "~> 1.0"},
107107
{:opentelemetry_oban, "~> 1.1.1"},
108-
{:phoenix, "~> 1.8.0"},
108+
{:phoenix, "~> 1.8.2"},
109109
{:phoenix_view, "~> 2.0"},
110110
{:phoenix_ecto, "~> 4.5"},
111111
{:phoenix_html, "~> 4.1"},
112112
{:phoenix_live_reload, "~> 1.2", only: [:dev, :ce_dev]},
113113
{:phoenix_pubsub, "~> 2.0"},
114-
{:phoenix_live_view, "~> 1.1"},
114+
{:phoenix_live_view, "~> 1.1.17"},
115115
{:php_serializer, "~> 2.0"},
116116
{:plug, "~> 1.13", override: true},
117117
{:prima, "~> 0.2.1"},
118118
{:plug_cowboy, "~> 2.3"},
119119
{:polymorphic_embed, "~> 5.0"},
120-
{:postgrex, "~> 0.19.0"},
120+
{:postgrex, "~> 0.21.1"},
121121
{:prom_ex, "~> 1.8"},
122-
{:peep, "~> 3.4"},
122+
{:peep, "~> 3.0"},
123123
{:public_suffix, git: "https://github.com/axelson/publicsuffix-elixir"},
124124
{:ref_inspector, "~> 2.0"},
125125
{:referrer_blocklist, git: "https://github.com/plausible/referrer-blocklist.git"},
126-
{:sentry, "~> 10.8.1"},
126+
{:sentry, "~> 11.0.4"},
127127
{:simple_saml, "~> 1.2"},
128128
{:xml_builder, "~> 2.1"},
129129
{:siphash, "~> 3.2"},
@@ -136,24 +136,24 @@ defmodule Plausible.MixProject do
136136
{:mjml, "~> 3.1.0"},
137137
{:heroicons, "~> 0.5.0"},
138138
{:zxcvbn, git: "https://github.com/techgaun/zxcvbn-elixir.git"},
139-
{:open_api_spex, "~> 3.18"},
139+
{:open_api_spex, "~> 3.22.1"},
140140
{:joken, "~> 2.5"},
141141
{:paginator, git: "https://github.com/duffelhq/paginator.git"},
142-
{:scrivener_ecto, "~> 2.0"},
142+
{:scrivener_ecto, "~> 3.1"},
143143
{:esbuild, "~> 0.7", runtime: Mix.env() in [:dev, :ce_dev]},
144144
{:tailwind, "~> 0.4.0", runtime: Mix.env() in [:dev, :ce_dev]},
145145
{:ex_json_logger, "~> 1.4.0"},
146-
{:ecto_network, "~> 1.5.0"},
146+
{:ecto_network, "~> 1.6.0"},
147147
{:ex_aws, "~> 2.5"},
148148
{:ex_aws_s3, "~> 2.5"},
149149
{:sweet_xml, "~> 0.7.4"},
150150
{:zstream, "~> 0.6.4"},
151151
{:con_cache,
152152
git: "https://github.com/aerosol/con_cache", branch: "ensure-dirty-ops-emit-telemetry"},
153-
{:req, "~> 0.5.0"},
153+
{:req, "~> 0.5.16"},
154154
{:happy_tcp, github: "ruslandoga/happy_tcp", only: [:ce, :ce_dev, :ce_test]},
155-
{:ex_json_schema, "~> 0.10.2"},
156-
{:odgn_json_pointer, "~> 3.0.1"},
155+
{:ex_json_schema, "~> 0.11.1"},
156+
{:odgn_json_pointer, "~> 3.1.0"},
157157
{:phoenix_bakery, "~> 0.1.2", only: [:ce, :ce_dev, :ce_test]},
158158
{:site_encrypt, github: "sasa1977/site_encrypt", only: [:ce, :ce_dev, :ce_test]},
159159
{:phoenix_storybook, "~> 0.9"},

0 commit comments

Comments
 (0)