jayvdb added a subscriber: jayvdb. jayvdb added a comment.
Core has a config variable log_pywiki_repo_version = False . That could be useful for https://phabricator.wikimedia.org/T98106
Regarding the user-agent, core http layer provides a few values to the user agent formatter, including pywikibot.__release__ (which is not the auto discovered version), but also includes the auto-discovered data in pywikibot.version.cache **only** if it is set. (see http.py line 184). That implicitly means it doesnt use the git version when log_pywiki_repo_version is False
We could improve the user agent so that it explicitly fetches pywikibot.version data when '{revision}' or '{version}' are in the user agent format string, and explicitly doesnt fetch that version when those are omitted from the user agent string.
TASK DETAIL https://phabricator.wikimedia.org/T98107
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: jayvdb, saper, Aklapper, pywikipedia-bugs