[
http://jira.xwiki.org/jira/browse/XWIKI-2083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22871
]
Sergiu Dumitriu commented on XWIKI-2083:
----------------------------------------
The rules for DBTreeList should be:
- If no classname, id and value fields are selected, return a query that return
no rows, as the parent is not enough to make a query.
- If no parent field is provided, use the document "parent" medatada.
- If only the classname is provided, select all document names which have an
object of that type, preserving the hierarchy defined by the parent field.
- If only one of id and value is provided, use it for both columns.
- If no classname is provided, assume the fields are document properties.
- If the document is not used at all, don't put it in the query.
- If the object is not used at all, don't put it in the query.
> Improve the way DBList and DBTreeList generate queries
> ------------------------------------------------------
>
> Key: XWIKI-2083
> URL: http://jira.xwiki.org/jira/browse/XWIKI-2083
> Project: XWiki Core
> Issue Type: Improvement
> Components: Core
> Affects Versions: 1.3 M1
> Reporter: Sergiu Dumitriu
> Assigned To: Sergiu Dumitriu
> Priority: Minor
> Fix For: 1.3 M2
>
>
> The current way of generating queries based on the classname, idField,
> valueField and parentField properties has some issues:
> - Does not correctly work with missing values;
> - Generates unoptimised queries;
> - Cannot be properly used to select document properties.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications