There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-f2ca8d11-0b5d-4813-83fb-3d2ab1af8209 XWIKI-24636 Open

Create a multi location/space picker

 
View issue   ·   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-28eea522-dd60-4f36-a97c-df9c4f6696e3 Charpentier Lucas on 29/Jul/26 11:54
 

Note that technically the user picker is also a page picker: it's querying pages that carry an XWiki.XWikiUsers object, then presenting the result as a "user".
Users always come with a page (except for superadmin and XWikiGuest which have a special status). Most pages don't have a user.
Some spaces come with a page (but it's quite frequent that some don't). Terminal pages don't have a space.
The space concept is more difficult to retrieve from pages than the user concept so IMO it warrants its own picker with very specific query logic.

There's already a variety of specific page pickers, and we definitely need something new for this picker (we don't want to keep a raw text input), so I think it makes sense to create a picker specific for spaces.

> Was there a forum discussion/proposal about introducing this new picker so that we can discuss it?

IMO the concept in itself is already decided, we agreed on the past few cycle roadmaps that we want more pickers for macro fields, and there's no existing picker that's appropriate on this field so we need to create one.
The exact implementation is up for debate but I think this first implementation is good enough for a start – I'm more open to starting a discussion on it if you think we need it.

 
cid:jira-generated-image-avatar-28eea522-dd60-4f36-a97c-df9c4f6696e3 Charpentier Lucas on 29/Jul/26 11:55
 
Note that technically the user picker is also a page picker: it's querying pages that carry an XWiki.XWikiUsers object, then presenting the result as a "user".
Users always come with a page (except for superadmin and XWikiGuest which have a special status). Most pages don't have a user.
Some spaces come with a page (but it's quite frequent that some don't). Terminal pages don't have a space.
The space concept is more difficult to retrieve from pages than the user concept so IMO it warrants its own picker with very specific query logic.

There's already a variety of specific page pickers, and we definitely need something new for this picker (we don't want to keep a raw text input), so I think it makes sense to create a picker specific for spaces.

> Was there a forum discussion/proposal about introducing this new picker so that we can discuss it?

IMO the concept in itself is already decided, we agreed on the past few cycle roadmaps that we want more pickers for macro fields, and there's no existing picker that's appropriate on this field so we need to create one.
The exact implementation is up for debate but I think this first implementation is good enough for a start -- I'm more open to starting a discussion on it if you think we need it.


___
Sidenote: I created this issue quickly for the split of work in XWIKI-23834 , the title and description might be lacking, feel free to update them if something gave you the wrong idea.