Changelog History
Page 1
-
v2.4.2 Changes
November 03, 2022๐ Bug Fixes:
properly set error vars with list constraints
when creating changesets/queries that already have arguments, revalidate arguments
๐ Improvements:
โก๏ธ update to latest spark
๐ support statically configured upsert actions
โ add more builders
-
v2.4.1 Changes
October 31, 2022๐ Bug Fixes:
๐ fix depend on resources to depend on each resource
๐ allow references on both sides of
in
properly upsert all explicitly changed fields
traverse maps for
template_references_actor?/1
๐ Improvements:
- replace templates in change/preparation/validation opts
-
v2.4.0 Changes
October 31, 2022๐ Features:
- ๐ support anonymous functions in DSL
These include:
- custom create/read/update/destroy actions - changes - preparations - validations - calculations - manual relationships See the respective DSL guides for more.
๐ Bug Fixes:
don't add required belongs_to error if changeset is invalid (#437)
don't lazy load when managing relationships
๐ Improvements:
๐ support anonymous functions for various behaviour based options
โ add more ergonomic manual action definitions.
โก๏ธ more additions to the resource builder, update spark
-
v2.3.0 Changes
October 27, 2022๐ Features:
Ash.PlugHelpers: standardise conn interface for actors/tenants. (#432)
โ add
Ash.Resource.Builder
, the start of DSL builder utilities of rextension writing
๐ Bug Fixes:
DataLayer: incorrect typespec for
run_query/2
callback. (#431)โก๏ธ in Ash.Seed, don't try to update a non-loaded record
properly load manual to_one relationships
properly compare against decimal values
๐ Improvements:
pass tenant to calculation query explicitly
๐ allow using
get_path/2
by name, as well as bracket accessSVG, PDF, PNG, Markdown and plain mermaid formats (#428)
โก๏ธ optimize nested
exists
filter statements๐ support floats & decimals in the
compare
validation
-
v2.2.0 Changes
October 21, 2022๐ Features:
- add
Ash.Api.Info.depend_on_resources/1
to get the list of resources at compile time
๐ Bug Fixes:
- don't attempt to re-authorize access to already retrieved records in
Api.load/2
๐ Improvements:
when returning a page, choose keyset if
before
orafter
was suppliedโ add keysets to records if any action supports keysets
๐ show conditions in policy breakdowns
- add
-
v2.1.0 Changes
October 19, 2022๐ Features:
- Custom short names for types (#423)
๐ A compile env can be set to allow customizing the available type short names. This supports two things:
- Adding custom type short names, like
attribute :price, :money
mapping toMyApp.Type.Money
- Overriding the builtin type short names, like
attribute, :price, :string
mapping to a custom string type implementation (there is likely no reason to do this) Commit with unknown type in: feat: Custom short names for types (#423)
๐ See the docs for
Ash.Type
for more information- โ add
now()
to expressions
๐ Bug Fixes:
- 0๏ธโฃ set defaults before running changes
๐ Improvements:
- sort relationship in order of input when managing it
This helps with things like https://github.com/ash-project/ash_phoenix/issues/57 which involve rendering the relationship value after editing it. Retaining the order allows direct reuse without any gymnastics
-
v2.0.0 Changes
October 17, 2022๐ Features:
basic livebook generator and mix task (#420)
mermaid class diagram mix task (#417)
๐ Bug Fixes:
properly lateral join when possible
๐ use
prepend?: true
when applying relationship sortsdon't miss dependencies in flow diagrams
๐ fix deps finding in flow charts & flows
properly load calcs/aggs on manual relationships
properly load nested manual relationships
๐ allow overriding validation message on a list of errors (#412)
๐ฉ reraise errors on task error
don't show dependencies for run_flow steps in expanded view(they are duplicates)
๐ Improvements:
don't eager evaluate
type/2
๐ support depending on requests that will be added
๐ support dynamic action steps in
Ash.Flow
โ add
prepend?: true
option to sortโก๏ธ use
simple_equality?/0
to allow for optimized equality checkingmermaid mix task for ER diagrams (#415)
โ try to resolve flaky tests by not using named tables for private ets resources
๐ better unknown error handling
๐ allow passing query or changeset in can/can?/4 (#410)
-
v2.0.0-rc.9 Changes
September 21, 2022๐ Bug Fixes:
- ๐ fix
replace_relationship
type
- ๐ fix
-
v2.0.0-rc.8 Changes
September 21, 2022๐ Bug Fixes:
properly handle args/nested expression for tuple calcs
โ add a case for calculations as tuples in expr filters
return count, not {:ok, count}
bad return value when async fetching counts
โ remove dbg() call
๐ Improvements:
โก๏ธ update to latest spark, support dsls in resource info
deprecate
:replace
in favor of:append_and_remove
โ add
loading?/1
query helperโ add
loading/1
built in check
-
v2.0.0-rc.7 Changes
September 15, 2022๐ Bug Fixes:
nil
casts as any type (sort of)return
nil
onnil
inputs for length/1๐ฉ properly reraise errors raised in tasks
properly return errors from tasks
๐ use
Comp.equal?/2
when finding loaded data matches