dependsOn not working at all in .4.x
See original GitHub issueWith the following code, the “school” field does not work at all. This also appears to apply to the String
and Types.Text
datatypes.
postType: {
type: Types.Select,
options: 'news/update, high school, college',
default: 'news/update',
index: true
},
school: {
type: Types.Relationship,
ref: 'School',
index: true,
dependsOn: {
postType: ['high school', 'college']
}
},
Additionally, saving does not make the field appear.
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (10 by maintainers)
Top Results From Across the Web
Gradle dependsOn not working when called again within ...
There's no option to add a task to a DAG (directed acyclic graph - which gradle uses under the hood) more than once....
Read more >dependsOn is not respected when using --scope #860 - GitHub
I'm trying to run tests for a package, the equivalent of pnpm turbo run test --no-deps --scope=@iw/button . This has a dependency on...
Read more >Controlling Bean Creation Order with @DependsOn Annotation
This tutorial explores managing Spring initialization order using the @DependsOn annotation.
Read more >DependsOn (Spring Framework 6.0.3 API)
Using DependsOn at the class level has no effect unless component-scanning is being used. If a DependsOn -annotated class is declared via XML,...
Read more >Authoring Tasks - Gradle User Manual
Task has actions, but the task tells Gradle it did not change its outputs. Task has no actions and some dependencies, but all...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is a use case that differs slightly from 0.3.x to 0.4.x. In 0.3.x an Array value is treated as an OR, but in 0.4.x with expression-match it is treated as an AND. So dependsOn is working but returning a false.
The options are: A: Update the docs to reflect using $or for arrays.
B: Set the default expression as $or in Keystone using the 3rd argument for expression-match.
Can the final syntax be documented?