Commit graph

107 commits

Author SHA1 Message Date
dependabot[bot]
7d1de87a3e
chore(deps): bump ash from 3.0.0-rc.38 to 3.0.0-rc.39 (#140) 2024-04-30 23:40:21 -04:00
dependabot[bot]
5e2cd99b26
chore(deps): bump ash from 3.0.0-rc.31 to 3.0.0-rc.38 (#139) 2024-04-29 20:39:52 -04:00
Zach Daniel
ae2ffd72b9 improvement: update ash 2024-04-26 03:39:19 -04:00
Zach Daniel
e60c0def27 fix: don't process maps with no fields 2024-04-24 08:49:53 -04:00
dependabot[bot]
db7cdca775
chore(deps): bump ash from 3.0.0-rc.27 to 3.0.0-rc.29 (#135)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.0-rc.27 to 3.0.0-rc.29.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.0-rc.27...v3.0.0-rc.29)

---
updated-dependencies:
- dependency-name: ash
  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-04-23 22:03:39 -04:00
dependabot[bot]
2c83029478
chore(deps): bump ash from 3.0.0-rc.18 to 3.0.0-rc.27 (#133)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.0-rc.18 to 3.0.0-rc.27.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.0-rc.18...v3.0.0-rc.27)

---
updated-dependencies:
- dependency-name: ash
  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-04-22 09:32:40 -04:00
Zach Daniel
8f47f58076 chore: add audit to ci 2024-04-22 09:32:27 -04:00
dependabot[bot]
df04981d49
chore(deps): bump ash from 3.0.0-rc.6 to 3.0.0-rc.18 (#127)
* chore(deps): bump ash from 3.0.0-rc.6 to 3.0.0-rc.18

Bumps [ash](https://github.com/ash-project/ash) from 3.0.0-rc.6 to 3.0.0-rc.18.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.0-rc.6...v3.0.0-rc.18)

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

Signed-off-by: dependabot[bot] <support@github.com>

* chore: Fix dialyzer error.

`action.accept` can no longer ever be `nil`.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Harton <james@harton.nz>
2024-04-22 09:31:33 +12:00
dependabot[bot]
b28a3c59e3
chore(deps-dev): bump excoveralls from 0.18.0 to 0.18.1 (#126)
Bumps [excoveralls](https://github.com/parroty/excoveralls) from 0.18.0 to 0.18.1.
- [Release notes](https://github.com/parroty/excoveralls/releases)
- [Changelog](https://github.com/parroty/excoveralls/blob/master/CHANGELOG.md)
- [Commits](https://github.com/parroty/excoveralls/compare/v0.18.0...v0.18.1)

---
updated-dependencies:
- dependency-name: excoveralls
  dependency-type: direct:development
  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-04-11 11:24:45 +12:00
dependabot[bot]
6bb71367b3
chore(deps-dev): bump simple_sat from 0.1.1 to 0.1.3 (#128)
Bumps [simple_sat](https://github.com/ash-project/simple_sat) from 0.1.1 to 0.1.3.
- [Changelog](https://github.com/ash-project/simple_sat/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/simple_sat/compare/v0.1.1...v0.1.3)

---
updated-dependencies:
- dependency-name: simple_sat
  dependency-type: direct:development
  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-04-11 11:24:22 +12:00
Zach Daniel
43ae1f07fc chore: update deps 2024-04-01 16:14:22 -04:00
Zach Daniel
78c5b6a3bb chore: update errors and deps 2024-04-01 14:13:48 -04:00
Riccardo Binetti
513c1ac68f
improvement!: port AshGraphql to Ash 3.0 (#123)
Step 1: update Ash

Step 2: mass rename Api to Domain

Step 3: Ash.Query.expr -> Ash.Expr.expr

Also change ref interpolation

Step 4: remove all warnings

Step 5: remove registries from tests

Step 6: fix filter

Step 7: private? -> !public?

Step 8: Ash.Calculation -> Ash.Resource.Calculation

Step 9: use depend_on_resources/1 -> resources/1

Step 10: add Domain to all resources

Step 11: use Ash module for all actions

Step 12: add public? true all around

Step 13: remove verbose? from options passed during Domain calls

Step 14: add simple_sat

Step 15: Ash.ErrorKind is no more, so remove code from errors

Step 16: sprinkle default_accept :* around tests

Step 17: replace Ash.Changeset.new/2 with Ash.Changeset.for_*

Step 18: calculation fixups

- Context is now a struct and arguments go under the arguments key
- Function based calculations receive a list of records
- Add a select to query-based loads
- select -> load

Step 19: pass the correct name to pass the policy in tests

Step 20: Ash.Query.new/2 is no more

Step 21: add AshGraphql.Resource.embedded? utility function

Use that instead of Ash.Type.embedded_type?(resource_or_type) since resources
are not types anymore

Step 22: handle struct + instance_of: Resource in unions

Resources are not type anymore so they need to be passed this way in unions

Step 23: ensure we only check GraphQL actions for pagination

All reads are now paginated by default, so this triggered a compilation error

Step 24: swap arguments for sort on calculations

Step 25: remove unused debug? option
2024-04-01 14:03:06 -04:00
Riccardo Binetti
98baf6f0be
feat: allow providing descriptions for enum values (#117)
* chore: update ash to use Ash.Type.Enum descriptions

Contextually, remove an unreachable clause that caused dyalizer to fail,
see https://github.com/ash-project/ash/pull/873 for the commit that made
it unreachable

* feat: allow providing descriptions for enum values

If the module exports `graphql_describe_enum_value/1`, use that. Otherwise,
fallback to the Ash.Type.Enum value descriptions introduced in
https://github.com/ash-project/ash/pull/940.

Close #116
2024-03-25 23:43:59 -04:00
Zach Daniel
971d3ff585 chore: update credo 2024-02-11 14:41:36 -05:00
Zach Daniel
099540c79e fix: handle nested constraint derivation in union/map types 2024-02-04 10:36:23 -05:00
Zach Daniel
067057b4db chore: update ex_doc 2024-01-12 14:34:15 -05:00
Zach Daniel
2cf5b60f63 improvement: support latest ash aggregate constraints 2023-11-13 16:53:21 -05:00
Zach Daniel
1401de6727 fix: pass context into loading and generate related query with it 2023-10-27 00:29:03 -04:00
Zach Daniel
b58503322b docs: update spark/ash for docs improvements 2023-09-26 23:21:57 -04:00
Zach Daniel
49c6534d73 improvement: generic action support
docs: better docs
2023-09-15 13:45:12 -04:00
Zach Daniel
0311724375 chore: update ssl_verify_fun 2023-07-31 15:16:21 -04:00
Zach Daniel
178ea6c7e3 chore: lock/guide/tool versions 2023-07-31 15:13:23 -04:00
Zach Daniel
fe85aab53a fix: properly display forbidden field errors
fixes #84
2023-07-13 09:23:17 -04:00
Zach Daniel
bf4aaff3a3 improvement: update ash 2023-07-03 22:26:29 -04:00
Zach Daniel
dd64dd9f4f chore: update ash 2023-06-23 10:12:32 -04:00
Zach Daniel
bb96354470 improvement: support ForbiddenField 2023-06-23 10:10:39 -04:00
Zach Daniel
c70e7dec7d improvement: use parse_input for filters 2023-06-19 15:09:32 -04:00
Zach Daniel
102bf96221 improvement: use new can_load?/2 2023-06-12 16:59:05 -04:00
Zach Daniel
74211ef3f4 fix: properly fetch aliased all attributes 2023-06-12 13:19:07 -04:00
Zach Daniel
1169b6ec32 chore: update mix.lock 2023-06-10 13:31:51 -04:00
Zach Daniel
997c80b526 chore: add back in dataloader to not break existing apps 2023-06-09 16:14:23 -04:00
Zach Daniel
a4266dffb4 chore: update ash 2023-06-09 10:19:53 -04:00
Zach Daniel
05be948204 improvement: revamp data loading to be a single load statement 2023-06-09 00:45:39 -04:00
Zach Daniel
0caf5365f7 improvement: use Ash.Changeset.load 2023-06-05 14:04:53 -04:00
Zach Daniel
28f231f2e0 test: update tests 2023-06-02 13:54:09 -04:00
Zach Daniel
02dc6e0f0a chore: fix build/sobelow 2023-05-15 10:07:37 -04:00
Zach Daniel
7022585ec5 chore: credo 2023-05-15 09:40:35 -04:00
Barnabas Jovanovics
48392115e0
feat: create types for maps with constraints (#68) 2023-05-15 09:39:32 -04:00
bcksl
31315db6f9
improvement: thread context from PlugHelpers.get_context through to Query and Changeset (#62) 2023-04-05 10:39:12 -04:00
Zach Daniel
3cc3c32f45 improvement: add support for Ash.Type.NewType 2023-03-13 18:32:36 -04:00
Zach Daniel
cf8267123e improvement: support new union types in ash 2023-02-15 08:20:35 -05:00
Zach Daniel
c6d06f2347 chore: release git_ops 2023-02-09 01:11:01 -05:00
Zach Daniel
f0836f18b6 improvement: support metadata on read actions
metadata on read actions is merged with the rest of the fields on the query, so must have a name unique from the attributes/calculations/aggregates.

The system will warn you if there is metadata on the underlying action that is being ignored, and will tell you how to fix it.
2023-01-28 12:32:21 -05:00
Zach Daniel
5901cd650a improvement: update ash and use new docs patterns 2023-01-18 01:10:40 -05:00
Zach Daniel
fcfad512c5 improvement: update to latest ash, fix incorrect behaviour 2022-11-25 14:28:48 -05:00
Zach Daniel
1b3f43391d improvement: support ash tracers and telemetry in graphql 2022-11-22 13:27:53 -05:00
Zach Daniel
689b0db421 improvement: update to new docs 2022-11-03 09:51:12 -07:00
Zach Daniel
b3cb92e8e9 improvement: update to latest ash 2022-10-31 13:19:42 -04:00
James Harton
57e42cac6b
feat(AshGraphql.Plug): Support standard actor/tenant configuration. (#43) 2022-10-30 17:49:24 -04:00