Page MenuHomePhabricator

Set allowed namespaces for collaborationhubs
Closed, ResolvedPublic

Description

CollaborationHubs only work in namespaces with subpages. They only normally make sense in project: and user:.

Add variable to configure namespaces (default project, user); they may want to override it.
Enforce hub creation to these namespaces

Event Timeline

Change 312711 had a related patch set uploaded (by Harej):
Restricting CollaborationHubContent and CollaborationListContent to user and project namespaces.

https://gerrit.wikimedia.org/r/312711

Change 312711 merged by jenkins-bot:
Restricting CollaborationHubContent and CollaborationListContent to user and project namespaces.

https://gerrit.wikimedia.org/r/312711

Harej renamed this task from Add configuration for allowed namespaces for collaborationhubs to Set allowed namespaces for collaborationhubs.Sep 24 2016, 11:37 PM
Harej closed this task as Resolved.
Harej claimed this task.

Have set the only allowed namespaces to user and project. I think if a wiki wants to change the default settings it should be changed in code. For our initial use case (English Wikipedia) I don't see a reason for a user-facing configuration option.

We still need a configuration variable so they can change it via localsettings. If you hard-coding something that's supposed to be a setting, it's... well, it's not a setting at that point.

I'll go ahead and add that.