Skip to content

Commit

Permalink
update mastery precedence rule model (#2030)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adeoye Oluwatobi authored Jul 15, 2023
1 parent ed29722 commit 0855d39
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ meta::pure::mastery::metamodel::identity::CollectionEquality
{
paths: meta::pure::mastery::metamodel::precedence::PropertyPath[1..*];
scope: meta::pure::mastery::metamodel::precedence::RuleScope[*];
masterRecordFilter: meta::pure::metamodel::function::LambdaFunction<{Class<Any>[1]->Any[*]}>[1];
masterRecordFilter: meta::pure::metamodel::function::LambdaFunction<{Class<Any>[1]->Boolean[1]}>[1];

}

Class meta::pure::mastery::metamodel::precedence::PropertyPath
{
property: Property<Nil, Any|*>[1];
filter: meta::pure::metamodel::function::LambdaFunction<{Class<Any>[1]->Any[*]}>[1];
filter: meta::pure::metamodel::function::LambdaFunction<{Any[1]->Boolean[1]}>[1];
}


Expand All @@ -175,7 +175,7 @@ Class meta::pure::mastery::metamodel::precedence::UpdateRule extends meta::pure:

Class meta::pure::mastery::metamodel::precedence::SourcePrecedenceRule extends meta::pure::mastery::metamodel::precedence::UpdateRule
[
noRuleScope( ~function: $this.scope->isEmpty()
noRuleScope( ~function: $this.scope->isNotEmpty()
~enforcementLevel: Error
~message: 'Source Precedence Rule must be scoped to at least one of the following: datasourceId, dataproviderId or dataProviderType')
]
Expand All @@ -193,7 +193,7 @@ Class meta::pure::mastery::metamodel::precedence::ConditionalRule extends meta::

Class meta::pure::mastery::metamodel::precedence::CreateRule extends meta::pure::mastery::metamodel::precedence::PrecedenceRule
[
noRuleScope( ~function: $this.scope->isEmpty()
noRuleScope( ~function: $this.scope->isNotEmpty()
~enforcementLevel: Error
~message: 'Create Rule must be scoped to at least one of the following: datasourceId, dataproviderId or dataProviderType')
]
Expand All @@ -204,7 +204,7 @@ Class meta::pure::mastery::metamodel::precedence::CreateRule extends meta::pure:

Class meta::pure::mastery::metamodel::precedence::DeleteRule extends meta::pure::mastery::metamodel::precedence::PrecedenceRule
[
noRuleScope( ~function: $this.scope->isEmpty()
noRuleScope( ~function: $this.scope->isNotEmpty()
~enforcementLevel: Error
~message: 'Delete Rule must be scoped to at least one of the following: datasourceId, dataproviderId or dataProviderType')
]
Expand Down

0 comments on commit 0855d39

Please sign in to comment.