Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-12199

Add the ability to create an application in a nested space

    Details

    • Tests:
      Integration
    • Difficulty:
      Medium
    • Similar issues:

      Description

      Currently, it creates one space per application. In the future, we might want to create an application in a subspace.

      Example of code that will cause a problem:

      #set($templateRef = $services.model.createDocumentReference($doc.wiki, $doc.space, "${className}Template"))
      

      (in https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-appwithinminutes/xwiki-platform-appwithinminutes-ui/src/main/resources/AppWithinMinutes/ClassEditSheet.xml#L225-225)

      must be replaced by:

       $services.model.resolveDocument("${className}Template")
      

      ie: the reference will be created in the current (sub) space.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mflorea Marius Dumitru Florea
                Reporter:
                gdelhumeau Guillaume Delhumeau
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 day, 2 hours
                  1d 2h