Opened 5 years ago
Closed 4 years ago
#8272 closed defect (bug) (fixed)
Private groups not available in group block
Reported by: | iamthewebb | Owned by: | imath |
---|---|---|---|
Milestone: | 7.0.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | REST API | Keywords: | has-patch commit |
Cc: |
Description
I created an empty WP site with only v6.0.0 of BP installed. I created one of each group type.
The public group can be selected in the new Group Blocks but both Private and Hidden groups do not appear to be selected.
Description of Private groups
Only people who request membership and are accepted can join the group.
This group will be listed in the groups directory and in search results.
Group content and activity will only be visible to members of the group.
I don't think this would be circumvented by having the Private groups available for selection?
Attachments (1)
Change History (7)
#2
@
5 years ago
- Milestone changed from 6.0.0 to Up Next
I believe we're running out of time about this ticket for 6.0.0. Let's work on it during next development cycle.
#4
@
4 years ago
- Component changed from (not sure) to REST API
- Keywords has-patch needs-testing added; dev-feedback removed
Ok @iamthewebb let's also include Private groups into the Autocompleter!
In 8272.patch, I've improved various things about BP Blocks actually.
- Adapt to the Block Editor's new style to arrive in WordPress 5.5
- Improve the bp.Autocompleter component so that it's more useful. We can now use it to send specific query args to the endpoint and a callback function to display the item slug.
- Improve the BP Group block so that it use these query args
{ 'show_hidden': false }
meaning Private and Public groups can be listed into the Autocompleter. - Improve both blocks (Group and member) so that they use the slug callback function to respectively display the Group status and the member's mention name.
Here's a preview:
I haven't tested it into WordPress < 5.5. I'll give it a check asap. @iamthewebb don't hesitate to test it ;)
Hi @iamthewebb
Thanks for your feedback. It's a deliberate choice I've made. To me featuring a private group into a Post or a Page doesn't seem to be a great experience for the site's visitors. Once they click on the Group's link, they can't see more than what's into the BP Group Block.
But, I'm very open to change this if other members of the team think it's a better idea to also include private groups.