[jira] [Commented] (ISIS-3186) [Validation] Fail early, if autoComplete/choice semantics is invalid

2022-08-29 Thread Andi Huber (Jira)


[ 
https://issues.apache.org/jira/browse/ISIS-3186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17597185#comment-17597185
 ] 

Andi Huber commented on ISIS-3186:
--

Domain code in SecMan is fixes via linked issue.

> [Validation] Fail early, if autoComplete/choice semantics is invalid
> 
>
> Key: ISIS-3186
> URL: https://issues.apache.org/jira/browse/ISIS-3186
> Project: Isis
>  Issue Type: Improvement
>  Components: Isis Applib (programming model)
>Reporter: Andi Huber
>Assignee: Andi Huber
>Priority: Major
> Fix For: 2.0.0-RC1
>
>
> given a mixin with a non-scalar param, with present or missing support
> {code:java}
> @MemberSupport public Collection choicesInitialRole() {
> return applicationRoleRepository.allRoles();
> }
> {code}
> then ...
> MM must fail on incompatible return type
> MM must fail on missing choice semantics
> MM must fail if bounded, but type is not an entity (eg. abstract)
> {noformat}
> @DomainObject(bounding = Bounding.BOUNDED)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (ISIS-3186) [Validation] Fail early, if autoComplete/choice semantics is invalid

2022-08-29 Thread Daniel Keir Haywood (Jira)


[ 
https://issues.apache.org/jira/browse/ISIS-3186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17597184#comment-17597184
 ] 

Daniel Keir Haywood commented on ISIS-3186:
---

[~hobrom]  - since this is deferred for now, can I ask - did you fix the code 
in secman for 2.0.0-M8. or do we still have a problem with it?

 

> [Validation] Fail early, if autoComplete/choice semantics is invalid
> 
>
> Key: ISIS-3186
> URL: https://issues.apache.org/jira/browse/ISIS-3186
> Project: Isis
>  Issue Type: Improvement
>  Components: Isis Applib (programming model)
>Reporter: Andi Huber
>Assignee: Andi Huber
>Priority: Major
> Fix For: 2.0.0-RC1
>
>
> given a mixin with a non-scalar param, with present or missing support
> {code:java}
> @MemberSupport public Collection choicesInitialRole() {
> return applicationRoleRepository.allRoles();
> }
> {code}
> then ...
> MM must fail on incompatible return type
> MM must fail on missing choice semantics
> MM must fail if bounded, but type is not an entity (eg. abstract)
> {noformat}
> @DomainObject(bounding = Bounding.BOUNDED)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)