There are 3 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-9f011929-0815-44e0-b4db-da2400b0b08d XWIKI-17990 Open

"My Recent Modifications" Panel should be empty after installing XS

 
View issue   ยท   Add comment
 

3 comments

 
cid:jira-generated-image-avatar-7bc6a200-0c09-43cf-a5eb-82c05e4fc166 Vincent Massol on 25/Aug/25 13:59
 

The 3 cases you mention Nikita Petrenko are valid and not a bug.

 
cid:jira-generated-image-avatar-7bc6a200-0c09-43cf-a5eb-82c05e4fc166 Vincent Massol on 25/Aug/25 14:00
 
The 3 cases you mention [~npetrenko] are valid and not a bug. And in any case they're outside of scope for this issue.
 
cid:jira-generated-image-avatar-28a68a29-a50b-460e-97f3-895d4d363f25 Nikita Petrenko on 25/Aug/25 14:01
 
It can be reproduced on latest clean demo by these steps for 3 cases:

h4. Case 1:
* User creates XWiki page

h4. Case 2:
* User installs any XWiki extensions

h4. Case 3:
* User imports XAR

h4. Result for all cases
A newly created page by install/import/creation will be listed there. This results by query statement {noformat}order by doc.date{noformat} in [line|https://github.com/xwiki/xwiki-platform/blob/cb4c4e74081d14e71f7d2735cff7fd2e2b5c4383/xwiki-platform-core/xwiki-platform-panels/xwiki-platform-panels-ui/src/main/resources/Panels/Recently%20Modified.xml#L123].

Possible resolution here either to introduce if check, that checks if document is New or not, but I quickly tested, and it returns false for newly created page {noformat}$xwiki.getDocument($docName).isNew(){noformat}. Replacing statement with {noformat}doc.contentUpdateDate{noformat} do the job partly, but further
in-line WYSIWYG modification of any page in my XWiki doesn't list that page in result, only page is listed on top if I change it in wiki editor. Final idea - to create a complex query here, that will check reversion version or revision date with creation date, and if date is different or there're more than one revision that list those XWiki pages.