firezone / firezone

Enterprise-ready zero-trust access platform built on WireGuard®.
https://www.firezone.dev
Apache License 2.0
6.73k stars 280 forks source link

no function clause matching in Web.Policies.Components.day_of_week_index/1 #5545

Closed jamilbk closed 3 months ago

jamilbk commented 3 months ago

https://console.cloud.google.com/monitoring/alerting/incidents/0.nehb3pggzn60?channelType=slack&project=firezone-staging

** (FunctionClauseError) no function clause matching in Web.Policies.Components.day_of_week_index/1
    (web 0.1.0+deadbeef) lib/web/live/policies/components.ex:217:in `Web.Policies.Components.day_of_week_index("_unused_F")'
    (elixir 1.17.1) lib/enum.ex:3348:in `anonymous fn/2 in Enum.sort_by/3'
    (elixir 1.17.1) lib/enum.ex:1711:in `anonymous fn/3 in Enum.map/2'
    (stdlib 6.0) maps.erl:860:in `:maps.fold_1/4'
    (elixir 1.17.1) lib/enum.ex:2543:in `Enum.map/2'
    (elixir 1.17.1) lib/enum.ex:3348:in `Enum.sort_by/3'
    (web 0.1.0+deadbeef) lib/web/live/policies/components.ex:57:in `anonymous fn/2 in Web.Policies.Components.map_condition_values/1'
    (elixir 1.17.1) lib/map.ex:676:in `Map.update/4'
jamilbk commented 3 months ago

Likely due to liveview 1.x changes:

https://github.com/phoenixframework/phoenix_live_view/blob/main/CHANGELOG.md

Introduced in #5349

jamilbk commented 3 months ago

See https://github.com/phoenixframework/phoenix_live_view/issues/2968#issuecomment-2120229375