On Thu, Feb 16, 2012 at 7:37 PM, Eduard Moraru <enygma2002(a)gmail.com> wrote:
Hi devs,
Based on the work done by Anca and Sorin doring the XWiki 2011 Seminar
Hackaton, I`ve made the following pull request [1] to integrate their work
with minor changes.
A summary of the changes contained by the pull request are described in the
jira issue [2].
The problem at the current stage, as Jerome also hinted, is that we need to
do a migration script to make the existing annotations (in an upgrade
scenario) use the XWikiComments class instead so that they can be picked up
by commentsinline.vm. However, this might lose the possibility to provide
custom annotations.
An alternative would be to make commentsinline.vm use the annotation
service and handle and retrieve both Annotation and XWikiComment objects.
This way, the current annotations should need no migration script since
they are using a class configured in the AnnotationConfig page that the
annotation service knows how to handle.
WDYT?
I suppose there is also the option to store comments as annotations
(targeting the entire document), but then you have to migrate
comments. I think I prefer making commentsinline.vm an aggregator,
i.e. the second option.
Thanks,
Marius