Commit graph

4523 commits

Author SHA1 Message Date
Zach Daniel
e81ce83d0e docs: encrypting attributes how-to guide 2024-05-09 21:29:58 -04:00
Zach Daniel
b000259418 docs: add preparations doc 2024-05-09 20:52:44 -04:00
Zach Daniel
bc3463e135 docs: document Ash.can 2024-05-09 20:43:49 -04:00
Zach Daniel
5f1bfe60b2 docs: add info in guide for accept in actions 2024-05-09 20:40:26 -04:00
Zach Daniel
b3a34d0d65 fix: ensure source_context is a map
fixes #1141
2024-05-09 08:49:39 -04:00
Zach Daniel
7bb914444e fix: get underlying type before calling rewrite on it 2024-05-08 21:03:44 -04:00
Zach Daniel
778b77b0fc docs: revamp changelog 2024-05-08 21:03:44 -04:00
dependabot[bot]
c71940ed47
chore(deps): bump reactor from 0.8.1 to 0.8.2 (#1138)
Bumps [reactor](https://github.com/ash-project/reactor) from 0.8.1 to 0.8.2.
- [Changelog](https://github.com/ash-project/reactor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/reactor/compare/v0.8.1...v0.8.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08 20:37:48 -04:00
Zach Daniel
b6c8b1c2ec fix: allow calculations to access what would forbidden fields of related items
context for this change:

this requires a potentially risky modification to how field policies are
applied for nested queries and embedded types, which is that we now
apply field policies for nested queries in a post-processing pass.

Bugs in this code could lead to forbidden fields being displayed
when they shouldn't be. Luckily we have tests for this kind of thing :)
2024-05-08 16:22:48 -04:00
Barnabas Jovanovics
aecd421a29
fix: access to change context in get_and_lock(_for_update) changes (#1135) 2024-05-08 09:22:12 -04:00
Riccardo Binetti
0e899dbbb3
improvement: add tenant to data earlier in read (#1137) 2024-05-08 09:21:01 -04:00
Zach Daniel
078cc4f28b improvement: reintroduce deslection of known forbidden fields
this was an optimization that was temporarily removed, but can now
safely be added because we track depended on fields
2024-05-07 22:42:23 -04:00
Zach Daniel
797a0bf50b fix: properly upgrade static expression calculations to literal calculations 2024-05-07 22:33:05 -04:00
Zach Daniel
04b4769e87 improvement: always reselect positionally on embedded resources 2024-05-07 22:05:50 -04:00
Zach Daniel
48c6438212 improvement: change default timeout to :infinity, for efficiency 2024-05-07 17:01:11 -04:00
Zach Daniel
0e004ead7a fix: support empty lists as bulk arguments to code interface options
fixes #1126
2024-05-07 16:46:41 -04:00
Zach Daniel
ce559bc018 fix: temporarily disable field policy deselection optimization
also added a test for related field calc dependencies,
commented out until I fix it later
2024-05-07 16:08:56 -04:00
Barnabas Jovanovics
d2bfaff377
test: add test for calc deps that are forbidden (#1128) 2024-05-07 15:39:04 -04:00
Zach Daniel
f5ab6a6bd8 fix: ensure that reuse_values? is honored all the way down the chain 2024-05-07 15:38:03 -04:00
Riccardo Binetti
7f701cfb57
chore: add failing test for calculation reuse across loads (#1127) 2024-05-07 12:28:22 -04:00
Barnabas Jovanovics
9d16ca07dc
feat: check global changes and validations for atomicity during compile time (#1129) 2024-05-07 12:09:12 -04:00
Zach Daniel
09cff72d03 chore: ensure changeset is set on atomic upgraded errors
docs: update livebook
2024-05-06 21:57:11 -04:00
Zach Daniel
1d519e37e0 chore: better inspecting for error classes 2024-05-06 20:58:39 -04:00
Zach Daniel
64ecdad657 fix: properly deduplicate calculations 2024-05-06 20:32:41 -04:00
Riccardo Binetti
c3c330224d
chore: add failing test for calculation loaded twice in Ash.load/3 (#1122) 2024-05-06 19:25:17 -04:00
Zach Daniel
e68792838c chore: release version v3.0.0-rc.46 2024-05-06 13:06:12 -04:00
Zach Daniel
b810e2e55b fix: better performance and ability to add a stream to runtime sort logic 2024-05-06 13:05:34 -04:00
Zach Daniel
400fc4aea3 chore: set postgres to 13 2024-05-06 11:02:48 -04:00
Zach Daniel
36308a9e4f chore: reword some docs 2024-05-06 10:52:17 -04:00
Zach Daniel
4780bddde4 chore: formatting docs 2024-05-06 10:48:32 -04:00
Zach Daniel
338e6a4d68 docs: update wording 2024-05-06 10:42:11 -04:00
Zach Daniel
405093eb1a chore: add some clarification 2024-05-06 10:24:50 -04:00
Zach Daniel
84f8d6d942 chore: fix docs title 2024-05-06 10:23:41 -04:00
Zach Daniel
b6669dab94 docs: remove cook book terminology 2024-05-06 10:19:42 -04:00
Barnabas Jovanovics
815ceff61d
Do not define info inside extension because of compile dependency (#1120) 2024-05-06 09:26:09 -04:00
Moxley Stratton
aa09589fbd
docs: Add documentation for Ash.Filter, linking to Expressions guide (#1114)
* Add documentation for Ash.Filter, linking to Ash.Filter.Functions.*

* Update PR: Rename section to "Expressions"
2024-05-06 07:47:35 -04:00
Zach Daniel
b70c175cbd chore: nested numbers 2024-05-05 19:09:41 -04:00
Zach Daniel
2fbdeca72a chore: typo 2024-05-05 19:08:08 -04:00
Zach Daniel
dee0399264 chore: work on docs 2024-05-05 19:07:19 -04:00
Zach Daniel
78f4ca1ced chore: work on cookbooks 2024-05-05 19:00:18 -04:00
Pierre Cavin
3cf9fcd8e5
feat: add new remove_nil_items? array type constraint (#1116) 2024-05-05 12:05:04 -04:00
Pierre Cavin
c05544663e
fix: run array type nil check after item constraints (#1115) 2024-05-05 11:49:23 -04:00
Zach Daniel
544dc6cfd0 chore: just use backticks, even though it doesn't link properly in the livebook 2024-05-05 10:57:26 -04:00
Zach Daniel
3c97bfe2dc docs: fix typo 2024-05-05 09:56:51 -04:00
Zach Daniel
a802e04a93 docs: rework ash state machine cook book, clean up both cookbooks 2024-05-05 09:30:42 -04:00
Zach Daniel
dc4a3a355d docs: rework state machine cookbook 2024-05-05 09:08:29 -04:00
Zach Daniel
df789b962f docs: add AshStateMachine cookbook 2024-05-04 09:57:34 -04:00
Zach Daniel
4384768db8 chore: cleanup livebook 2024-05-04 07:07:47 -04:00
Zach Daniel
64d44df674 chore: use warning in livebook 2024-05-04 07:07:15 -04:00
Zach Daniel
6c9a16862f chore: release version v3.0.0-rc.45 2024-05-04 07:04:01 -04:00