Adds config for import limits closes #336 #394

Merged
carla merged 7 commits from feature/336_import_auth into main 2026-02-02 13:15:24 +01:00
2 changed files with 6 additions and 5 deletions
Showing only changes of commit d61a939deb - Show all commits

View file

@ -52,10 +52,11 @@ config :mv,
ash_domains: [Mv.Membership, Mv.Accounts, Mv.MembershipFees, Mv.Authorization] ash_domains: [Mv.Membership, Mv.Accounts, Mv.MembershipFees, Mv.Authorization]
# CSV Import configuration # CSV Import configuration
config :mv, csv_import: [ config :mv,
max_file_size_mb: 10, csv_import: [
max_rows: 1000 max_file_size_mb: 10,
] max_rows: 1000
]
# Configures the endpoint # Configures the endpoint
config :mv, MvWeb.Endpoint, config :mv, MvWeb.Endpoint,

View file

@ -694,7 +694,7 @@ defmodule MvWeb.GlobalSettingsLiveTest do
original_config = Application.get_env(:mv, :csv_import, []) original_config = Application.get_env(:mv, :csv_import, [])
try do try do
Application.put_env(:mv, :csv_import, [max_rows: 500]) Application.put_env(:mv, :csv_import, max_rows: 500)
{:ok, view, _html} = live(conn, ~p"/settings") {:ok, view, _html} = live(conn, ~p"/settings")