Hello devs,
Since I already experimented the Nested Spaces behaviour on the Forum
application and there are other applications that might need it also, I
think it's time to start discussing this topic and to decide what strategy
should be implemented on contrib applications.
What I have done in the Forum app was to handle both Pre NS and NS versions
of XWiki, writing specific code for each case (wrapped in if-else
statements), which proved to be the most complex and hard to maintain way,
without much benefit. Sooner or later, everybody will have a NS Xwiki
version and then all the support for Pre NS would become useless and then
the code should be cleaned, which would be a lot of work again.
Besides this already tried strategy, there are some others to be discused:
1: Support both Pre NS and NS versions but in different branches.
2: Move to NS, but keep fixing bugs for Pre NS in a separate branch. (This
is what I'm proposing)
3: Move to NS without any maintance on Pre NS.
4: Others?
In all the cases, a data migration should be performed.
What we decide to do?
Thanks,
Alex