Page MenuHomePhabricator

Provide default publishing namespace configuration at user group level
Closed, ResolvedPublic

Description

In T165562: Provide options to choose target namespace for publishing we used ContentTranslationTargetNamespace configuration to specify the default namespace for publishing. This is a wiki level configuration. A more granular configuration is desirable to specify the default namespce for groups.

We can name it as ContentnTranslationUserGroupTargetNamespace. The value is an associative array. An example:

"ContentTranslationTargetNamespace": 0,
"ContentnTranslationUserGroupTargetNamespace": {
	"extendedconfirmed": 0,
	"autoconfirmed": 2
}

Details

  1. If the current user belongs to a group for which a namespce is defined in ContentnTranslationUserGroupTargetNamespace, set that as default namespace
  2. If no match found in ContentnTranslationUserGroupTargetNamespace use wiki level namespace defined in ContentTranslationTargetNamespace
  3. This is just the default value for namespace and does not force the value on any users. A translator is free to choose an alternate non-default namespace from the namespace selector developed in T165562: Provide options to choose target namespace for publishing
  4. By default, CX will not have a configuration defined for ContentnTranslationUserGroupTargetNamespace. It can be optionally defined for a wiki on request and discussion basis.
  5. Should work for CX1 and CX2

Details

Related Gerrit Patches:
mediawiki/extensions/ContentTranslation : masterSource selector: Use default namespace with source title fallback
mediawiki/extensions/ContentTranslation : masterProvide default publishing namespace configuration at user group level

Event Timeline

santhosh created this task.Jun 2 2017, 4:25 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 2 2017, 4:25 AM
santhosh updated the task description. (Show Details)Jun 2 2017, 4:28 AM
santhosh updated the task description. (Show Details)Jun 2 2017, 4:37 AM

Change 356787 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] Provide default publishing namespace configuration at user group level

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

santhosh claimed this task.Jun 2 2017, 6:06 AM
santhosh triaged this task as Normal priority.

Change 358339 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] Source selector: Use default namespace with source title fallback

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

Change 356787 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Provide default publishing namespace configuration at user group level

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

Change 358339 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Source selector: Use default namespace with source title fallback

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

Arrbee closed this task as Resolved.Jun 20 2017, 6:54 AM