Page MenuHomePhabricator

diegodlh (Diego de la Hera)
User

Projects (8)

Today

  • No visible events.

Tomorrow

  • No visible events.

Thursday

  • No visible events.

User Details

User Since
Sep 23 2020, 8:24 PM (314 w, 6 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Diegodlh [ Global Accounts ]

Recent Activity

Aug 27 2026

diegodlh added a comment to T317168: Automatically add fallback procedure on new template field or default to fallback template on new template added.

Possibly consider scanning all templates to identify templates missing itemType or title fields and notify interested users.

Aug 27 2026, 7:53 PM · Web2Cit-Core, Web2Cit-JSON-Editor, Web2Cit (Grant end)

Aug 18 2026

diegodlh closed T430885: Re-consider including URL fragment as part of URL path as Resolved.

Published in w2c-server v1.5.0.

Aug 18 2026, 11:12 PM · Web2Cit-Core
diegodlh closed T408870: Web2Cit not working with washingtonpost.com as Resolved.

Published in w2c-server v1.5.0.

Aug 18 2026, 11:10 PM · Web2Cit-Server
diegodlh closed T347508: Server seems to crash when citoid=true and Citoid fails (and one template available) as Resolved.

Published in w2c-server v1.5.0.

Aug 18 2026, 11:06 PM · Web2Cit-Server
diegodlh closed T304326: Implement URL selection step as Resolved.

Deployed to production and using in the following domain main configurations:

Aug 18 2026, 11:04 PM · Web2Cit-Core
diegodlh closed T304326: Implement URL selection step, a subtask of T308712: Make Web2Cit support web servers which addapt to "Accept-Language" request headers, as Resolved.
Aug 18 2026, 11:04 PM · Web2Cit
diegodlh added a comment to T309869: Support wikilinks in Web2Cit citation fields.

Other domain template configurations where this has been used so far:

Aug 18 2026, 10:40 PM · Web2Cit
diegodlh closed T309869: Support wikilinks in Web2Cit citation fields as Resolved.
Aug 18 2026, 10:08 PM · Web2Cit
diegodlh closed T316951: Internationalize and translate the Web2Cit JSON editor as Resolved.
Aug 18 2026, 10:07 PM · I18n, Web2Cit-JSON-Editor
diegodlh added a comment to T408870: Web2Cit not working with washingtonpost.com.

Solved by adding a 10-second timeout to fetch calls in Web2Cit-Core with 3ecef4d0.

Increased timeout to 15 seconds with 34633dd4 as it was otherwise failing for https://collections.slq.qld.gov.au/guide/3282/details.

Aug 18 2026, 8:15 PM · Web2Cit-Server
diegodlh closed T408866: Re-enable collaborative translations via Translatewiki as Resolved.
Aug 18 2026, 3:29 PM · Web2Cit-Server
diegodlh added a comment to T433290: Re-Add Web2Cit to translatewiki.net.

Thank you, @abi_. The merge request was created successfully, and set to be merged into production as I had requested. Great!

Aug 18 2026, 3:28 PM · Essential-Work, LPL Projects (Ongoing maintenance), LPL sprints (S2 2026 August), translatewiki.net

Aug 12 2026

diegodlh added a comment to T433290: Re-Add Web2Cit to translatewiki.net.

Thanks @abi_. So from your message I understand that the commit was pushed to the i18n branch successfully but that due to the bug a merge request into the production branch was not created automatically.

Aug 12 2026, 10:40 PM · Essential-Work, LPL Projects (Ongoing maintenance), LPL sprints (S2 2026 August), translatewiki.net

Aug 6 2026

diegodlh added a comment to T305571: Set content model JSON for Web2Cit configuration pages in metawiki's "Main" namespace.

Should I submit a separate patch to add that line and reference the old change id in the commit message?

As per discussion on #wikimedia-operations, submitted a new patch here: https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/1322012

Aug 6 2026, 4:02 PM · Patch-For-Review, JsonConfig, Wikimedia-Site-requests, Web2Cit
diegodlh updated subscribers of T305571: Set content model JSON for Web2Cit configuration pages in metawiki's "Main" namespace.

Should I submit a separate patch to add that line and reference the old change id in the commit message?

Pinging @dancy who commented about this on the patch on Gerrit a while ago.

Aug 6 2026, 3:37 PM · Patch-For-Review, JsonConfig, Wikimedia-Site-requests, Web2Cit
diegodlh added a comment to T305571: Set content model JSON for Web2Cit configuration pages in metawiki's "Main" namespace.

Thank you so much, @hashar! Unfortunately I just tested it on the beta cluster and there is an error:

Aug 6 2026, 1:27 PM · Patch-For-Review, JsonConfig, Wikimedia-Site-requests, Web2Cit

Aug 5 2026

diegodlh added a comment to T305571: Set content model JSON for Web2Cit configuration pages in metawiki's "Main" namespace.

Thanks @matmarex! Ok, done. I'll wait for your new +1 now then, and once done I'll ping @hashar asking if he could give +2 for merging. Thank you!!

Aug 5 2026, 1:59 PM · Patch-For-Review, JsonConfig, Wikimedia-Site-requests, Web2Cit

Aug 4 2026

Matthias_M awarded T308668: Consider implementing CSS selection in Web2Cit a Like token.
Aug 4 2026, 8:57 AM · Web2Cit-Core

Aug 3 2026

diegodlh added a comment to T305571: Set content model JSON for Web2Cit configuration pages in metawiki's "Main" namespace.

Thanks @matmarex! Your suggestion sounds good to me too. So the change would look like:

@@ -558,7 +558,8 @@ if ( $wmgRealm == 'labs' ) {
                $wgHooks['ContentHandlerDefaultModelFor'][] = static function ( Title $title, &$model ) {
                        if (
                                $title->getNamespace() === NS_MAIN &&
-                               preg_match( '/^Web2Cit\/data\/.+\.json$/', $title->getText() )
+                               str_starts_with( $title->getText() , 'Web2Cit/data/') &&
+                               str_ends_with( $title->getText() , '.json')
                        ) {
                                $model = CONTENT_MODEL_JSON;
                        }

Should I follow the instructions here to update the patch on Gerrit before merging? Would that reset your +1 vote?

Aug 3 2026, 2:04 PM · Patch-For-Review, JsonConfig, Wikimedia-Site-requests, Web2Cit

Jul 31 2026

diegodlh added a comment to T316951: Internationalize and translate the Web2Cit JSON editor.

Deployed to w2c-beta for testing.

Jul 31 2026, 11:55 PM · I18n, Web2Cit-JSON-Editor
diegodlh added a comment to T316951: Internationalize and translate the Web2Cit JSON editor.

The editor interface part should be relatively trivial.

This is pending. If JSONEditor.default.language is used, make sure error_messages overrides from JSON schemas continue working as expected.

Jul 31 2026, 11:29 PM · I18n, Web2Cit-JSON-Editor

Jul 30 2026

diegodlh added a comment to T316951: Internationalize and translate the Web2Cit JSON editor.

Spanish translations for JSON schemas provided with 3c7f8903.

Jul 30 2026, 10:46 PM · I18n, Web2Cit-JSON-Editor
diegodlh changed the status of T316951: Internationalize and translate the Web2Cit JSON editor from Open to In Progress.

On the other hand, because most text on the JSON editing form comes from the JSON schema file used to generate it, a way to translate these labels must be found. See T305904 for a proposal to use separate schema files based on one main version.

Jul 30 2026, 8:21 PM · I18n, Web2Cit-JSON-Editor
diegodlh closed T305904: Consider internationalizing and localizing JSON schemas as Resolved.

Internationalized JSON schemas in Web2Cit-Core with 50923c69.

Jul 30 2026, 8:19 PM · I18n, Web2Cit-Core

Jul 29 2026

diegodlh added a comment to T317448: Consider returning a result even if the fallback template does not apply.

Data from non-applicable templates is then used to return a result for a non-applicable fallback template.

Made an additional change in Web2Cit-Server to not return field scores in these cases where field outputs have been ignored: 727096fb.

Jul 29 2026, 1:03 AM · Web2Cit-Monitor, Web2Cit-Server

Jul 27 2026

diegodlh changed the status of T408866: Re-enable collaborative translations via Translatewiki from Open to In Progress.

With T408865 resolved, asked to have the translation project reinstated: T433290.

Jul 27 2026, 6:10 PM · Web2Cit-Server
diegodlh created T433290: Re-Add Web2Cit to translatewiki.net.
Jul 27 2026, 6:09 PM · Essential-Work, LPL Projects (Ongoing maintenance), LPL sprints (S2 2026 August), translatewiki.net
diegodlh closed T408865: Enable Continuous Integration (CI) for Web2Cit Server as Resolved.

Pending update Docs/Server.

Updated: https://meta.wikimedia.org/w/index.php?title=Web2Cit%2FDocs%2FServer&diff=30859609&oldid=30825040

Jul 27 2026, 4:37 PM · Web2Cit-Server
diegodlh added a comment to T408865: Enable Continuous Integration (CI) for Web2Cit Server.

Re-deployed currently deployed v1.4.0 release in production like so:

  • Create production branch locally from v1.4.0 tag: git checkout -b production v1.4.0
  • Cherry-pick the two commits from main implementing (and fixing) automatic deployments.
  • Push production branch remotely.
Jul 27 2026, 3:08 PM · Web2Cit-Server
diegodlh changed the status of T408865: Enable Continuous Integration (CI) for Web2Cit Server from Open to In Progress.

To support automatic deployments while also supporting immediate integration of translatewiki translations (T408866) I decided to adopt a Gitlab-Flow-like workflow:

  • Continue using the main branch for development, with feature branches as needed.
  • Create a staging branch for release stabilization. This branch to be deployed automatically to our beta server.
  • Create a production branch for the latest stable release. This branch to be deployed automatically to our production server.
  • Translatewiki to pull and push from the production branch for immediate deployment of translation updates (T408866).
Jul 27 2026, 2:54 PM · Web2Cit-Server

Jul 25 2026

Herald added a project to T403286: `webservice shell` sometimes loses output: tools-platform-team.
Jul 25 2026, 4:05 AM · tools-platform-team, Upstream, cloud-services-team, Toolforge

Jul 23 2026

diegodlh added a comment to T305571: Set content model JSON for Web2Cit configuration pages in metawiki's "Main" namespace.

If there is a list of actions that can be made to verify, the list can be added to this task description and mentioned on the change (so the deployer have access to it easily). We usually expect the patch author to be available to do the test themselves, but I guess a deployer can do that as well.

Jul 23 2026, 1:38 PM · Patch-For-Review, JsonConfig, Wikimedia-Site-requests, Web2Cit
diegodlh added a comment to T305571: Set content model JSON for Web2Cit configuration pages in metawiki's "Main" namespace.

I submitted the patch here: https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/1314816

Jul 23 2026, 1:30 PM · Patch-For-Review, JsonConfig, Wikimedia-Site-requests, Web2Cit

Jul 22 2026

diegodlh renamed T305571: Set content model JSON for Web2Cit configuration pages in metawiki's "Main" namespace from Configure JsonConfig for pattern Web2Cit/data/**/*.json in metawiki's "Main" namespace to Set content model JSON for Web2Cit configuration pages in metawiki's "Main" namespace.
Jul 22 2026, 9:47 PM · Patch-For-Review, JsonConfig, Wikimedia-Site-requests, Web2Cit
diegodlh added a comment to T305571: Set content model JSON for Web2Cit configuration pages in metawiki's "Main" namespace.

Thank you @hashar for your detailed explanation! I think I should be ready to submit my first gerrit patch now.

Jul 22 2026, 5:30 PM · Patch-For-Review, JsonConfig, Wikimedia-Site-requests, Web2Cit

Jul 18 2026

diegodlh added a comment to T315020: Consider supporting hosts with port in Web2Cit.

The reason why we have paths defined as com/example/www/ is probably because we wanted Web2Cit to use configuration files hierarchically (i.e., use com.example.com.sub, if not available use com.example.com, else use com.example). But then plans changed.

Note this may still be desired, as mentioned in T320771#12060424

Jul 18 2026, 2:50 AM · Web2Cit-Core
diegodlh added a comment to T309869: Support wikilinks in Web2Cit citation fields.

Started working in branch T309869 of Web2Cit-Core:

  • implement a QID transformation step that resolves an input QID into corresponding [[sitelink]] or label value from Wikidata, using a list of one or more language codes as config value to decide which sitelink/label to return.
Jul 18 2026, 2:43 AM · Web2Cit

Jul 12 2026

diegodlh added a comment to T304326: Implement URL selection step.

Once deployed, use for www.telegraph.co.uk as well.

Jul 12 2026, 5:53 PM · Web2Cit-Core
diegodlh changed the status of T408870: Web2Cit not working with washingtonpost.com from Open to In Progress.

Solved by adding a 10-second timeout to fetch calls in Web2Cit-Core with 3ecef4d0.

Jul 12 2026, 3:53 PM · Web2Cit-Server
diegodlh added a comment to T408870: Web2Cit not working with washingtonpost.com.

Likewise, I'm getting internal server error for www.animenewsnetwork.com URLs, with Web2Cit but not with Citoid.

This was T322875.

Jul 12 2026, 3:27 PM · Web2Cit-Server
diegodlh closed T408871: Web2Cit not working with nytimes.com as Resolved.

T403799#11151450 explains why source may have shown as citoid instead of zotero:

the response is coming from citoid, not zotero. Possibly the nytimes is temporarily blocking our zotero UA but not our citoid one,

But why would that result in Web2Cit fallback template failing?

Jul 12 2026, 12:34 AM · Web2Cit-Server
diegodlh added a comment to T408871: Web2Cit not working with nytimes.com.

Can't reproduce anymore. It seems to be working now.

Jul 12 2026, 12:25 AM · Web2Cit-Server

Jul 11 2026

diegodlh added a comment to T305904: Consider internationalizing and localizing JSON schemas.

We may consider moving these messages from schemas in Web2Cit-Core to some complementary or overriding logic in Web2Cit-Server for more straightforward translation once T408866 has been solved.

Jul 11 2026, 12:57 AM · I18n, Web2Cit-Core
diegodlh added a comment to T304326: Implement URL selection step.

Implemented in Web2Cit-Core with e8b91273.

Jul 11 2026, 12:25 AM · Web2Cit-Core
diegodlh added a comment to T304326: Implement URL selection step.

This selection step may be useful in cases where we can't get the webpage because we have been blocked. As suggested in T305168, we could use such a URL selection step to guess a title.

Jul 11 2026, 12:15 AM · Web2Cit-Core

Jul 10 2026

diegodlh added a comment to T304326: Implement URL selection step.

Web2Cit/Docs/Templates documentation updated on meta-wiki.

Jul 10 2026, 11:27 PM · Web2Cit-Core

Jul 8 2026

diegodlh changed the status of T304326: Implement URL selection step from Open to In Progress.

Began implementation on a separate Web2Cit-Core branch: https://gitlab.wikimedia.org/diegodlh/w2c-core/-/tree/T304326

Jul 8 2026, 4:18 PM · Web2Cit-Core
diegodlh changed the status of T304326: Implement URL selection step, a subtask of T308712: Make Web2Cit support web servers which addapt to "Accept-Language" request headers, from Open to In Progress.
Jul 8 2026, 4:18 PM · Web2Cit

Jul 7 2026

diegodlh added a comment to T304326: Implement URL selection step.

The configuration value may mimic the browsers' URL object. For example, href for the full URL, hash for the fragment identifier, etc.

  • hash: alternatively, fragment. yes; maybe we could drop the leading #? Consider decoding.
  • hostname: alternatively, domain. yes; e.g., www.example.com.
  • href: yes; the whole URL.
  • pathname: alternatively, path. yes; including leading /.
  • protocol: alternatively, scheme. yes; e.g., https:, but won't be useful until T322601 is addressed. Consider dropping the trailing :.
  • port: yes; e.g., 8080, but won't be useful until T315020 is addressed.
  • host: no; it's just hostname + port.
  • origin: no; it's just protocol + hostname + port.
  • search: alternatively, query. yes; e.g., ?a=b&c=d&e=f.
    • Consider dropping leading ? or even returning an array of parameters: `[ "a=b", "c=d", "e=f" ].
    • Evaluate how the output chosen could be processed by a later transformation step (e.g, Match transformation) to get value or presence of a given parameter, considering parameter order can vary.
    • Can be decode considering we have = as delimiter between parameter name and value?
    • Consider some edge cases. For example ?a=b=c&d=f would be valid, with a parameter having b=c as value.
  • username: no?
  • ~~password: no?~
Jul 7 2026, 3:54 PM · Web2Cit-Core
diegodlh updated subscribers of T430885: Re-consider including URL fragment as part of URL path.
  1. https://rok.catholic.net.au/our-diocese/our-bishop/#
  2. https://schoolsdirectory.eq.edu.au/Details/A713#
  3. https://www.abs.gov.au/ausstats/abs@.nsf/products/8DBA196EBE5D5C2BCA2575E70019CD88?OpenDocument#

Removed unnecessary empty fragments from corresponding templates.json files.

Jul 7 2026, 12:16 AM · Web2Cit-Core

Jul 6 2026

diegodlh changed the status of T430885: Re-consider including URL fragment as part of URL path from Open to In Progress.

Update on-wiki documentation...

Jul 6 2026, 11:59 PM · Web2Cit-Core
diegodlh added a comment to T430885: Re-consider including URL fragment as part of URL path.

Likewise, Web2Cit-Server homepage will be updated to also encode # as %23 when clicking on "Extract", but won't be instructed to drop trailing # for now.

Implemented in the homepage and also when common translate endpoint request are redirected to shortcut URLs: e3251ae5.

Jul 6 2026, 11:40 PM · Web2Cit-Core
diegodlh added a comment to T430885: Re-consider including URL fragment as part of URL path.
  • We will likely want to implement this in Web2Cit-Core utils' normalizeUrlPath function.
  • Make sure unit tests are added or updated accordingly.
  • Make sure we encode URL fragment correctly when passing it on to Citoid.
  • Consider whether we should ignore empty URL fragments.
  • ...
  • Consider how this would affect URL path sorting into URL path patterns.
Jul 6 2026, 11:29 PM · Web2Cit-Core
diegodlh updated the task description for T430885: Re-consider including URL fragment as part of URL path.
Jul 6 2026, 11:12 PM · Web2Cit-Core

Jul 4 2026

diegodlh added a comment to T408874: Shall we register Web2Cit as friendly bot too?.

Apparently, Citoid selection is working but XPath and JSON-LD selection aren't. Maybe they block Web2Cit but don't block Citoid?

Jul 4 2026, 2:50 PM · Web2Cit-Server
diegodlh added a comment to T408874: Shall we register Web2Cit as friendly bot too?.

Maybe this is what happening with www.bloomberg.com? https://meta.wikimedia.org/w/index.php?title=Web2Cit/monitor/com/bloomberg/www/results&oldid=30602042

Jul 4 2026, 1:48 PM · Web2Cit-Server

Jul 3 2026

diegodlh added a comment to T304326: Implement URL selection step.

Noting that an alternative to the proposed URL selection step may be using Citoid selection with url config value. However, this would not be useful in cases where we have been blocked, which has been mentioned above as one of the benefits of having this URL selection step.

Jul 3 2026, 11:39 PM · Web2Cit-Core
diegodlh added a comment to T430885: Re-consider including URL fragment as part of URL path.

Consider whether we should ignore empty URL fragments.

Jul 3 2026, 11:16 PM · Web2Cit-Core

Jul 2 2026

diegodlh added a comment to T430885: Re-consider including URL fragment as part of URL path.

Updated Web2Cit-Monitor Web2Cit/results module (30761466) and Web2Cit-Gadget (3f95a655) to encode fragment delimiter # when creating https://web2cit.toolforge.org/<url> shortcut URLs.

Jul 2 2026, 8:37 PM · Web2Cit-Core
diegodlh added a comment to T304326: Implement URL selection step.

Then, it would make no sense to have this hash option in the URL selection step.

Jul 2 2026, 12:10 AM · Web2Cit-Core
diegodlh created T430885: Re-consider including URL fragment as part of URL path.
Jul 2 2026, 12:10 AM · Web2Cit-Core

Jul 1 2026

diegodlh added a comment to T408861: Count number or percentage of output fields or paths for which no expectations have been set.

A Jupyter notebook was created on PAWS to identify template paths for which no test had been defined, and the users who had contributed to the corresponding templates configuration files: https://public-paws.wmcloud.org/User:Diegodlh/Web2Cit/templates.ipynb

Jul 1 2026, 4:48 PM · Web2Cit-Server, Web2Cit-Monitor

Jun 28 2026

diegodlh added a comment to T430470: "FetchError: maximum redirect reached" errors for www.24heures.ch.

Zotero translation server (used by Citoid) does use cookies, precisely to "make websites with cookie forgetting browser/scrapper protection happy". See https://github.com/search?q=repo%3Azotero%2Ftranslation-server+cookie&type=code:

Jun 28 2026, 9:15 PM · Web2Cit-Core
diegodlh added a comment to T430470: "FetchError: maximum redirect reached" errors for www.24heures.ch.

According to internal Web2Cit server logs, getting similar errors with:

Jun 28 2026, 9:08 PM · Web2Cit-Core
diegodlh added a comment to T430470: "FetchError: maximum redirect reached" errors for www.24heures.ch.

Consider https://www.npmjs.com/package/fetch-cookie wrapper.

Jun 28 2026, 9:01 PM · Web2Cit-Core
diegodlh added a comment to T430470: "FetchError: maximum redirect reached" errors for www.24heures.ch.

I first thought this may be related to T408874. Tried this with curl and got a redirect. Even when trying with the User-Agent header specified here: https://radar.cloudflare.com/bots/directory/wikimedia-citoid

Jun 28 2026, 8:54 PM · Web2Cit-Core
diegodlh created T430470: "FetchError: maximum redirect reached" errors for www.24heures.ch.
Jun 28 2026, 8:11 PM · Web2Cit-Core

Jun 26 2026

diegodlh created T430358: Web2Cit monitor should be able to remove domains from overview page.
Jun 26 2026, 6:45 PM · Web2Cit-Monitor
diegodlh added a comment to T320771: Consider offering a way to create config file redirects.

This would be particularly useful in the common case were www.some.domain.com is an alias of some.domain.com. For cases like this, we may consider defaulting to use config files for some.domain.com if config files for p www.some.domain.com` have not been set.

Jun 26 2026, 6:35 PM · Web2Cit-JSON-Editor

Jun 21 2026

diegodlh added a comment to T304326: Implement URL selection step.

we could use such a URL selection step to guess a title.

Another example where this could be useful: https://web2cit.toolforge.org/https://www.thepress.co.nz/a/nz-news/350060204/series-inexplicable-coincidences-murder-case-against-david-benbow

Jun 21 2026, 11:14 PM · Web2Cit-Core

Jun 18 2026

diegodlh changed the status of T347508: Server seems to crash when citoid=true and Citoid fails (and one template available) from Open to In Progress.

Found it. In w2c-server we were getting data from local Citoid cache twice if options.citoid=true. In one of them we were using a try...catch block, whereas in the other we weren't (https://gitlab.wikimedia.org/diegodlh/w2c-server/-/blob/6eb85d83f378f0e44d6a1cb66027c89fc211d871/src/app.ts#L549):

Jun 18 2026, 3:18 PM · Web2Cit-Server
diegodlh added a comment to T347508: Server seems to crash when citoid=true and Citoid fails (and one template available) .

Tried a few more things but couldn't reproduce this bug.

Jun 18 2026, 2:25 PM · Web2Cit-Server

Jun 16 2026

diegodlh added a comment to T347508: Server seems to crash when citoid=true and Citoid fails (and one template available) .

Find a URL for which Citoid is failing, for example https://teara.govt.nz/en/biographies/4g2/galbraith-alexander (thanks @DrThneed!)

Jun 16 2026, 11:23 PM · Web2Cit-Server
diegodlh added a comment to T392381: Range transformation seems to ignore itemwise parameter setting.

Pending documentation update at https://meta.wikimedia.org/wiki/Web2Cit/Docs/Templates#Range_transformation.

Done: https://meta.wikimedia.org/w/index.php?diff=30697399

Jun 16 2026, 7:52 PM · Web2Cit-Core
diegodlh closed T392381: Range transformation seems to ignore itemwise parameter setting as Resolved.

Deployed with w2c-server v1.4.0

Jun 16 2026, 7:50 PM · Web2Cit-Core
diegodlh closed T322875: Web2Cit server internal error on paths with components beginning with a dot as Resolved.

Deployed in w2c-server v1.4.0

Jun 16 2026, 7:47 PM · Web2Cit-Server
diegodlh added a comment to T302692: Implement a "case" transformation step.

Deployed with w2c-server v1.4.0

Jun 16 2026, 7:47 PM · Web2Cit-Core
diegodlh closed T305898: Range selection transformation should support negative indices as Resolved.

Deployed with w2c-server v1.4.0

Jun 16 2026, 7:44 PM · Web2Cit (Grant end), Web2Cit-Core
diegodlh closed T302691: Implement "replace" transformation step as Resolved.

Deployed with w2c-server 1.4.0

Jun 16 2026, 7:44 PM · Web2Cit-Core
diegodlh closed T302696: Add logging middleware as Resolved.

Deployed with w2c-server v1.4.0

Jun 16 2026, 7:43 PM · Web2Cit (Grant end), Web2Cit-Server
diegodlh closed T429028: toolforge webservice logs output has encoding issues and gets truncated compared to kubectl logs as Declined.

Oh sure, no worries. I can perfectly wait. Closing this then. Thanks!

Jun 16 2026, 7:42 PM · cloud-services-team, Toolforge
diegodlh closed T317168: Automatically add fallback procedure on new template field or default to fallback template on new template added as Resolved.

Deployed with w2c-server v1.4.0

Jun 16 2026, 7:37 PM · Web2Cit-Core, Web2Cit-JSON-Editor, Web2Cit (Grant end)
diegodlh changed the status of T313236: Fallback template does not apply if Citoid returns empty string for title field from Resolved to Declined.
Jun 16 2026, 7:35 PM · Web2Cit (Grant end), Web2Cit-Core
diegodlh closed T313236: Fallback template does not apply if Citoid returns empty string for title field as Resolved.

Citing the following from an old email to @DrThneed:

Jun 16 2026, 7:34 PM · Web2Cit (Grant end), Web2Cit-Core
diegodlh closed T408860: Consider combining templates.json and tests.json into a single paths.json configuration file as Resolved.

Deployed with w2c-server v1.4.0

Jun 16 2026, 6:38 PM · Web2Cit-Core, Web2Cit-JSON-Editor

Jun 13 2026

diegodlh added a comment to T302692: Implement a "case" transformation step.

Added Case transformation to templates schema with c8665bed.

Jun 13 2026, 12:19 AM · Web2Cit-Core

Jun 12 2026

diegodlh added a comment to T302691: Implement "replace" transformation step.

Added Replacement transformation to templates schema with 7b9a4f91.

Jun 12 2026, 10:22 PM · Web2Cit-Core
diegodlh added a comment to T317441: Errors during translation should be caught and included in the template output.

Some errors are already caught, therefore not preventing translation from proceeding, but it would still be useful to log them to help diagnose problems:

Jun 12 2026, 10:04 PM · Web2Cit (Grant end), Web2Cit-Core
diegodlh added a comment to T408860: Consider combining templates.json and tests.json into a single paths.json configuration file.

Maybe this could be fixed if there was a way to not automatically choose one of the enum values?

Jun 12 2026, 5:27 PM · Web2Cit-Core, Web2Cit-JSON-Editor
diegodlh added a comment to T408860: Consider combining templates.json and tests.json into a single paths.json configuration file.

In addition, JSON editor was updated to provide a custom validation error in cases where a path not matching one of the test paths has already been defined.

Jun 12 2026, 4:39 PM · Web2Cit-Core, Web2Cit-JSON-Editor
diegodlh added a comment to T302696: Add logging middleware.

Note that on Toolforge, the webservice toolforge logs output shows encoding issues and gets truncated, as opposed to the kubectl logs output. Reported in T429028.

Jun 12 2026, 2:25 PM · Web2Cit (Grant end), Web2Cit-Server
diegodlh created T429028: toolforge webservice logs output has encoding issues and gets truncated compared to kubectl logs.
Jun 12 2026, 2:24 PM · cloud-services-team, Toolforge

Jun 10 2026

diegodlh added a comment to T302696: Add logging middleware.

Also lowered logging level of some common events in w2c-core as they would otherwise flood the server logs: 859ca801.

Jun 10 2026, 10:52 PM · Web2Cit (Grant end), Web2Cit-Server
diegodlh changed the status of T302696: Add logging middleware from Open to In Progress.

Added support for setting custom logger in Web2Cit-Core with 2105091d. In the future, consider T302588.

Jun 10 2026, 10:47 PM · Web2Cit (Grant end), Web2Cit-Server
diegodlh added a comment to T302696: Add logging middleware.

Jobs logging in Toolforge is moving to Loki (log aggregation system): https://wikitech.wikimedia.org/wiki/News/2025_New_Toolforge_log_storage. But it's not clear if this is also the case for web services.

Jun 10 2026, 10:44 PM · Web2Cit (Grant end), Web2Cit-Server

May 29 2026

diegodlh closed T390791: Consider using api-user-agent header for requests from Web2Cit user script as Resolved.

Done in ca75959e.

May 29 2026, 7:40 PM · Web2Cit-Gadget
diegodlh added a comment to T302696: Add logging middleware.

To identify requests made by the Web2Cit-Gadget we may consider whether the user script should use the Api-User-Agent header.

See T390791

May 29 2026, 7:38 PM · Web2Cit (Grant end), Web2Cit-Server
diegodlh added a comment to T329573: Changes to Web2Cit monitor result pages do not trigger email notifications.

This would also let us monitor pageviews of these pages with Massviews.

https://pageviews.wmcloud.org/massviews/?platform=all-access&agent=user&source=category&start=2025-05-28&end=2026-05-28&subjectpage=0&subcategories=0&sort=views&direction=1&view=chart&target=https://meta.wikimedia.org/wiki/Category:Web2Cit_Monitor_Results

massviews-20250528-20260528.png (1,007×503 px, 51 KB)

May 29 2026, 4:14 PM · Web2Cit-Monitor
diegodlh added a comment to T329573: Changes to Web2Cit monitor result pages do not trigger email notifications.

In the meantime we may offer the list of recent changes to any of our Web2Cit/monitor/*/*/results pages.

May 29 2026, 3:35 PM · Web2Cit-Monitor
diegodlh added a comment to T408861: Count number or percentage of output fields or paths for which no expectations have been set.

Add errors and coverage parameters to Web2Cit/log/row template. For now, adding them at the end of the row, to support old log and results pages with hardcoded log header:

Monitor changes deployed and log and result pages updated. Changed errors and coverage column order in log and header templates:

May 29 2026, 3:05 PM · Web2Cit-Server, Web2Cit-Monitor