Revert "fix: switch from no_depend_modules in most places"

This reverts commit 650d8920e4.
This commit is contained in:
Zach Daniel 2022-10-04 11:22:24 -04:00
parent 03803734f3
commit c24d8e6d21
4 changed files with 22 additions and 22 deletions

View file

@ -29,7 +29,7 @@ defmodule Ash.Flow.Dsl do
"""
],
links: [],
modules: [:resource, :touches_resources],
no_depend_modules: [:resource, :touches_resources],
target: Ash.Flow.Step.Create,
args: [:name, :resource, :action],
schema: Ash.Flow.Step.Create.schema()
@ -48,7 +48,7 @@ defmodule Ash.Flow.Dsl do
end
"""
],
modules: [:resource, :touches_resources],
no_depend_modules: [:resource, :touches_resources],
target: Ash.Flow.Step.Update,
args: [:name, :resource, :action],
schema: Ash.Flow.Step.Update.schema()
@ -65,7 +65,7 @@ defmodule Ash.Flow.Dsl do
destroy :destroy_post, MyApp.Post, :destroy
"""
],
modules: [:resource, :touches_resources],
no_depend_modules: [:resource, :touches_resources],
target: Ash.Flow.Step.Destroy,
args: [:name, :resource, :action],
schema: Ash.Flow.Step.Destroy.schema()
@ -82,7 +82,7 @@ defmodule Ash.Flow.Dsl do
"""
],
links: [],
modules: [:resource, :touches_resources],
no_depend_modules: [:resource, :touches_resources],
target: Ash.Flow.Step.Read,
args: [:name, :resource, :action],
schema: Ash.Flow.Step.Read.schema()
@ -103,7 +103,7 @@ defmodule Ash.Flow.Dsl do
}
"""
],
modules: [:resource, :touches_resources],
no_depend_modules: [:resource, :touches_resources],
target: Ash.Flow.Step.RunFlow,
args: [:name, :flow],
schema: Ash.Flow.Step.RunFlow.schema()
@ -129,7 +129,7 @@ defmodule Ash.Flow.Dsl do
end
"""
],
modules: [:custom, :touches_resources],
no_depend_modules: [:custom, :touches_resources],
target: Ash.Flow.Step.Custom,
args: [:name, :custom],
schema: Ash.Flow.Step.Custom.schema()
@ -153,7 +153,7 @@ defmodule Ash.Flow.Dsl do
"""
],
links: [],
modules: [:type],
no_depend_modules: [:type],
target: Ash.Flow.Argument,
args: [:name, :type],
schema: Ash.Flow.Argument.schema()
@ -212,7 +212,7 @@ defmodule Ash.Flow.Dsl do
entities: [
steps: @step_entities
],
modules: [:touches_resources],
no_depend_modules: [:touches_resources],
examples: [
"""
transaction :create_users do
@ -243,7 +243,7 @@ defmodule Ash.Flow.Dsl do
target: Ash.Flow.Step.Map,
args: [:name, :over],
recursive_as: :steps,
modules: [:touches_resources],
no_depend_modules: [:touches_resources],
links: [],
entities: [
steps: @step_entities

View file

@ -65,7 +65,7 @@ defmodule Ash.Notifier.PubSub do
@publish,
@publish_all
],
modules: [:module],
no_depend_modules: [:module],
links: [
guides: [
"ash:guide:PubSub",

View file

@ -316,7 +316,7 @@ defmodule Ash.Resource.Dsl do
"change relate_actor(:reporter)",
"change {MyCustomChange, :foo}"
],
modules: [:change],
no_depend_modules: [:change],
target: Ash.Resource.Change,
schema: Ash.Resource.Change.action_schema(),
args: [:change]
@ -374,7 +374,7 @@ defmodule Ash.Resource.Dsl do
"change relate_actor(:reporter)",
"change {MyCustomChange, :foo}"
],
modules: [:change],
no_depend_modules: [:change],
target: Ash.Resource.Change,
schema: Ash.Resource.Change.schema(),
args: [:change]
@ -399,7 +399,7 @@ defmodule Ash.Resource.Dsl do
],
target: Ash.Resource.Validation,
schema: Ash.Resource.Validation.opt_schema(),
modules: [:validation],
no_depend_modules: [:validation],
transform: {Ash.Resource.Validation, :transform, []},
args: [:validation]
}
@ -422,7 +422,7 @@ defmodule Ash.Resource.Dsl do
],
target: Ash.Resource.Validation,
schema: Ash.Resource.Validation.action_schema(),
modules: [:validation],
no_depend_modules: [:validation],
transform: {Ash.Resource.Validation, :transform, []},
args: [:validation]
}
@ -446,7 +446,7 @@ defmodule Ash.Resource.Dsl do
],
target: Ash.Resource.Actions.Create,
schema: Ash.Resource.Actions.Create.opt_schema(),
modules: [:touches_resources],
no_depend_modules: [:touches_resources],
entities: [
changes: [
@action_change,
@ -479,7 +479,7 @@ defmodule Ash.Resource.Dsl do
],
target: Ash.Resource.Preparation,
schema: Ash.Resource.Preparation.schema(),
modules: [:preparation],
no_depend_modules: [:preparation],
args: [:preparation]
}
@ -513,7 +513,7 @@ defmodule Ash.Resource.Dsl do
target: Ash.Resource.Actions.Read,
schema: Ash.Resource.Actions.Read.opt_schema(),
transform: {Ash.Resource.Actions.Read, :transform, []},
modules: [:touches_resources],
no_depend_modules: [:touches_resources],
links: [
guides: [
"ash:guide:Actions"
@ -558,7 +558,7 @@ defmodule Ash.Resource.Dsl do
@action_argument
]
],
modules: [:touches_resources],
no_depend_modules: [:touches_resources],
target: Ash.Resource.Actions.Update,
schema: Ash.Resource.Actions.Update.opt_schema(),
args: [:name]
@ -581,7 +581,7 @@ defmodule Ash.Resource.Dsl do
"ash:guide:Actions"
]
],
modules: [:touches_resources],
no_depend_modules: [:touches_resources],
entities: [
changes: [
@action_change,
@ -696,7 +696,7 @@ defmodule Ash.Resource.Dsl do
],
target: Ash.Resource.Identity,
schema: Ash.Resource.Identity.schema(),
modules: [:pre_check_with, :eager_check_with],
no_depend_modules: [:pre_check_with, :eager_check_with],
args: [:name, :keys]
}
@ -1088,7 +1088,7 @@ defmodule Ash.Resource.Dsl do
]
],
target: Ash.Resource.Calculation,
modules: [:calculation],
no_depend_modules: [:calculation],
args: [:name, :type, :calculation],
entities: [
arguments: [@argument]

View file

@ -268,7 +268,7 @@ defmodule Ash.Test.Actions.LoadTest do
|> Map.get(:posts_in_same_category)
end
test "it uses `Ash.Type.equal?/2` to support things like ci_string foreign keys" do
test "it uses `Comp.equal?/2` to support things like ci_string foreign keys" do
author =
Author
|> new(%{name: "zerg", campaign_name: "FrEd"})