Add ash framework
This commit is contained in:
parent
c16c411891
commit
86437cbb9d
10 changed files with 278 additions and 8 deletions
|
|
@ -7,6 +7,45 @@
|
|||
# General application configuration
|
||||
import Config
|
||||
|
||||
config :ash,
|
||||
allow_forbidden_field_for_relationships_by_default?: true,
|
||||
include_embedded_source_by_default?: false,
|
||||
show_keysets_for_all_actions?: false,
|
||||
default_page_type: :keyset,
|
||||
policies: [no_filter_static_forbidden_reads?: false],
|
||||
keep_read_action_loads_when_loading?: false,
|
||||
default_actions_require_atomic?: true,
|
||||
read_action_after_action_hooks_in_order?: true,
|
||||
bulk_actions_default_to_errors?: true
|
||||
|
||||
config :spark,
|
||||
formatter: [
|
||||
remove_parens?: true,
|
||||
"Ash.Resource": [
|
||||
section_order: [
|
||||
:admin,
|
||||
:postgres,
|
||||
:resource,
|
||||
:code_interface,
|
||||
:actions,
|
||||
:policies,
|
||||
:pub_sub,
|
||||
:preparations,
|
||||
:changes,
|
||||
:validations,
|
||||
:multitenancy,
|
||||
:attributes,
|
||||
:relationships,
|
||||
:calculations,
|
||||
:aggregates,
|
||||
:identities
|
||||
]
|
||||
],
|
||||
"Ash.Domain": [
|
||||
section_order: [:admin, :resources, :policies, :authorization, :domain, :execution]
|
||||
]
|
||||
]
|
||||
|
||||
config :mv,
|
||||
ecto_repos: [Mv.Repo],
|
||||
generators: [timestamp_type: :utc_datetime]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue