Commit graph

4441 commits

Author SHA1 Message Date
Zach Daniel
0576c8c602 fix: set upsert? option when managing relationships in bulk creation 2024-08-06 12:45:23 -04:00
Zach Daniel
40a832019e fix: resolve nested expression calculation references in runtime filters
fix: properly consider not-loaded record calculations as `:unknown`
2024-08-06 08:44:49 -04:00
Minsub Kim
ad1a634fc0
test: use other resource's calculation in expr (#1365) 2024-08-06 08:44:15 -04:00
Zach Daniel
960af4b887 fix: handle nil in atomic array casting 2024-08-06 07:11:56 -04:00
Zach Daniel
58065c31cd improvement: remove :comparable as a dependency
It all compiles conditionally, so that if an explicit dependency exists
on `comp` it will still be used
2024-08-05 16:04:47 -04:00
Zach Daniel
e94e484885 chore: remove IO.inspect 2024-08-05 12:37:28 -04:00
Zach Daniel
c4a910a5d1 improvement: support authorize_with option on Ash.read 2024-08-05 12:36:19 -04:00
Zach Daniel
85c92ce9cc chore: use nils_distinct? 2024-08-05 11:01:16 -04:00
Zach Daniel
3667760717 chore: format 2024-08-05 10:35:41 -04:00
m0rt3nlund
4508b439a5
improvement: Add defaults and typespec to resulting Resource struct (#1364)
* improvement: Add typespec to resource if it doesn't exist

---------

Co-authored-by: morten.lund@maskon.no <morten.lund@maskon.no>
Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
2024-08-05 10:35:17 -04:00
Zach Daniel
4780376a8e fix: respect previously validated-for-action query for aggregates 2024-08-05 10:09:38 -04:00
Zach Daniel
17feea7a14 chore: update docs on atomics 2024-08-04 08:56:36 -04:00
Zach Daniel
e3e492ef65 fix: use timestamps() instead of timestamps 2024-08-02 12:49:26 -04:00
Zach Daniel
54738baad2 fix: prefer source_attribute is required, instead of relationship name
we only do this if the source attribute is accepted by the action

fixes #1362
2024-08-02 09:41:34 -04:00
dependabot[bot]
4e223cb4e0
chore(deps): bump the production-dependencies group with 2 updates (#1361) 2024-08-01 20:41:43 -04:00
Zach Daniel
3c8a48c07d chore: release version v3.3.3 2024-08-01 15:37:40 -04:00
Zach Daniel
28f73546cc fix: roll back bulk update/destroy on before action error 2024-08-01 12:09:01 -04:00
Zach Daniel
f8fc4cd521 fix: delete ash_notifications from pdict after reading 2024-08-01 10:42:19 -04:00
Zach Daniel
de7bd3576a docs: add typespec for build/2 2024-07-31 21:53:03 -04:00
Zach Daniel
0ecf92a705 docs: update changelog 2024-07-31 21:07:25 -04:00
Zach Daniel
89200d554a chore: release version v3.3.2 2024-07-31 21:04:54 -04:00
Zach Daniel
ea7abca878 remove IO.inspect 2024-07-31 18:27:59 -04:00
Zach Daniel
266958d326 improvement: add --timestamps argument to ash.gen.resource
fix: properly parse multiple occurrences of :keep arguments
2024-07-31 17:47:29 -04:00
Zach Daniel
db54a655c8 fix: properly key nested calculations and add additional tests 2024-07-31 13:19:04 -04:00
Zach Daniel
2843f8d181 fix: pass relationship path down when merging query loads 2024-07-31 10:10:10 -04:00
Zach Daniel
8f865c11cf fix: don't set --name nil when calling codegen tasks
closes #1360
2024-07-31 09:43:40 -04:00
Torkild Gundersen Kjevik
77d12dc689
docs: Add section regarding strict-loading for manual relationships. (#1359)
* Add section about strict-loading for manual relationships.

* Remove comment.
2024-07-31 09:03:10 -04:00
Zach Daniel
8a368c0fcd fix: fix behavior of synthesized joins across data layers
test: fix our testing set up so its actually testing join synthesizer

closes #1354
2024-07-30 22:11:32 -04:00
Zach Daniel
26f4a1595b chore: use .has_validate? on conditions, not has_batch_change? 2024-07-30 06:51:58 -04:00
Zach Daniel
f5210692bf chore: update changelog 2024-07-30 06:48:39 -04:00
Zach Daniel
c74ac7f955 chore: release version v3.3.1 2024-07-30 06:47:18 -04:00
Zach Daniel
55456b3884 fix: properly parse domain module in mix ash.gen.domain 2024-07-30 06:45:24 -04:00
Zach Daniel
cb7b712460 improvement: implement change/3 automatically if batch callbacks are defined
fix: properly handle mixed atomic & non-atomic validations/changes
2024-07-29 19:54:12 -04:00
Barnabas Jovanovics
1ce0480a85
test: tests for atomic only validation (#1331) 2024-07-29 15:29:39 -04:00
Zach Daniel
1c641faf2e fix: properly find data layer predicates when name is provided as a string
closes #1357
2024-07-29 15:25:17 -04:00
Barnabas Jovanovics
ac18d1804b
fix: set accessing from and join read action for many_to_many relationships correctly (#1355) 2024-07-29 07:54:23 -04:00
Jonatan Männchen
5838a856c8
docs: Fix SECURITY.md badge URL (#1353) 2024-07-28 08:39:15 -04:00
Zach Daniel
b3ac13e760 chore: release version v3.3.0 2024-07-27 17:05:46 -04:00
Zach Daniel
303da2a97f improvement: better positional argument handling with igniter 2024-07-26 13:43:51 -04:00
Zach Daniel
dc4a63c86c fix: ensure that statuses are set correctly on bulk actions
fix: properly transfer process context(tracers) for bulk actions

closes #1332
2024-07-26 11:38:41 -04:00
Jonatan Männchen
3de985ccc5
feat: Add Ash.Type.File (#1337) 2024-07-26 07:57:23 -04:00
dependabot[bot]
ea5eb5f552
chore(deps): bump igniter in the production-dependencies group (#1348)
Bumps the production-dependencies group with 1 update: [igniter](https://github.com/ash-project/igniter).


Updates `igniter` from 0.3.4 to 0.3.9
- [Changelog](https://github.com/ash-project/igniter/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/igniter/compare/v0.3.4...v0.3.9)

---
updated-dependencies:
- dependency-name: igniter
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-25 21:24:54 -04:00
Jonatan Männchen
bda0c0e0da
chore: credo fix (#1347) 2024-07-25 18:08:32 -04:00
Zach Daniel
de2b3d0d4e improvement: use :utc_datetime_usec for now() return type
fix: fix typespecs for `Ash.can?`
2024-07-25 16:26:11 -04:00
Zach Daniel
8d60e0518e fix: properly display identity/primary key mismatch error on lists of embeds 2024-07-25 10:44:35 -04:00
Riccardo Binetti
df7adce976
fix: apply constraints to NewType even when casting an array (#1341)
The previous implementation was behaving differently when dealing with single
values and arrays.
Close #1342
2024-07-25 10:17:18 -04:00
Zach Daniel
0bdb3acfe2 fix: properly handle non-domain modules or modules w/ no resources
closes #1345
2024-07-25 09:32:16 -04:00
Zach Daniel
99966d0e57 fix: fix enum typespec generation for strings/mixed types 2024-07-25 09:30:04 -04:00
Zach Daniel
b46e172627 fix: properly generate types for string & mixed enums 2024-07-25 07:34:53 -04:00
Barnabas Jovanovics
8a1c47c131
test: add test for string enum (#1344) 2024-07-25 07:24:50 -04:00