البحث عن حقول مستخدم متعددة الاختيارات

Moderator edit to add link to the relevant repro below:

I implemented a profile user field (question) with a multi select and made it optional and searchable. The idea is to allow users of a certain component to find each other.

First it took a day or two for the question to be visible in profiles. Is there a nightly indexing going on or something?

Second, now the multi select options show up in the user info card and when I click on them it starts a search in groups (/u url path). That would be very neat as I need it for discovers! however the search is always empty. Are there some more conditions which need to be met? And also why does the search have a time range, does it work on posts or on users?

Also searching in generic search for the terms does not work. Are there problems with blanks or uppercase in the name or does it also need some re-indexing to work? I am using stable containers.

Also a problem: The profile summary (expanded header) also shows the field (list of selected entries), but they are not clickable in this location.

إعجاب واحد (1)

Little correction if i go to user search i can actually search for the multi-select terms. But the links from the Cards dont use that search type.

Were you able to resolve your issue? I just tested it and it works for me.

Reproduction steps:

  • create user field using multiselect as the field type, editable after signup, show on public profile, show on user card, searchable
  • edit a user to choose one or more items from the multiselect and save changes
  • look at user profile and user card to confirm the multiselect items show up
  • use site search to search for multiselect items and confirm the user shows up
إعجاب واحد (1)

We have updated to 3.5.1 but the one problem persists: if I open the user card of a user who has filled out the multi selection their selections are shown properly now as links. But if I click on one of them (to see all users with this property) it opens a /u search which does not return any results (and has a unexpected time frame limit).

I can confirm that search works when using the regular user search, but nor for all cases, I have a term „BIS Server 6.7“ which auto completes the User Matches but when I press enter the result list is empty. But it does List some with „BIS Server“ - so maybe does not like dot or Numbers or two Spaces

It seems likely that the dot is a problem. Similar problems have occurred before.

إعجاب واحد (1)

The First issue (link does not work) happens also for values without a dot, though:

This is the odd search („search in groups“?) which opens when I Click one of the terms in my user card on https://server/u?name=BIS%20in%20iPaaS

So it seems to be two different issues.

I tested this out on my own self-hosted site and see there are some UX issues here:

  • After adding the custom user field, the new field did not appear in my user preferences until I refreshed the web browser. Same thing for user card and user profile.
  • On the user list, the search field is descrbed as “filter by username” but you can search by custom user fields. That feels slightly strange to me.

Very prettily, the site search does work and indicates even which user field is a match:

Clicking a link to search from the user card or user profile does not exist for me. Is that a theme component you are using?

إعجاب واحد (1)

Not that I am aware of. But maybe it’s related to my admin role?

FWIW I get the values to show as links, but only if my test user has selected more than one of the multiselect options:

When I click on them it seems to be working for me. I get /u?name=BIS%20in%20iPasS&order=likes_received as well, but it pulls up the correct users (plus my own directory result as default even though I don’t have that value in the custom field)

ETA: Mine also seem to be clickable from the profile page as well, as long as the user has multiple values:

I’m on the latest branch rather than stable, so I’m not sure if that’s the difference.

This appears to be a UX bug. Does this sum it up?

  1. multiselect values only show up as link in user card/profile if user has selected more than one value. If there is only one value, it is displayed as plain text and not a link
  2. link to filtered results include yourself even if you yourself do not have that value selected
  3. the link to filtered results does not work for multiselect values containing a . e.g. violet.purple

Yes those 3 plus the fact it does not open the user search but a „group search“ which i think is not available via search Menu directly (a d does not work even for searches without a dot)

Haven’t noticed the „includes myself“ yet.

(I also think it took two days before the Profile question shows up in the profile, but not sure if that’s just a browser reload issue or a server side job)

إعجاب واحد (1)

Confirmed, it’s a number thing

إعجاب واحد (1)

That actually is the user directory. Note the /u in the URL which is the same URL as the Users link on the sidebar.

The groups directory is at /g.

I moved this topic to UX and added my repro list to the first post.

Ok yes, but it’s the wrong list, it wont find the Profile questions (the Input Field searches only user id and the date range is unexpected)

What list are you expecting it to go to?

Also.. fun fact. You can search in the “filter by username” for location and custom user fields. That is also a weird bit of UX. User bio does not show results.

I expect it to go to a search where it actually finds users with the item in profile, for example the input completion of the site search or the search result when I pick „users“ in the site search.

This is the site search with the expected result (manually entered search)

oh I just noticed. The reason why I dont get no Matches (even when manually switching to „all time“ might be because User Browsing is switched off on my Site). So maybe the bug is not that I can’t search for them in User Directory, but the Problem is that Site search still Shows them? ,)

FWIW You may already have clocked this, but you can open the wrench menu in the User Directory and add extra columns/info to the display, including any custom user fields you have.

إعجاب واحد (1)

Thats nice (I have to use the admin view instead but that’s I guess of my own making.)

إعجاب واحد (1)

Ah, yes. You’d need Enable user directory toggled on to make proper use of these custom user field links. If it’s the other stats on the page that you’d rather not let other people browse then the wrench menu would let you remove those and leave you only with the custom user fields you added, if that’s any help?

إعجاب واحد (1)