Commit graph

74 commits

Author SHA1 Message Date
Zach Daniel
7c13322aa4 improvement: add return_destroyed? option 2022-04-05 12:42:50 -04:00
Zach Daniel
84ed398980 chore: docs/ci work 2022-04-05 03:59:34 -04:00
Zach Daniel
6c523b9752 continue working on docs 2022-04-04 14:55:05 -04:00
Zach Daniel
022708c6b5 improvement: add api option to relationships
improvement: make default actions and primary actions far more explicit

this begins the official 2.0.0 work
2022-04-04 01:48:37 -04:00
Zach Daniel
232404196b chore: add second guide shell 2022-03-28 22:57:23 -04:00
Zach Daniel
8a5f7b3f84 chore: remove guides 2022-03-27 12:14:28 -04:00
Zach Daniel
d358f4dc49 chore: get started on guides 2022-03-27 00:49:41 -04:00
kernel-io
f6214042b8
documentation: fix compile_times.md (#284) 2021-12-11 12:32:17 -05:00
Zach Daniel
88168de320 improvement: add Ash.DataLayer.Simple.set_data/2
docs: add data-layer-less resource guide
2021-12-07 21:39:07 -05:00
Zach Daniel
f124e9bf7c fix: cast nil input on strings
docs: add line on multitenancy
2021-11-11 14:27:57 -05:00
Zach Daniel
82562929c0 docs: fix docs on registry 2021-11-10 01:24:52 -05:00
Zach Daniel
9df690bfa4 docs: add docs around improving compile times 2021-11-03 17:29:24 -04:00
Zach Daniel
922c87ea85 improvement: add resource registry validation
fix: move related field validations to resource
fix: remove join_attributes, which didn't do anything anyway
2021-10-11 15:14:33 -04:00
Zach Daniel
ff756b72a7 improvement: deprecation!
A deprecation warning will be shown at compile time to illustrate
a change from listing all of your resources in an api to listing
them in a registry and connecting that registry to the api
2021-10-07 02:41:02 -04:00
Zach Daniel
b2ae6dc3ea fix: flush engine state always 2021-07-23 09:45:47 -04:00
Zach Daniel
579c83e20c fix: disallow aggregate/calculation sorting w/ keyset pagination
This can be fixed by configuring pagination to fetch the resource by keyset
(so keyset is only ever primary key), but will perform worse because
we have to fetch the record. If someone would like to implement this,
let me know.
2021-07-22 12:47:43 -04:00
Zach Daniel
8a2f431d52 docs: add guide to index 2021-07-01 22:55:07 -04:00
Zach Daniel
3aa6b6f49f docs: document expressions 2021-07-01 22:07:31 -04:00
Zach Daniel
231eeafd30 feat: expression calculations for sorting/filtering
improvement: small improvements/fixes across the board
2021-06-04 01:37:11 -04:00
Zach Daniel
968e234a31 improvement: set __source__ context for embeds 2021-05-11 00:28:26 -04:00
Christian Tovar
a4badeff52
docs: Update create_timestamp description (#234) 2021-04-30 12:11:38 -04:00
Vitor Oliveira
ba994acf8e
docs: Add postgres adapter instruction to getting started doc (#231) 2021-04-25 20:28:16 -04:00
Vitor Oliveira
cc45207aa0
docs: Minor doc changes (#224) 2021-04-10 17:36:40 -04:00
Zach Daniel
8316fa466a chore: update docs 2021-04-05 13:46:37 -04:00
Zach Daniel
f454f98f3f docs: add docs on managing relationships 2021-04-05 13:45:39 -04:00
Alan K
41442ddf19
Docs: Fix Api.get example (#219)
The `Api.get` example in the docs uses the email instead of the ID to
get the newly created resource. Trying this locally while running
through the getting started tutorial returns a `nil` resource using the
email, but the correct resource when using the ID.

This fix updates the docs to use the ID in the get call.
2021-04-03 12:28:02 -04:00
Jason Axelson
fc705ad0a5
Documentation improvements and labeled examples (#216)
Improve documentation for calculations
Add ability to "label" examples by passing a tuple instead of just a string.
Fix some minor typos
2021-03-31 16:24:06 -04:00
Jason Axelson
be56174a3d
docs: Fix some documentation warnings (#196)
i.e. warnings that appear when you run `mix docs`

Although this PR doesn't fix the majority of them, since the majority
are errors from referring to `@moduledoc false` modules in docs and typespecs.
2021-03-14 17:27:12 -04:00
Jason Axelson
3ba6b593b1
docs: Updates to the docs with a focus on the getting started docs (#195) 2021-03-14 17:14:53 -04:00
Zach Daniel
72b5a57a25 feat: functional interface on the Api module
feat: resource aliases
improvement: require completely unique action names
2021-03-08 00:59:32 -05:00
mhussa
a22f0c0122
docs: Update getting_started.md (#186)
fix next section link
2021-02-09 23:02:55 -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
Zach Daniel
6a26a583de
feat: Add Embedded Resources (#170) 2021-01-12 15:05:56 -05:00
Alex Freska
1b4194a8a4
Updates to getting starting docs (#154) 2020-12-31 18:32:17 -05:00
Zach Daniel
abff2e4b39 docs: update generated documentation to be single file 2020-12-26 23:54:36 -05:00
Zach Daniel
29e7bf5839 docs: small docs tweaks 2020-11-27 22:10:21 -05:00
mario
a5c3b02005
docs: ash phoenix getting started (#148)
Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
2020-11-27 22:06:13 -05:00
mario
8673a733c7
docs: switched id to uuid_primary_key for overall consitency with the sample (#145) 2020-11-21 15:34:56 -05:00
Zach Daniel
4b6a157f88 docs: update identities documentation 2020-11-18 02:10:17 -05:00
Zach Daniel
dc7341b5af
chore: fix table again 2020-11-15 20:18:41 -05:00
Zach Daniel
381228e436
chore: update docs table 2020-11-15 20:15:09 -05:00
mario
abb2f8e05d
getting started documentation improvements (#144)
Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
2020-11-15 20:08:04 -05:00
Zach Daniel
46efda4db4
improvement: support specifying that some options are modules 2020-10-29 00:14:01 -04:00
Zach Daniel
2333d01ddf
feat: multitenancy! and tons of various fixes (#139) 2020-10-28 01:14:17 -04:00
Zach Daniel
59063ff928
chore: docs + def -> defp 2020-10-17 13:35:09 -04:00
Zach Daniel
ca8b0d1ac3
docs: add dsl extension docs link 2020-10-15 00:56:26 -04:00
Zach Daniel
eb25d5b826
feat: add notifiers (#133) 2020-10-15 00:54:02 -04:00
Zach Daniel
c7fd192716
docs: add link to pagination article 2020-10-12 02:48:20 -04:00
Zach Daniel
f8fadc67e6
feat: Add pagination (#131) 2020-10-11 23:55:47 -04:00