[jboss-jira] [JBoss JIRA] (WFCORE-2042) Improve query operation for nested child resources

Lin Gao (JIRA) issues at jboss.org
Wed Jun 7 23:43:00 EDT 2017


    [ https://issues.jboss.org/browse/WFCORE-2042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13417998#comment-13417998 ] 

Lin Gao commented on WFCORE-2042:
---------------------------------

I still think that improving both +selector+ and +where+ to support nested resources/attributes will be a better way(but I probably be wrong), because for complex attributes with more than 2 levels, you can't specify it even using +from+ parameter without supporting nested attributes.

The +QueryOperationHandler.FilterReduceHandler+(QFH) will happen after +:read-resource+ operation, so I think it is actually a search inside of a ModelNode, we just need to find a proper way to get the desired result. :)

To make things clear, I [drafted a document|https://docs.google.com/a/redhat.com/document/d/18LVU8TxLQflppysKAncjt6Cx0jXpvcWu2ywIwpkHfHQ/edit?usp=sharing] to list the proposed requirements, [~michpetrov], would you please take a look and add your ideas there? :)


> Improve query operation for nested child resources
> --------------------------------------------------
>
>                 Key: WFCORE-2042
>                 URL: https://issues.jboss.org/browse/WFCORE-2042
>             Project: WildFly Core
>          Issue Type: Feature Request
>          Components: Domain Management
>            Reporter: Lin Gao
>
> This is another similar RFE as WFCORE-2041.
> It would be good if the 'query()' operation can filter the resources by specifying value of attributes which are +inside of  nested child resources(not only by the first level of child resource)+, so that, for example, the following command can work well as expected:
> {code:}
> [standalone at localhost:9990 /] /subsystem=security:query(select=[security-domain], where={security-domain.authentication.login-modules.code=RealmDirect})
> {
>     "outcome" => "success",
>     "result" => undefined
> }
> // here the expected output are the security-domain resources which have the loging-module RealmDirect defined.
> {code}
> The {{security-domain.authentication.login-modules.code}} in 'where' parameter is proposed attribute name in enhanced syntax, other options maybe possible.
> The different requirements between this WFCORE-2042 and WFCORE-2041 are:
> * WFCORE-2041 focus on complex attributes in one management resource
> * WFCORE-2042 focus on nested management resources with or without complex attributes



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list