fix: Fix identities (#110)

This commit is contained in:
Zach Daniel 2020-09-04 00:59:32 -04:00 committed by GitHub
parent 78cde9cacf
commit 28d2d9b363
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View file

@ -127,9 +127,9 @@ jobs:
strategy:
fail-fast: false
matrix:
project:
[
"ash_postgres",
project: [
# We can't reasonably test ash_postgres without including database configuration here, which is a bit much at the moment
# "ash_postgres",
"ash_csv",
"ash_graphql",
"ash_json_api",

View file

@ -102,6 +102,10 @@ defmodule Ash do
|> Enum.any?(&(&1 == behaviour))
end
def uuid do
Ecto.UUID.generate()
end
@doc "Returns all extensions of a resource or api"
@spec extensions(resource() | api()) :: [module]
def extensions(resource) do

View file

@ -4,7 +4,7 @@ defmodule Ash.Resource.Identity do
@schema [
name: [
type: {:custom, __MODULE__, :keys, []},
type: :atom,
required: true,
doc:
"The name of the identity. Used by extensions to target specific identities for fetching single instances of a resource"