Commit graph

695 commits

Author SHA1 Message Date
Zach Daniel
d42c778a0d improvement: many compile time fixes via code splitting
feat: refactored manage_relationship options/behavior
2021-02-22 20:44:03 -05:00
zimt28
db533450ed
improvement: Guess destination_field for has many relationships (#187) 2021-02-15 13:32:44 -05:00
mhussa
a22f0c0122
docs: Update getting_started.md (#186)
fix next section link
2021-02-09 23:02:55 -05:00
Zach Daniel
4f9badac6c
Update backers.md 2021-02-09 21:44:05 -05:00
Darren Black
983a711837
improvement: Implement string length validation (#183)
Co-authored-by: Darren Black <darren@ifixsystems.com.au>
2021-02-08 18:16:32 -05:00
Zach Daniel
3739b4c33a chore: update doc formatting 2021-02-05 19:07:47 -05:00
Zach Daniel
c9cf8b5e74 chore: release version v1.33.0 2021-02-05 18:57:36 -05:00
Zach Daniel
03b6714e6f improvement: set_context change/preparation
fix: support `manage_relationship` for `belongs_to`
2021-02-05 18:56:56 -05:00
Zach Daniel
142b3bf7f9 feat: add default_context
feat: add `manage_relationship/4`

feat: add relationship specific context (for postgres polymorphism)

feat: add `reject` (opposite of `accept`)

improvement: set `accept` by default
2021-02-04 17:15:15 -05:00
Zach Daniel
008270749b chore: release version v1.32.2 2021-01-28 14:49:18 -05:00
Zach Daniel
dd26beb79b chore: add more authorization tests
chore: improve authorization test helper

improvement: support `{:filter, _}` authorization results for changesets
2021-01-28 14:49:08 -05:00
Zach Daniel
6d982a6bd2 chore: release version v1.32.1 2021-01-26 23:49:29 -05:00
Zach Daniel
0ac0be6a1f fix: only run authorization once per request
fix: don't error on replacing empty relationship with empty

improvement: support `tenant` option to `get/2`

improvement: support `message` option on identities
2021-01-26 23:48:00 -05:00
Zach Daniel
8706047d4a chore: release version v1.32.0 2021-01-25 02:15:22 -05:00
Zach Daniel
1004ceb71d feat: add after_action for queries
fix: default to calculating filters on `data_layer_query`
2021-01-25 02:14:22 -05:00
Zach Daniel
1705f72463 chore: release version v1.31.1 2021-01-24 13:48:25 -05:00
Zach Daniel
8e74ff62a6 fix: remove invalid boolean expression optimization
improvement: make form errors work better with phoenix

this involves temporarily making embed error messages *worse*
but we can improve them as we get more usage
2021-01-24 13:47:10 -05:00
Zach Daniel
834850dec0 chore: release version v1.31.0 2021-01-23 22:32:34 -05:00
Zach Daniel
61e6b7c80c fix: various ci_string improvements
feat: add `contains/2` query function
2021-01-23 22:28:56 -05:00
zimt28
63483822d6
Update transformer.ex (#179) 2021-01-22 20:26:23 -05:00
Zach Daniel
a890914e36 chore: release version v1.30.2 2021-01-22 18:20:21 -05:00
Zach Daniel
cd7139a809 fix: add explicit jason dependency 2021-01-22 18:20:08 -05:00
Zach Daniel
8c18d1f87a chore: release version v1.30.1 2021-01-22 16:43:28 -05:00
Zach Daniel
c62ef24334 fix: update elixir versions in CI 2021-01-22 16:43:17 -05:00
Zach Daniel
d6ce1f82e2 chore: release version v1.30.0 2021-01-22 16:42:40 -05:00
Zach Daniel
bb91fd4bc7 fix: add action filters in for_read/3
fix: don't let local runner processes mix up messages

fix: runtime filter filters properly
2021-01-22 16:41:32 -05:00
Zach Daniel
c79167834f chore: release version v1.29.0-rc1 2021-01-21 15:42:50 -05:00
Zach Daniel
afcdc632bd chore: require elixir 1.11 2021-01-21 15:36:49 -05:00
Zach Daniel
ca176f6e1a chore: release version v1.29.0-rc0 2021-01-21 15:31:03 -05:00
Zach Daniel
7ea9b082f1 improvement: support all string constraints for ci_string 2021-01-21 15:25:07 -05:00
Zach Daniel
f6f5d194bf feat: freeform expressions
feat: validatiosn in actions

feat: query arguments

feat: add `Ash.Query.for_read/3`

feat: return changeset with API errors

feat: add case insensitive string `CiString`/`:ci_string`

feat: support `context/1` and `arg/1` in filter templates

feat: support targeting notifications with the `for` option

feat: add `ago/2` query function

feat: add basic arithmetic operators (+, *, -, /)

feat: `sensitive?` option for attributes

feat: `sensitive?` option for arguments

feat: `private` arguments, which can’t be set using `for_<action>`

feat: add `prevent_change` which will erase changes just before the changeset is committed

feat: add `match?` validation that supports a custom error message

feat: add `interval` type to support `ago/2` function

feat: add `url_encoded_binary` type

feat: add `function` type

improvement: `changing?` is now a validation

improvement: add `Transformer.get_persisted/3`

improvement: add `api` field to `Notification`

improvement: standardize errors, add `to_error_class`

improvement: use `Comp` everywhere

Improvement: use action on changeset if set by `for_<action_type>`

improvement: `action_failed?` field on change sets

improvement: remove ability for data layers to add operators (for now at least)

Improvement: Changeset.apply_attributes/2 now returns an error tuple

Improvement: add a bunch of new/informative errors

improvement: runtime filter now uses left join logic (a naive implementation of it)

improvement: support more filter templates in resources

Improvement: basic/naive type system for operators/functions

Fix: properly expand module aliases for options w/o compile time dependency

chore(engine): track changeset changes for the request with `manage_changeset?: true`
2021-01-21 15:22:50 -05:00
zimt28
6ddae6850f
improvement: Add trim/allow_empty to string type (#171) 2021-01-15 20:41:21 -05:00
zimt28
2a7acffabb
Always validate constraints (#173) 2021-01-14 10:52:18 -05:00
Zach Daniel
13ca0b2976 chore: generalize DSL tooling 2021-01-14 01:17:26 -05:00
Zach Daniel
36749669ca chore: release version v1.28.1 2021-01-12 15:41:47 -05:00
zimt28
31cb4f4be3
improvement: Improve attribute defaults (#164) 2021-01-12 15:40:55 -05:00
Zach Daniel
f2650d6d48 chore: use uuid_primary_key in sort_test 2021-01-12 15:40:21 -05:00
Zach Daniel
ed76336bbf docs: add embedded resources guide and titles 2021-01-12 15:25:59 -05:00
Zach Daniel
f4af0568d8 chore: release version v1.28.0 2021-01-12 15:06:55 -05:00
Zach Daniel
6a26a583de
feat: Add Embedded Resources (#170) 2021-01-12 15:05:56 -05:00
zimt28
db6bdfcf15
improvement: Add built in decimal type (#162) 2021-01-09 11:58:52 -05:00
Zach Daniel
9fbce8e198 chore: fix git diff in mix.lock 2021-01-09 11:57:39 -05:00
Zach Daniel
b6b16fe789 chore: update decimal dependency 2021-01-09 11:48:03 -05:00
zimt28
4404da93ce
fix: Correct error message (#163) 2021-01-09 11:36:01 -05:00
Zach Daniel
9abdcc62c1 chore: update git_ops 2021-01-08 15:27:39 -05:00
Zach Daniel
a114cde317 chore: release version v1.27.1 2021-01-08 14:29:27 -05:00
Zach Daniel
dbf9f82802 improvement: add Ash.Sort.parse_input/2
fix: fix small sort bugs
2021-01-08 14:22:31 -05:00
Zach Daniel
9a9745be24 chore: update git_ops 2021-01-08 12:48:58 -05:00
Zach Daniel
fcbf6e2522 chore: add upgrade guide to 1.27.0+ 2021-01-08 12:22:53 -05:00
Zach Daniel
da78630b4b chore: release version v1.27.0 2021-01-08 12:16:13 -05:00