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.
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.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.