Commit graph

167 commits

Author SHA1 Message Date
Zach Daniel
5500d65ddc ci: add optional codegen step to CI 2024-08-16 14:31:41 -04:00
Jonatan Männchen
5838a856c8
docs: Fix SECURITY.md badge URL (#1353) 2024-07-28 08:39:15 -04:00
Zach Daniel
ac87338980 chore: remove unnecessary quotes from dependabot.yml 2024-06-18 10:15:10 -04:00
Zach Daniel
17bc583ccf ci: dependabot improvements 2024-06-18 10:12:14 -04:00
Zach Daniel
400fc4aea3 chore: set postgres to 13 2024-05-06 11:02:48 -04:00
Zach Daniel
ae36e2ebd4 chore: don't use cache when building docs 2024-05-01 16:42:35 -04:00
Zach Daniel
f0f73cfcaf chore: change default to 14 2024-04-23 12:15:57 -04:00
Zach Daniel
1ead655a3a chore: set up security policy 2024-04-21 09:48:14 -04:00
Zach Daniel
b17228e58e improvement: add mix deps.audit task to shared CI 2024-04-21 09:15:51 -04:00
Zach Daniel
a27f1be64e chore: don't try to migrate tenants in sqlite 2024-04-10 22:42:32 -04:00
d49ffe6e7b
chore: enable dependabot for mix dependencies. 2024-04-11 09:19:05 +12:00
Zach Daniel
3c6a556da8 chore: remove ash_three reference in CI 2024-04-06 15:12:49 -04:00
Zach Daniel
2a585662ad ci: remove unnecessary ash_three flag in matrix 2024-04-05 20:00:22 -04:00
Zach Daniel
527370c890 ci: create and migrate for ash_oban 2024-04-05 19:51:52 -04:00
Zach Daniel
0a99500c82 ci: don't migrate tenants for ash_sqlite 2024-04-05 19:48:50 -04:00
Zach Daniel
e9e6933ca1 chore: add additional subprojects to testing 2024-04-05 19:29:46 -04:00
Zach Daniel
fe1534b345 chore: fix docs publishing 2024-04-05 19:10:14 -04:00
Zach Daniel
a6c9fb0282 ci: only deploy docs on pushes to main branch 2024-04-05 06:17:03 -04:00
Zach Daniel
7c32e74795 ci: properly deploy docs 2024-04-04 18:26:25 -04:00
Zach Daniel
4942f3605d ci: github pages documentation 2024-04-04 16:32:24 -04:00
Zach Daniel
5967ed3a48 improvement!: 3.0 (#955)
* improvement!: use `%Ash.NotSelected{}` for unselected values

* improvement!: default `require_atomic?` to `true`

* improvement!: raise errors on unknown generic action arguments

* improvement!: default bulk strategy to `:atomic`

* improvement!: warnings on `require_atomic?` `true` actions
improvement!: revise `Ash.NotSelected` to `Ash.NotLoaded`
improvement!: errors on unknown action inputs across the board

* doc: clarify wording in notifiers.md

closes #889

* improvement!: default `api.authorization.authorize` to `:by_default`

* improvement!: require the api when constructing changesets

this commit also fixes some work from prior commits around
the default value for the `authorize` option

* improvement!: code_interface.define_for -> code_interface.api

`code_interface.define_for` is now `code_interface.api`. Additionally, it is set automatically if the `api` option is specified on `use Ash.Resource`.

* improvement!: remove registries

* improvement!: pubsub notifier default to `previous_values?: false`
improvement!: requires_original_data? callback defaults to false

* improvement!: rename Ash.Calculation -> Ash.Resource.Calculation
improvement!: improve `Ash.Query.Calculation.new` signature
improvement!: anonymous function calculations now take lists and return lists
improvement!: make callback contexts into structs
improvement!: pass context to builtin lifecycle hook changes
improvement!: calculation arguments are now in the `arguments` key of the context

* chore: fix build

* improvement!: remove `aggregates` and `calculations` from `Filter.parse` and `Filter.parse_input`

* improvement: update spark to 2.0

* improvement!: make picosat_elixir optional with `simple_sat`

* improvement!: rename api to domain

* docs: add more info to upgrading guide

* docs: tweak docs formatting

* improvement!: remove `Ash.Changeset.new!`

* docs: update docs for `Ash.Changeset.new/1`

* improvement!: deprecate `private?: false` in favor of `public?: true`

* doc: add upgrade guide for private -> public

* improvement: update reactor to 3.0

* improvement!: default `default_accept` is now `[]`

* improvement!: `Ash.CiString.new/1` returns `nil` on `nil` input

* improvement!(Ash.Reactor): Improve integration with Ash 3.0 changes.

* improvement!: clean up and reorganize `Ash` functions

this is in preparation of deprecating the functions that are defined
on the api

improvement!: remove context-based functionality

* chore: update docs references from `Ash.Domain` to `Ash`

* chore: fix bad merge

* chore: fix context access in atomic changes

* improvement!: Deprecate calling functions on (domain) api in favor of `Ash`

* improvement!: add `attribute_public?` and update `attribute_writable?` behavior

* improvement!: update atomic behaviors, default to invalid

* chore: update downcase docs

* improvement!: changeset.filters -> changeset.filter

* improvement!: remove deprecated functions

* improvement!: remove and simplify `Ash.Filter.TemplateHelpers`

* improvement: import Ash.Expr in modules where it is used
improvement: require Ash.QUery in modules where it makes sense

* fix!: keyword lists are no longer special cased in ash expressions

* improvement: add structs for more context implementations

* chore: small tweaks, finish `:all` -> `:*` conversion

* chore: update DSL docs for multitenancy.global?

* improvement: ensure selects are applied on destroys
chore: remove TODOs

* chore: some docs changes

* improvement!: introduce strict mode to calculations

* chore: update tests

* improvement: support custom expressions

* docs: document custom expressions

* chore: fix and test custom expressions and function fragments
docs: update relevant docs w/ the changes

* improvement!: reverse order of before action & before transaction hooks

* improvement!: default read actions are now paginatable

* improvement!: require explicit accept lists in default actions

* chore: update docs

* improvement!: remove Ash.Flow and Ash.Engine

* chore: unlock unused deps

* chore: don't use unused variable

* chore: include ash flow change in upgrade guide

* improvement!: standardize various exception keys and names

* improvement!: use `Splode` for errors

* improvement: update upgrade guide to include Splode

* feat: code interface on the domain

* improvement: only require primary key if resource has actions or fields
improvement: only build schema if resource has actions or fields
improvement: verify primary key in its own verifier

* improvement: add `resource/1` builtin check

* improvement!: move simple_notifiers to an option instead of a DSL builder
improvement!: update spark for better autocomplete, configure autocomplete for key functions
docs: replace `an domain` with `a domain`

* improvement: better code interface documentation

* fix: set tenant on query so that root calles to Api.aggreagte work as expected (#929)

* chore: fixes from previous improvements

* chore: update splode

* chore: update splode

* improvement!: swap position of sort order and arguments in calculation sorting

* improvement!: add `include_nil?` aggregate option, and default it to `false`

* improvement: support notifiers within actions

* improvement: support specifying multiple filters

* improvement: add `sortable?` flags to all fields
improvement: support multiple filters on relationships

* improvement: support sensitive? on calculations and arguments

* improvement: validate resources in inputs to code interface

* chore: don't require explicit accept lists when using `default_accept :*`

* chore: update spark

* chore: update public attribute handling per 3.0

* improvement: update reactor and tests

* chore: better error message

* chore: fix rebase issue

* chore: handle merge issues
improvement: don't require domain on relationships if destination has domain

* improvement!: errors on unknown inputs for calculations

* improvement: always choose to cast atomic

* improvement: support casting some embeds atomically

* improvement: various 3.0 updates, documented in upgrade.md

* chore: Add failing tests for loads with with explicit domains. (#948)

Co-authored-by: James Harton <james@harton.nz>

* improvement: ensure non-static dynamic domains works

* improvement: add Ash.ToTenant protocol

* chore: add docs for no ToTenant option

* fix: properly construct new query in `build/3`

* chore: update simple_sat dependency

* chore: don't reselect when missing primary keys

* chore: remove IO.inspect

* chore: update spark

* chore: update spark

* improvement: use `Keyword.put_new` in `Ash.Context.to_opts` (#953)

* improvement: support bulk and atomic operations in code interfaces

---------

Co-authored-by: James Harton <james@harton.nz>
Co-authored-by: WIGGLES <55168935+WIGGLES-dev@users.noreply.github.com>
Co-authored-by: Dmitry Maganov <vonagam@gmail.com>
2024-03-27 16:31:59 -04:00
Zach Daniel
c36f3ba2ab fix: properly set context on query and changeset 2024-02-21 08:16:23 -05:00
Zach Daniel
eefe5b11ba ci: add ash_oban to test-subprojects 2024-02-20 14:05:00 -05:00
Zach Daniel
cfe5df3241 ci: create db for ecto_postgres 2024-02-20 13:54:54 -05:00
Zach Daniel
8785c0f629 ci: add options for postgres CI 2024-02-20 13:50:34 -05:00
Zach Daniel
56a75782e3 chore: update erlang/elixir version 2024-01-25 13:47:37 -05:00
Zach Daniel
f487bbb316 chore: add missing CI dep 2023-12-20 09:27:47 -05:00
Zach Daniel
0f734b2538 chore: rename CI 2023-12-20 09:26:26 -05:00
Zach Daniel
d9587710a2 chore: cleanup 2023-12-20 09:25:57 -05:00
Zach Daniel
22f71aa36c improvement: test ASH_THREE subprojects 2023-12-20 09:24:55 -05:00
Zach Daniel
5315d3d6c4 chore: remove sqlite for now, again 2023-11-29 21:23:58 -05:00
Zach Daniel
61351e3981 ci: test migration generation in subprojects as well 2023-11-29 09:09:05 -05:00
Zach Daniel
82059d0dc6 chore: add postgres-version variable 2023-11-17 06:38:36 -05:00
Zach Daniel
539f5a1727 fix: remove invalid usages of unsafe_change_attribute/3
ci: test against `ash_paper_trail`
2023-10-25 13:06:04 -04:00
Zach Daniel
b9c514baf9 ci: temporarily disable ash_sqlite testing 2023-10-21 23:31:32 -04:00
Zach Daniel
346b942f5e ci: the org name is not ash-sqlite lol 2023-10-17 15:14:19 -04:00
Zach Daniel
c12f24d55d chore: changeset optimizations
ci: test ash-sqlite subproject
2023-10-17 10:49:37 -04:00
Zach Daniel
7e2c1d8b62 chore: add sqlite option 2023-10-11 15:57:26 -04:00
Zach Daniel
513a822604 chore: test against latest elixir 2023-10-02 11:33:52 -04:00
Zach Daniel
5aed668c68 chore: test more subprojects 2023-10-02 10:28:26 -04:00
Zach Daniel
d2eeadba4b docs: various improvements to docs, and new guide on structuring your project 2023-09-29 11:54:43 -04:00
Zach Daniel
ab52855600 improvement: recommit the dsl cheatsheets, and update ash-ci 2023-09-14 17:16:35 -04:00
Zach Daniel
a2baf28d04 chore: update test-subprojects 2023-06-10 00:16:52 -04:00
Zach Daniel
51d0eeb08b chore: remove experimental CI 2023-04-21 10:58:55 -06:00
9c5119d8c8 chore: add read_uses_flow? feature flag. 2023-03-29 16:15:59 +13:00
Zach Daniel
4cab2e8351 ci: run CI on pull request 2023-02-21 09:39:56 -05:00
Zach Daniel
fbc1cd3931 ci: work on ci 2023-02-16 23:42:14 -05:00
Zach Daniel
042953cdf7 ci: proper condition on deploy step 2023-02-16 17:47:26 -05:00
Zach Daniel
e9abd5eef6 chore: declare secrets explicitly 2023-02-16 17:34:17 -05:00
Zach Daniel
8201b64051 ci: use secrets, not with 2023-02-16 17:33:08 -05:00