Lucas_Werkmeister_WMDE added a comment.

  We haven’t fully decided on how to implement this yet, but some points from 
the task breakdown:
  
  - We’ll need the title of the item on the repo wiki, which may be distinct 
from the //ID// (if there’s an `Item:` namespace). We’ll get this from the edit 
link, i. e. the RegExp we use to match it will gain a third capturing group 
that matches the whole title, not just the item ID part.
  
  - There will be a `PermissionRepo` (name not final) which is instantiated 
with a (Foreign)Api object (side note: probably rename the current `ForeignApi` 
interface to `Api`) and which, given a title, returns a (possibly empty) list 
of permission errors why the user can’t edit that title on the wiki targeted by 
the given Api.
  
  - There will be two instances of this `PermissionRepo`, one for the repo wiki 
and one for the client wiki. There will be some component which translates the 
generic errors they return (“user blocked”) into specific ones (“user blocked 
//on repo//”).
  
  We have not yet decided how the titles will be communicated between various 
components. They may be passed around as method arguments, or they may be 
injected in the constructor at service creation time. We would prefer to decide 
this in pair programming, probably on Monday.

TASK DETAIL
  https://phabricator.wikimedia.org/T235154

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Addshore, Michael, Pablo-WMDE, WMDE-leszek, Lucas_Werkmeister_WMDE, 
Charlie_WMDE, Aklapper, Lydia_Pintscher, darthmon_wmde, DannyS712, Nandana, 
Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, 
Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to