Cdentinger has submitted this change and it was merged. Change subject: Add /wiki/WP* to landing page patterns ......................................................................
Add /wiki/WP* to landing page patterns To match WP-Video-2016. TODO: document the patterns on https://www.mediawiki.org/wiki/Fundraising_tech/tools Bug: T132500 Change-Id: I6f114ac2c1cdbbee934d4d81e5793ff31e430d81 --- M fundraiser/analytics/regex.py 1 file changed, 5 insertions(+), 1 deletion(-) Approvals: Cdentinger: Verified; Looks good to me, approved diff --git a/fundraiser/analytics/regex.py b/fundraiser/analytics/regex.py index 27170fd..eccfde9 100644 --- a/fundraiser/analytics/regex.py +++ b/fundraiser/analytics/regex.py @@ -134,6 +134,9 @@ ), ] +# For the benefit of fr-non-tech people creating links to landing pages, please +# keep https://www.mediawiki.org/w/index.php?title=Fundraising_tech/tools up to +# date with any changes you make to the patterns below! landingpages = [ re.compile( r""" @@ -159,7 +162,7 @@ ), re.compile( r""" - # match all of the landing page patterns on wmfwiki + # match all of the landing page patterns on donatewiki (http|https) :// (?P<sitename>donate.wikimedia.org)/ @@ -171,6 +174,7 @@ | L2011 # potential landing page naming scheme for 2011 | L2012 # potential landing page naming scheme for 2012 | WMF # eg WMFJA085 + | WP # eg WP-Video-2016 ) (?:(?!\?|&)[\S])* # this will give us the landing page up to the next ? or & ) -- To view, visit https://gerrit.wikimedia.org/r/289255 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I6f114ac2c1cdbbee934d4d81e5793ff31e430d81 Gerrit-PatchSet: 2 Gerrit-Project: wikimedia/fundraising/tools/DjangoBannerStats Gerrit-Branch: master Gerrit-Owner: Ejegg <eeggles...@wikimedia.org> Gerrit-Reviewer: Awight <awi...@wikimedia.org> Gerrit-Reviewer: Cdentinger <cdentin...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits