[
https://issues.jboss.org/browse/WFCORE-2042?page=com.atlassian.jira.plugi...
]
Michal Petrov commented on WFCORE-2042:
---------------------------------------
[~gaol], [~brian.stansberry] I'm going to comment here for both issues. From what
I'm seeing the problem is that the filter cannot be applied to nested attributes. I
think a good solution would be having another attribute in the query operation for
filtering on otherwise non-addressable resource (i.e. the "where" functionality
wouldn't need to change, at least for the given examples).
The obvious choice is to call it "from", [I've implemented the
basics|https://github.com/michpetrov/wildfly-core/commit/3ece8247ed7fcd75...];
the operations would then look like this:
{code}
/subsystem=security/security-domain=*/authentication=*:query(from=login-modules,
where={code=RealmDirect})
{
"outcome" => "success",
"result" => [{
"address" => [
("subsystem" => "security"),
("security-domain" => "other"),
("authentication" => "classic")
],
"outcome" => "success",
"result" => [{
"code" => "RealmDirect",
"flag" => "required",
"module" => undefined,
"module-options" => {"password-stacking" =>
"useFirstPass"}
}]
}]
}
{code}
and for WFCORE-2041:
{code}
/core-service=capability-registry:query(from=possible-capabilities,where={name=org.wildfly.data-source})
{
"outcome" => "success",
"result" => [{
"name" => "org.wildfly.data-source",
"dynamic" => true,
"registration-points" => [
"/subsystem=datasources/data-source=*",
"/subsystem=datasources/xa-data-source=*"
]
}]
}
{code}
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@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)