Lucas_Werkmeister_WMDE added a comment.

  > There's some precedent with respect to how ConfirmEdit has "sub-extensions" 
in the same repo.
  
  Thanks, that’s good to know. In Wikibase, I noticed two problems (so far) in 
Special:Version when putting the `extension.json` in a subdirectory: the “and 
more” entry in the authors list is no longer a hyperlink because the `CREDITS` 
file doesn’t reside next to the `extension.json`, and there’s no Git 
information because the `extension.json` is not in the Git repository root.
  
  It looks like ConfirmEdit doesn’t have any solutions for these problems (the 
FancyCaptcha entry on meta:Special:Version 
<https://meta.wikimedia.org/wiki/Special:Version#mw-version-ext-antispam-FancyCaptcha>
 exhibits them as well) – but they’re less serious there, because ConfirmEdit 
still has the root extension with correct Git information and author credits. 
In Wikibase we don’t have that, at least not with the current plan, as far as 
I’m aware (there’d be no general Wikibase extension in the root directory of 
the Git repository).
  
  Both of the problems can be solved as far as MediaWiki is concerned by 
symlinking `CREDITS` and `.git` into the subdirectory, but obviously for `.git` 
that’s not a workable solution, since Git will then think the subdirectory is a 
Git repository root. (For `CREDITS`, it works well enough, though I suppose we 
could also have separate per-subdirectory `CREDITS` files if we wanted to.) 
Perhaps some new settings for `extension.json` can be added, telling the 
extension registry where to look for the Git repository root and possibly other 
information? It could either be one general setting “look in `../` for anything 
not found in `./`” (where the `../` would be the setting’s value) or one 
setting for the Git repository root, one for the `CREDITS` file, and others for 
whatever other problems turn up (I probably haven’t found all of them yet).

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

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

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Ricordisamoa, Addshore, Legoktm, hashar, 
JanZerebecki, Aklapper, darthmon_wmde, Premeditated, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, thcipriani, 
Wikidata-bugs, aude, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to