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: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
project: project: [
[ # We can't reasonably test ash_postgres without including database configuration here, which is a bit much at the moment
"ash_postgres", # "ash_postgres",
"ash_csv", "ash_csv",
"ash_graphql", "ash_graphql",
"ash_json_api", "ash_json_api",

View file

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

View file

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