Page MenuHomePhabricator

[PHP]: Add rights for creation & editing of lightweight enum types
Closed, ResolvedPublic

Description

Description

Determine and implement rights for working with these aspects of lightweight enum types:

  • creation rights:
    • wikilambda-create-generic-enum to group functioneer
    • fallback wikilambda-create-function-call disallowed
  • editing rights:
    • Z6884K1/Wikidata reference type: wikilambda-edit-generic-enum-type to group function maintainer
    • Z6884K2/list of Wikidata references: wikilambda-edit-generic-enum-item to group functioneer
    • Z688K3/id: wikilambda-edit-generic-enum-id to group sysop
    • fallback any edit in a persisted Z7: wikilambda-edit-function-call disallowed

Some other examples of granular auth rules patches


Completion checklist

Event Timeline

gengh changed the task status from Open to In Progress.May 20 2025, 11:14 AM
gengh claimed this task.
gengh updated the task description. (Show Details)

Change #1148427 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] [WIP] Add create and granular edit rights for lightweight enums

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

Change #1148828 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Add create and granular edit rights for lightweight enums

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

@DMartin-WMF I've created the granular rights and assigned it to different groups as per this task description:

  • functioneers will be able to create new WD enum types
  • and for edit:
    • any functioneer will be able to add new items (or remove or edit items) from an existing WD enum type
    • only function maintaners will be able to change the type of an existing WD enum type
    • only sysops will be able to change the ID of an existing WD enum type

Does this work?

Thanks @gengh ! Yes, this looks right to me.

Change #1148828 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Add create and granular edit rights for lightweight enums

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

Change #1148951 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/mediawiki-config@master] [wikifunctions] Don't grant new generic-enum rights to Functioneers for now

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

Change #1148951 merged by jenkins-bot:

[operations/mediawiki-config@master] [wikifunctions] Don't grant new generic-enum rights to Functioneers for now

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

Mentioned in SAL (#wikimedia-operations) [2025-05-27T15:31:46Z] <jforrester@deploy1003> Started scap sync-world: Backport for [[gerrit:1148951|[wikifunctions] Don't grant new generic-enum rights to Functioneers for now (T391913)]], [[gerrit:1148423|Wikifunctions: Enable Wikifunction client mode on the first five Wiktionaries (T390552)]]

Mentioned in SAL (#wikimedia-operations) [2025-05-27T15:33:55Z] <jforrester@deploy1003> jforrester: Backport for [[gerrit:1148951|[wikifunctions] Don't grant new generic-enum rights to Functioneers for now (T391913)]], [[gerrit:1148423|Wikifunctions: Enable Wikifunction client mode on the first five Wiktionaries (T390552)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-05-27T15:42:36Z] <jforrester@deploy1003> Finished scap sync-world: Backport for [[gerrit:1148951|[wikifunctions] Don't grant new generic-enum rights to Functioneers for now (T391913)]], [[gerrit:1148423|Wikifunctions: Enable Wikifunction client mode on the first five Wiktionaries (T390552)]] (duration: 10m 50s)