Adds config for import limits closes #336 #394
2 changed files with 6 additions and 5 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue