<
From version < 13.1 >
edited by Guillaume Delhumeau
on 2015/09/23
To version < 15.1 >
edited by Guillaume Delhumeau
on 2015/09/23
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -47,6 +47,30 @@
47 47  
48 48  {{image reference="[email protected]ences.png"/}}
49 49  
50 +== Hiding of the Parent-Child Relationship ==
51 +
52 +Following our decision to drop the Parent-Child relationship (see above), it's now been turned off by default in favor of Nested Pages.
53 +
54 +Note that it's possible to go back to the previous behavior, in which the Breadcrumb was following the Parent/Child relationship, by setting the ##core.hierarchyMode## property to ##parentchild## in the ##xwiki.properties## configuration file.
55 +
56 +=== New Breadcrumb ===
57 +
58 +The Breadcrumb has been reworked to reflect the location of a Page in the reference hierarchy. For example for a Page "CEO" inside a Page "Boarding" inside a Page "Management" inside a Page "Staff" you would have the following Breadcrumb:
59 +
60 +{{image reference="[email protected]"/}}
61 +
62 +=== New Index Tree ===
63 +
64 +The Index Tree is now using the [[reworked Document Tree Macro>>extensions:Extension.Document Tree Macro]] and is thus honoring the Nested Pages hierarchy. For example:
65 +
66 +{{image reference="ReleaseNotes[email protected]"/}}
67 +
68 +=== Updated Edit Mode ===
69 +
70 +In Edit mode, the ability to change the Parent has been removed by default since we're now honoring the Nested Pages hierarchy. For example:
71 +
72 +{{image reference="[email protected]"/}}
73 +
50 50  == Miscellaneous ==
51 51  
52 52  <insert misc user stuff and important bug fix descriptions here in a list, when they are too small to warrant a section by themselves - Change the version in the URL below!>
... ... @@ -55,6 +55,13 @@
55 55  * The [[Document Tree Macro>>extensions:Extension.Document Tree Macro]] has a new parameter called ##showSpaceAsDocument## which allows you to merge the space nodes with the space home page nodes.
56 56  * The list of available template providers is now sorted by document full name.
57 57  * The [[Orphaned Pages>>extensions:Extension.Index Application||anchor="HAllorphanedDocuments"]] tab from the [[Document Index>>extensions:Extension.Index Application||anchor="HAccessingtheIndexes"]] is now displayed only when [[the Parent-Child Hierarchy Mode>>ReleaseNotesXWiki72M2||anchor="HHidingoftheParent-ChildRelationship"]] is enabled (which is not the case by default).
82 +* Import UI move to new standard tree(((
83 +{{image reference="[email protected]"/}}
84 +)))
85 +* The size of the Job status cache is now configurable. See ##job.statusCacheSize## property in ##xwiki.properties## files.
86 +* The Spaces macro (which lists all Spaces) is now working fine when there are Nested Spaces (some links were failing).
87 +* The LiveTable macro is now working fine when there are Nested Spaces (some links were failing).
88 +* The Solr Search is now able to correctly find nested documents. The Search UI still needs to be fixed though (some links may be broken and the document location/paths are not correctly displayed) but otherwise the results should be accurate.
58 58  
59 59  See the [[full list of JIRA issues>>http://jira.xwiki.org/sr/jira.issueviews:searchrequest-printable/temp/SearchRequest.html?jqlQuery=project+in+%28XCOMMONS%2C+XRENDERING%2C+XWIKI%2C+XE%29+and+status+%3D+Closed+and+resolution+%3D+Fixed+and+fixVersion+%3D+%22<version>%22&tempMax=1000]] fixed in this release.
60 60  
... ... @@ -302,9 +302,110 @@
302 302  
303 303  The difference with default provider is that the readonly one won't try to create a new XWikiContext and will return null if it can't find any. It's been introduce for some low level components that were used during XWikiContext creation but in general it should be used by any component that only search for some XWikiContext property that might be null even in a valid XWikiContext.
304 304  
336 +== New Space/XWikiSpace table ==
337 +
338 +A [[new table dedicated to Spaces has been introduced>>platform:DevGuide.DatabaseSchema]], in order to have performant and scalable Space-related queries (like supporting getting paginated Space which is useful for the Document Tree macro for example).
339 +
340 +== Queries improvement ==
341 +
342 +=== Allow executing complete SELECT queries ===
343 +
344 +In HQL and XWQL it's now possible to execute full ##SELECT## queries without Programming Right as long as you follow some rules currently defined in ##com.xpn.xwiki.internal.store.hibernate.query.HqlQueryUtils##, which contains a list of the database field allowed in the SELECT clause. Namely:
345 +
346 +* For the ##Document##/##XWikiDocument## table: ##fullName##, ##name##, ##space##, ##language##, ##defaultLanguage##, ##translation##, ##hidden##
347 +* For the ##Space##/##XWikiSpace## table: ##reference##, ##name##, ##parent##, ##hidden##
348 +
349 +This is also true for the Named Queries located in the ##queries.hbm.xml## file.
350 +
351 +=== New Secure Query ===
352 +
353 +The right to execute or not some Query is now controlled by each ##org.xwiki.query.QueryExecutor##.
354 +
355 +Anyone can ask the executor to check or ignore Right through the new ##org.xwiki.query.SecureQuery## extending ##org.xwiki.query.Query##:
356 +
357 +* ##checkCurrentAuthor()##: indicate if the current author right should be checked
358 +* ##checkCurrentUser()##: indicate if the result should be filtered based on current user Right (only implemented by SOLR right now)
359 +
360 +== JS API Improvements ==
361 +
362 +* It's now possible to create a Nested Spaces Reference using XWiki's Javascript API. For example:(((
363 +{{code language="javascript"}}
364 +// Construct a Nested Space reference
365 +var reference = new XWiki.SpaceReference('wiki', ['space1', 'space2']);
366 +expect(XWiki.Model.serialize(reference)).toEqual('wiki:space1.space2');
367 +reference = new XWiki.DocumentReference('wiki', ['space1', 'space2'], 'page');
368 +expect(XWiki.Model.serialize(reference)).toEqual('wiki:space1.space2.page');
369 +// Construct a non-Nested Space reference
370 +reference = new XWiki.SpaceReference('wiki', 'space');
371 +expect(XWiki.Model.serialize(reference)).toEqual('wiki:space');
372 +// Try passing non-valid space parameters
373 +expect(function() {new XWiki.SpaceReference('wiki', [])}).toThrow('Missing mandatory space name or invalid type for: []');
374 +expect(function() {new XWiki.SpaceReference('wiki', 12)}).toThrow('Missing mandatory space name or invalid type for: [12]');
375 +{{/code}}
376 +)))
377 +* A new ##XWiki.EntityReference.equals()## method has been added. For example:(((
378 +{{code language="javascript"}}
379 +var reference1 = new XWiki.DocumentReference('wiki', ['space1', 'space2'], 'page');
380 +var reference2 = new XWiki.DocumentReference('wiki', ['space1', 'space2'], 'page');
381 +var reference3 = new XWiki.DocumentReference('wiki2', ['space1', 'space2'], 'page');
382 +expect(reference1.equals(reference2)).toBe(true);
383 +expect(reference1.equals(reference3)).toBe(false);
384 +{{/code}}
385 +)))
386 +* A new ##XWiki.EntityReference.fromJSONObject(obejct)## has been added to create a Javascript ##XWiki.EntityReference## from a Java ##EntityReference## directly serialized as JSON:(((
387 +{{code language="javascript"}}
388 +var reference = XWiki.EntityReference.fromJSONObject(jsonText.evalJSON());
389 +{{/code}}
390 +)))
391 +* A new ##XWiki.EntityReferenceTree## JS class has been added, which partially mimics the Java ##EntityReferenceTree## Class. It's still missing features though as it was introduced mostly to make it easier to manipulate a serialized Java ##EntityReferenceTree##.
392 +
393 +== Updated Document Tree Macro ==
394 +
395 +The [[Document Tree Macro>>extensions:Extension.Document Tree Macro]] now supports Nested Documents and Nested Spaces modes. Specifically, the following changes have been made:
396 +
397 +* removed the ##showSpaceAsDocument## parameter (was introduced recently in 7.2M1)
398 +* deprecated the ##showChildDocuments## parameter
399 +* added the ##hierarchyMode## parameter with two supported values: ##reference## (default) and ##parentchild##
400 +
401 +As a result, you can use the document tree macro like this:
402 +
403 +* Nested Document Tree(((
404 +{{code language="none"}}
405 +{{documentTree/}}
406 +{{/code}}
407 +)))
408 +* Nested Space + Page Tree(((
409 +{{code language="none"}}
410 +{{documentTree showSpaces="true" /}}
411 +{{/code}}
412 +)))
413 +* Parent-Child Document Tree(((
414 +{{code language="none"}}
415 +{{documentTree hierarchyMode="parentchild" /}}
416 +{{/code}}
417 +)))
418 +* Old Document Index Tree (i.e. Parent-Child mixed with space grouping)(((
419 +{{code language="none"}}
420 +{{documentTree hierarchyMode="parentchild" showSpaces="true" /}}
421 +{{/code}}
422 +)))
423 +
424 +== Reference Scripting API for Nested Spaces ==
425 +
426 +The Script API for Entity References has been updated with new APIs to support creating Nested Spaces references. For example:
427 +
428 +{{code language="none"}}
429 +{{velocity}}
430 +$services.model.createDocumentReference("wiki", ["space1", "space2"], "page")
431 +$services.model.createDocumentReference("wiki", ["space1", "space2"], "page", "default")
432 +$services.model.createSpaceReference(["space1", "space2"], $services.model.createWikiReference("wiki"))
433 +{{/velocity}}
434 +{{/code}}
435 +
436 +
305 305  == Deprecated and Retired projects ==
306 306  
307 -<description of deprecated and retired projects>
439 +* The [[OSCache-based Cache Extension>>extensions:Extension.Cache OSCache]] has been [[moved to ##xwiki-contrib##>>https://github.com/xwiki-contrib/xwiki-platform-cache-oscache]] since we've been using the Infinispan implementation for a while now and the XWiki Core developers don't intend to continue supporting the OSCache-based one (it can be maintained by the Community, by whoever's interested in supporting it).
308 308  
309 309  == Upgrades ==
310 310  
... ... @@ -318,7 +318,11 @@
318 318  * [[Infinispan 7.2.3>>http://jira.xwiki.org/browse/XWIKI-12227]]
319 319  * [[HSQLDB 2.3.3>>http://jira.xwiki.org/browse/XE-1491]]
320 320  * [[JGroups 3.6.4>>http://jira.xwiki.org/browse/XWIKI-12215]]
321 -* [[Jackson 2.5.4>>http://jira.xwiki.org/browse/XCOMMONS-828]]
453 +* [[Groovy 2.4.4>>http://jira.xwiki.org/browse/XCOMMONS-831]]
454 +* [[Tika 1.9>>http://jira.xwiki.org/browse/XWIKI-12274]]
455 +* [[JRuby 1.7.21>>http://jira.xwiki.org/browse/XWIKI-12344]]
456 +* [[Jackson 2.6.0>>http://jira.xwiki.org/browse/XCOMMONS-833]]
457 +* [[Hibernate Validator 4.3.2>>http://jira.xwiki.org/browse/XWIKI-12365]]
322 322  
323 323  == Miscellaneous ==
324 324  
... ... @@ -331,7 +331,28 @@
331 331  * A new DocumentModelBridge.getContentAuthorReference() method has been added to allow accessing the content author of a document without depending on oldcore.
332 332  * Deprecate XWiki.parseContent(...) since it is was misleading and outdated. Its documentation mentioned that the passed content is parsed as velocity code, but it was actually doing much more than that and had some unwanted side-effect. Instead, use the parse/renderer that is specific to the type of content you have. See more details in [[XWIKI-12299>>http://jira.xwiki.org/browse/XWIKI-12299]].
333 333  * A new script service is available to retrieve the status of a specified job or the status of the currently running job from a specified group. See the [[Job Module>>extensions:Extension.Job Module||anchor="HScriptService"]] documentation for details.
470 +* Custom displayers are now executed with the Rights of the user who wrote them (i.e. author of the class document or content author of the displayer document), and not the Rights of the user who wrote the script that uses them (i.e. current context document's content author). See [[XWIKI-12306>>http://jira.xwiki.org/browse/XWIKI-12306]] for more details.
471 +* In the [[Active Install Extension>>extensions:Extension.Active Installs Server Application]], a new Velocity Macro has been introduced to compute the number of Active Installs having a specific Extension. Example usage:(((
472 +{{code language="none"}}
473 +{{include reference="ActiveInstalls.ExtensionCount"/}}
334 334  
475 +{{velocity}}
476 + #set ($extensionIds = [
477 + 'org.xwiki.contrib:xwiki-totem-application',
478 + 'jsimard:event-reporter-application',
479 + 'mouhb:likeapplication'
480 + ])
481 + |=Extension Id|=Count
482 + #foreach($extensionId in $extensionIds)
483 + #countActiveInstallsUsingExtension($extensionId $count)
484 + |$extensionId|$count
485 + #end
486 +{{/velocity}}
487 +{{/code}}
488 +)))
489 +* Better support of non-DOCUMENT ##EntityReferences## in ##DocumentReferenceConverter##. It now behaves like ##XWiki#getDocument(EntityReference)##
490 +* The Copy/Rename/Delete UI actions are now using the [[Refactoring Module's Script Services>>extensions:Extension.Refactoring Module]].
491 +
335 335  = Translations =
336 336  
337 337  The following translations have been updated:

Get Connected