ash/README.md

24 lines
1.9 KiB
Markdown
Raw Normal View History

2019-10-03 16:08:36 +13:00
# Ash
**TODO: Add description**
2019-10-06 13:33:38 +13:00
## TODO LIST (in no order)
* Add central API configuration DSL `api do ... end`
* Use this for `default_page_size` and `max_page_size`
* Make our router cabaple of describing its routes in `mix phx.routes` Chris McCord says that we could probably power that, seeing as phoenix controls both APIs, and that capability could be added to `Plug.Router`
* Finish the serializer
* Make primary key type configurable
* Make a DSL for join tables to support complex validation/hooks into how they work, support more than just table names in `join_through`
2019-11-26 06:08:38 +13:00
* DSL level validations! Things like includes validating that their chain exists. All DSL structs should be strictly validated when they are created.
* Especially at compile time, we should *never* ignore or skip invalid options. If an option is present and invalid, an error is raised.
2019-10-07 09:36:06 +13:00
* break up the `Ash` module
* Wire up/formalize the error handling
2019-11-03 09:36:46 +13:00
* Ensure that errors are properly propagated up from the data_layer behaviour, and every operation is allowed to fail
2019-11-26 12:23:59 +13:00
* figure out the ecto schema warning
* all actions need to be performed in a transaction
* document authorization thoroughly. *batch* (default) checks need to return a list of `ids` for which the check passed.
* So many parts of the system are reliant on things having an `id` key explicitly. THis will need to be addressed some day, and will be a huge pain in the ass
2019-11-26 19:50:53 +13:00
* Validate that the user resource has a get action
2019-11-26 19:52:58 +13:00
* The fact that the code level interface shouldn't be authorization is a potentially good reason to split the code level interface off of the interface that an API frontend my call into. Specifically, the grossness of it is highlighted by how we default `user` when handling actions to `:__none__`. This is because a client must be able to set the user to `nil` or a value, but the code lever interface should just skip validation (which is what `:__none__` does)