Page MenuHomePhabricator

daniel (Daniel Kinzler)
User

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Tuesday

  • Clear sailing ahead.

User Details

User Since
Oct 10 2014, 8:08 AM (498 w, 1 d)
Availability
Available
IRC Nick
dues, duesen
LDAP User
Daniel Kinzler
MediaWiki User
DKinzler (WMF) [ Global Accounts ]

Recent Activity

Fri, Apr 26

daniel added a comment to T333606: Accept headers aren't respected when returning from parsercache after bumping parsoid output version.

There hasn't been a spec bump in Parsoid since around June 2023 when that was posted. This would only happen when the cache contained the previous version after a spec bump. The parser cache expires in 15 days? anyways.

Fri, Apr 26, 3:25 PM · MW-1.43-notes (1.43.0-wmf.3; 2024-04-30), MW-1.41-notes (1.41.0-wmf.13; 2023-06-13), RESTBase Sunsetting, Content-Transform-Team-WIP, MediaWiki-REST-API, Parsoid
daniel added a comment to T363581: Build a machine-readable catalogue of mariadb tables in production.

How will this be kept in sync with tables.json in MW core and extensions? Would it be possible to periodically scan for disrepancies?

Fri, Apr 26, 3:21 PM · DBA
daniel added a comment to T333606: Accept headers aren't respected when returning from parsercache after bumping parsoid output version.

The following graphs show rerenders due to 'not-parsoid-default',

Fri, Apr 26, 3:02 PM · MW-1.43-notes (1.43.0-wmf.3; 2024-04-30), MW-1.41-notes (1.41.0-wmf.13; 2023-06-13), RESTBase Sunsetting, Content-Transform-Team-WIP, MediaWiki-REST-API, Parsoid
daniel added a comment to T362850: REST: clarify the relationship between "post" and "body" parameters.

I'd deprecate "post", and pass "body" parameters to the BodyValidator (which is based on the mime type and could be a FormDataBodyValidator, so form data support is easy to preserve although old code would have to be updated).

The OAuth 2 spec does make use of application/x-www-form-urlencoded for some endpoints, no form data though I think.

Fri, Apr 26, 7:14 AM · Patch-For-Review, MW-Interfaces-Team, MediaWiki-REST-API

Thu, Apr 25

daniel added a comment to T362850: REST: clarify the relationship between "post" and "body" parameters.

The concept of "post" parameters makes more sense once you realize their name is a reference to $_POST, not POST bodies in general. So in that sense extending them to JSON fields would actually be more confusing.

Given that form data handling is not that useful in the REST API in general, maybe just deprecate post parameters for that API entirely?

Thu, Apr 25, 5:04 PM · Patch-For-Review, MW-Interfaces-Team, MediaWiki-REST-API
daniel added a parent task for T358560: Rest: Replace BodyValidator with JSON schema based validation: T340185: The MW Rest API does not normalize its string request parameters.
Thu, Apr 25, 4:49 PM · MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), MW-Interfaces-Team, API Platform, MediaWiki-REST-API
daniel added a subtask for T340185: The MW Rest API does not normalize its string request parameters: T358560: Rest: Replace BodyValidator with JSON schema based validation.
Thu, Apr 25, 4:49 PM · MW-Interfaces-Team, MediaWiki-REST-API
daniel moved T348136: Error: Class 'MediaWiki\HookContainer\HookRunner' not found from Backlog (Triaged and Ready) to Needs Further Discussion on the MW-Interfaces-Team board.
Thu, Apr 25, 4:45 PM · MW-Interfaces-Team, API Platform, MediaWiki-Core-Hooks, Wikimedia-production-error
daniel added a project to T245748: Phase out JS-based legacy page indicators: MediaWiki-core-Hackathon-2024.
Thu, Apr 25, 3:27 PM · MediaWiki-core-Hackathon-2024, MW-Interfaces-Team, MediaWiki CodeJam Dec 2023, MediaWiki-Engineering-Group-onboarding, MediaWiki-Platform-Team, good first task, Technical-Debt, MediaWiki-General
daniel added a comment to T175146: JobQueue: Unify JobRunner entry points.

Quick summary of a conversation with Timo:

  • the primary protection mechansim should eb "off per default, enabled on internal cluster"
  • to prevent 3rd frmo accidentially making this endpoint public , there should be a second line of defense, like a list of IPs
  • signing requests, like SpecialRunJobs does, is a good mechanism as well. As long as the signature is created by MW, it's easy. It's inconvenient to try and generate a signature outside MW.
  • relying on the host header for picking the wiki that needs to process a job should be fine, but we nede to actually start setting this header in changeprop
  • we can probably just use the RunSingleJob REST enpoint that exists in the EventBus extension. Should we move it into core? 3rd parties are very unlinkely to ever need it.
Thu, Apr 25, 3:16 PM · Patch-For-Review, Security, MW-Interfaces-Team, Platform Team Workboards (Initiatives), WMF-JobQueue, TechCom-RFC (TechCom-RFC-Closed), MediaWiki-Core-JobQueue, MediaWiki-Configuration
daniel added a comment to T359364: Migrate MediaWiki.rest_api to statslib.

This task covers client-side code for a variety of APIs owned by different teams. Perhaps it would make sense to split it into separate tasks, each covering the client side code for functionality owned by a given team.

Thu, Apr 25, 2:50 PM · MW-Interfaces-Team, Observability-Metrics
daniel updated the task description for T362850: REST: clarify the relationship between "post" and "body" parameters.
Thu, Apr 25, 9:35 AM · Patch-For-Review, MW-Interfaces-Team, MediaWiki-REST-API
daniel updated the task description for T362850: REST: clarify the relationship between "post" and "body" parameters.
Thu, Apr 25, 9:34 AM · Patch-For-Review, MW-Interfaces-Team, MediaWiki-REST-API

Wed, Apr 24

daniel added a comment to T219397: Add support for "months" to Language::formatDuration.

Alternatively, we can just look at year, month and day as three integers, and calculate the output based on that. In that case, we would drop suppor for weeks.

Wed, Apr 24, 9:36 PM · MediaWiki-core-Hackathon-2024, Growth-Team-Filtering, Wikimania-Hackathon-2019, Growth-Team, Wikimedia-Hackathon-2019, MediaWiki-Internationalization
daniel added a comment to T219397: Add support for "months" to Language::formatDuration.

That would mean July 1 was one month ago compared to July 31, and July 31 was one month and one day ago compared to August 31. A bit weird although not terrible. And it should work for locales with non-Gregorian calendars as well, which all have similar month lengths.

Wed, Apr 24, 9:34 PM · MediaWiki-core-Hackathon-2024, Growth-Team-Filtering, Wikimania-Hackathon-2019, Growth-Team, Wikimedia-Hackathon-2019, MediaWiki-Internationalization

Tue, Apr 23

daniel updated subscribers of T175146: JobQueue: Unify JobRunner entry points.

Notes to self:

Tue, Apr 23, 4:03 PM · Patch-For-Review, Security, MW-Interfaces-Team, Platform Team Workboards (Initiatives), WMF-JobQueue, TechCom-RFC (TechCom-RFC-Closed), MediaWiki-Core-JobQueue, MediaWiki-Configuration
daniel updated the task description for T361995: Remove usage of JsonBodyValidator from extensions.
Tue, Apr 23, 9:13 AM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Patch-For-Review, MW-Interfaces-Team, MediaWiki-REST-API

Fri, Apr 19

daniel updated the task description for T361013: Update lint tables independently of changeprop/restbase.
Fri, Apr 19, 10:49 AM · Patch-For-Review, RESTBase Sunsetting, Content-Transform-Team

Thu, Apr 18

daniel moved T358560: Rest: Replace BodyValidator with JSON schema based validation from Backlog (Triaged and Ready) to In Progress on the MW-Interfaces-Team board.
Thu, Apr 18, 3:23 PM · MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), MW-Interfaces-Team, API Platform, MediaWiki-REST-API
daniel raised the priority of T336693: Re-implement reading lists REST interface outside RESTbase from Low to Medium.
Thu, Apr 18, 3:22 PM · MW-Interfaces-Team, API Platform, Reading List Service, MediaWiki-extensions-ReadingList, RESTBase Sunsetting
daniel moved T358560: Rest: Replace BodyValidator with JSON schema based validation from In Progress to Backlog (Triaged and Ready) on the MW-Interfaces-Team board.
Thu, Apr 18, 3:21 PM · MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), MW-Interfaces-Team, API Platform, MediaWiki-REST-API
daniel added a comment to T362817: PHP Deprecated: The "post" source is deprecated, use "body" instead [Called from MediaWiki\Rest\Validator\ParamValidatorCallbacks::getValue].

I wrote a proposal for an alternative to deprecating "post" parameters: T362850: REST: clarify the relationship between "post" and "body" parameters

Thu, Apr 18, 8:21 AM · MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), Growth-Team, GrowthExperiments, MediaWiki-Platform-Team, MediaWiki-extensions-OAuth, Wikimedia-production-error
daniel created T362850: REST: clarify the relationship between "post" and "body" parameters.
Thu, Apr 18, 8:20 AM · Patch-For-Review, MW-Interfaces-Team, MediaWiki-REST-API

Wed, Apr 17

daniel added a comment to T362817: PHP Deprecated: The "post" source is deprecated, use "body" instead [Called from MediaWiki\Rest\Validator\ParamValidatorCallbacks::getValue].

This may not have been such a good idea afterall. I'll think about it some more before re-submitting.

Wed, Apr 17, 7:53 PM · MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), Growth-Team, GrowthExperiments, MediaWiki-Platform-Team, MediaWiki-extensions-OAuth, Wikimedia-production-error
daniel triaged T362006: Provide a Swagger-UI for exploring the core REST API as Low priority.
Wed, Apr 17, 4:27 PM · Patch-For-Review, MediaWiki-REST-API, MW-Interfaces-Team, Documentation, API Platform (RESTBase Deprecation Roadmap), Code-Health
daniel changed the status of T361995: Remove usage of JsonBodyValidator from extensions from Open to In Progress.
Wed, Apr 17, 4:27 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Patch-For-Review, MW-Interfaces-Team, MediaWiki-REST-API
daniel assigned T361995: Remove usage of JsonBodyValidator from extensions to Atieno.
Wed, Apr 17, 4:26 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Patch-For-Review, MW-Interfaces-Team, MediaWiki-REST-API
daniel changed the status of T361995: Remove usage of JsonBodyValidator from extensions, a subtask of T358560: Rest: Replace BodyValidator with JSON schema based validation, from Open to In Progress.
Wed, Apr 17, 4:26 PM · MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), MW-Interfaces-Team, API Platform, MediaWiki-REST-API
daniel moved T312568: Provide a way to obtain the URL of a REST endpoint on another wiki from Incoming (Needs Triage) to Backlog (Triaged and Ready) on the MW-Interfaces-Team board.
Wed, Apr 17, 4:26 PM · Campaign-Tools, MW-Interfaces-Team, Patch-For-Review, MediaWiki-Site-system, MediaWiki-Configuration, API Platform, Platform Engineering, MediaWiki-REST-API
daniel triaged T361995: Remove usage of JsonBodyValidator from extensions as High priority.
Wed, Apr 17, 4:26 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Patch-For-Review, MW-Interfaces-Team, MediaWiki-REST-API
daniel triaged T362480: Introduces the notion of modules into the REST API framework as Medium priority.
Wed, Apr 17, 4:26 PM · Patch-For-Review, Documentation, MW-Interfaces-Team, MediaWiki-REST-API
daniel moved T361995: Remove usage of JsonBodyValidator from extensions from Incoming (Needs Triage) to Backlog (Triaged and Ready) on the MW-Interfaces-Team board.
Wed, Apr 17, 4:25 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Patch-For-Review, MW-Interfaces-Team, MediaWiki-REST-API
daniel moved T362006: Provide a Swagger-UI for exploring the core REST API from Incoming (Needs Triage) to Backlog (Triaged and Ready) on the MW-Interfaces-Team board.
Wed, Apr 17, 4:25 PM · Patch-For-Review, MediaWiki-REST-API, MW-Interfaces-Team, Documentation, API Platform (RESTBase Deprecation Roadmap), Code-Health
daniel triaged T362108: Implement JSON schema validation in ArrayDef as High priority.
Wed, Apr 17, 4:25 PM · MW-Interfaces-Team, MediaWiki-REST-API
daniel moved T362108: Implement JSON schema validation in ArrayDef from Incoming (Needs Triage) to Backlog (Triaged and Ready) on the MW-Interfaces-Team board.
Wed, Apr 17, 4:25 PM · MW-Interfaces-Team, MediaWiki-REST-API
daniel moved T362480: Introduces the notion of modules into the REST API framework from Incoming (Needs Triage) to Backlog (Triaged and Ready) on the MW-Interfaces-Team board.
Wed, Apr 17, 4:25 PM · Patch-For-Review, Documentation, MW-Interfaces-Team, MediaWiki-REST-API
daniel triaged T362576: ReadingLists: Improve mocha test coverage as Medium priority.
Wed, Apr 17, 4:24 PM · MW-Interfaces-Team, Reading List Service, MediaWiki-extensions-ReadingList, RESTBase Sunsetting
daniel moved T362576: ReadingLists: Improve mocha test coverage from Incoming (Needs Triage) to Backlog (Triaged and Ready) on the MW-Interfaces-Team board.
Wed, Apr 17, 4:24 PM · MW-Interfaces-Team, Reading List Service, MediaWiki-extensions-ReadingList, RESTBase Sunsetting
daniel added a comment to T340185: The MW Rest API does not normalize its string request parameters.

FWIW the REST API uses MediaWiki\Rest\Validator\ParamValidatorCallbacks

Yeah, in fact there's this fun little comment in ParamValidatorCallbacks.php, in the getValue function:

		// @todo Should normalization to NFC UTF-8 be done here (much like in the
		// action API and the rest of MW), or should it be left to handlers to
		// do whatever normalization they need?
Wed, Apr 17, 4:24 PM · MW-Interfaces-Team, MediaWiki-REST-API
daniel triaged T340185: The MW Rest API does not normalize its string request parameters as High priority.
Wed, Apr 17, 4:23 PM · MW-Interfaces-Team, MediaWiki-REST-API
daniel moved T340185: The MW Rest API does not normalize its string request parameters from Incoming (Needs Triage) to Backlog (Triaged and Ready) on the MW-Interfaces-Team board.
Wed, Apr 17, 4:23 PM · MW-Interfaces-Team, MediaWiki-REST-API
daniel added a comment to T362006: Provide a Swagger-UI for exploring the core REST API.

@Reedy On the patch you expressed concern about the size of the JS code that we'd ship. Do you have an idea of how we could reduce it?

Wed, Apr 17, 1:49 PM · Patch-For-Review, MediaWiki-REST-API, MW-Interfaces-Team, Documentation, API Platform (RESTBase Deprecation Roadmap), Code-Health
daniel added a comment to T362006: Provide a Swagger-UI for exploring the core REST API.

The layout of the page is less then perfect. For now, I was hoping to have it merged and enabled on beta and testwiki, so we can try it out. The CSS could definitly use some TLC from an expert, I just slapped it in there...

Wed, Apr 17, 1:47 PM · Patch-For-Review, MediaWiki-REST-API, MW-Interfaces-Team, Documentation, API Platform (RESTBase Deprecation Roadmap), Code-Health
daniel added a comment to T359364: Migrate MediaWiki.rest_api to statslib.

This task covers client-side code for a variety of APIs owned by different teams. Perhaps it would make sense to split it into separate tasks, each covering the client side code for functionality owned by a given team.

Wed, Apr 17, 1:31 PM · MW-Interfaces-Team, Observability-Metrics
daniel added a comment to T359383: Migrate MediaWiki.api to statslib.

This task covers client-side code for a variety of APIs owned by different teams. Perhaps it would make sense to split it into separate tasks, each covering the client side code for functionality owned by a given team.

Wed, Apr 17, 1:31 PM · MW-Interfaces-Team, Observability-Metrics

Tue, Apr 16

daniel updated the task description for T273284: Make RevisionRecord::getPageId() take a wiki ID.
Tue, Apr 16, 7:34 PM · MediaWiki-core-Hackathon-2024, MW-1.36-notes (1.36.0-wmf.36; 2021-03-23), MediaWiki-Core-Revision-backend, Platform Team Workboards (MW Expedition)
daniel closed T361840: Create a generic redirect handler for the REST API as Resolved.
Tue, Apr 16, 3:22 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), MediaWiki-REST-API, Patch-For-Review, MW-Interfaces-Team
daniel moved T361840: Create a generic redirect handler for the REST API from Backlog (Triaged and Ready) to Done on the MW-Interfaces-Team board.
Tue, Apr 16, 3:22 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), MediaWiki-REST-API, Patch-For-Review, MW-Interfaces-Team
daniel updated the task description for T362636: Remove all methods that were hard-deprecated in the 1.41 release.
Tue, Apr 16, 11:23 AM · MediaWiki-core-Hackathon-2024, MediaWiki-Engineering, Code-Health, good first task
daniel renamed T362636: Remove all methods that were hard-deprecated in the 1.41 release from Remove hard-deprecated methods that have been deprecated since 1.39 or longer to Remove all methods that were hard-deprecated in the 1.41 release.
Tue, Apr 16, 11:21 AM · MediaWiki-core-Hackathon-2024, MediaWiki-Engineering, Code-Health, good first task
daniel created T362636: Remove all methods that were hard-deprecated in the 1.41 release.
Tue, Apr 16, 11:17 AM · MediaWiki-core-Hackathon-2024, MediaWiki-Engineering, Code-Health, good first task

Mon, Apr 15

daniel updated the task description for T362576: ReadingLists: Improve mocha test coverage.
Mon, Apr 15, 8:04 PM · MW-Interfaces-Team, Reading List Service, MediaWiki-extensions-ReadingList, RESTBase Sunsetting
daniel created T362576: ReadingLists: Improve mocha test coverage.
Mon, Apr 15, 7:48 PM · MW-Interfaces-Team, Reading List Service, MediaWiki-extensions-ReadingList, RESTBase Sunsetting
daniel updated the task description for T316841: Replace "db" field usages with new getDb() in MediaWikiIntegrationTestCase.
Mon, Apr 15, 5:12 PM · MediaWiki-core-Hackathon-2024, good first task, MW-Interfaces-Team, MediaWiki-Core-Tests
daniel updated the task description for T87402: SpamBlacklist needs unit tests.
Mon, Apr 15, 5:08 PM · Test-Coverage, MediaWiki-core-Hackathon-2024, good first task, Technical-Debt, SpamBlacklist
daniel awarded T187749: Make it possible to use code from an external repository for editor-controlled Javascript/CSS a Love token.
Mon, Apr 15, 4:49 PM · Patch-Needs-Improvement, Security, Security-Team, Wikimedia-Hackathon-2019, Wikimedia-Hackathon-2018, MediaWiki-extension-requests, User-Tgr, JavaScript, MediaWiki-extensions-Gadgets
daniel added a comment to T219397: Add support for "months" to Language::formatDuration.

I think we can simply assume that a month is 30 days long. That way we end up with 12.2 months in a year, but that still rounds to 12.

Mon, Apr 15, 4:46 PM · MediaWiki-core-Hackathon-2024, Growth-Team-Filtering, Wikimania-Hackathon-2019, Growth-Team, Wikimedia-Hackathon-2019, MediaWiki-Internationalization
daniel added a comment to T19748: Allow specifying what namespaces to generate sitemaps for, from the php command line.

Should be simple enough these days, by overwriting finalSetup() in the maintenance class. One can then use $this->getOption to ge the value of a command line option, and $settingsBuilder->getConfig() to get the configuration, and $settingsBuilder->overrideConfigValue() to set the new value.

Mon, Apr 15, 4:32 PM · MediaWiki-core-Hackathon-2024, good first task, MediaWiki-Maintenance-system
daniel added a comment to T175146: JobQueue: Unify JobRunner entry points.

What I am trying to figure out right now is how we can send API requests to the correct domain. rpc/runSingleJob.php looks at the "databas" field of the payload and then uses MWMultiVersion::getMediaWiki to initialize the correct wiki. If we use the RESt API, we have to use the Host header instead. Or we send some other header, like X-Wiki-Name, that gets interpreted by MWMultiVersion::getMediaWiki.

Mon, Apr 15, 10:05 AM · Patch-For-Review, Security, MW-Interfaces-Team, Platform Team Workboards (Initiatives), WMF-JobQueue, TechCom-RFC (TechCom-RFC-Closed), MediaWiki-Core-JobQueue, MediaWiki-Configuration
daniel added a comment to T175146: JobQueue: Unify JobRunner entry points.

@daniel Is the REST API safe to remove from the EventBus extension? We may want to do that first.

Mon, Apr 15, 10:00 AM · Patch-For-Review, Security, MW-Interfaces-Team, Platform Team Workboards (Initiatives), WMF-JobQueue, TechCom-RFC (TechCom-RFC-Closed), MediaWiki-Core-JobQueue, MediaWiki-Configuration
daniel added a comment to T362480: Introduces the notion of modules into the REST API framework.

There is also ResourceLoader, which refers to its resource bundles as "modules".

Mon, Apr 15, 7:29 AM · Patch-For-Review, Documentation, MW-Interfaces-Team, MediaWiki-REST-API
daniel added a comment to T362480: Introduces the notion of modules into the REST API framework.

"Modules" is a somewhat unfortunate name IMO, given that the action API calls single endpoints "modules".

Mon, Apr 15, 7:26 AM · Patch-For-Review, Documentation, MW-Interfaces-Team, MediaWiki-REST-API
daniel updated the task description for T362480: Introduces the notion of modules into the REST API framework.
Mon, Apr 15, 7:24 AM · Patch-For-Review, Documentation, MW-Interfaces-Team, MediaWiki-REST-API

Sun, Apr 14

daniel created T362480: Introduces the notion of modules into the REST API framework.
Sun, Apr 14, 10:22 AM · Patch-For-Review, Documentation, MW-Interfaces-Team, MediaWiki-REST-API

Fri, Apr 12

daniel added a comment to T175146: JobQueue: Unify JobRunner entry points.

@daniel Are you thinking about IP subnets as protection mechanism because you prefer it, or because you think it's what we use today? Of the 5 job runners in the task description, number 4 used this mechanism. However that one (runJobs.php) has not been in use for several years. I've updated the task description to clarify this.

Fri, Apr 12, 6:51 PM · Patch-For-Review, Security, MW-Interfaces-Team, Platform Team Workboards (Initiatives), WMF-JobQueue, TechCom-RFC (TechCom-RFC-Closed), MediaWiki-Core-JobQueue, MediaWiki-Configuration
daniel closed T305176: Make loading defaults from the config schema the default, a subtask of T300129: SettingsBuilder: replace DefaultSettings.php, as Resolved.
Fri, Apr 12, 11:19 AM · MW-1.40-notes (1.40.0-wmf.1; 2022-09-12), MW-1.39-notes (1.39.0-wmf.14; 2022-05-30), MW-1.38-release, MW-1.38-notes (1.38.0-wmf.25; 2022-03-07), MediaWiki-SettingsBuilder
daniel closed T305176: Make loading defaults from the config schema the default as Resolved.
Fri, Apr 12, 11:19 AM · MW-1.38-notes, MW-1.39-notes (1.39.0-wmf.7; 2022-04-11), MediaWiki-SettingsBuilder
daniel closed T294753: SettingsLoader: add support for wiki farms, a subtask of T221535: Provide a "wiki farm" abstraction in MediaWiki core, as Resolved.
Fri, Apr 12, 11:18 AM · MW-1.39-notes (1.39.0-wmf.12; 2022-05-16), MW-1.38-notes, MediaWiki-SettingsBuilder, MW-1.38-release, MediaWiki-Farmers, MediaWiki-Site-system, MediaWiki-Configuration
daniel closed T294753: SettingsLoader: add support for wiki farms as Resolved.
Fri, Apr 12, 11:18 AM · MediaWiki-SettingsBuilder

Thu, Apr 11

daniel added a comment to T356157: Unable to fetch Parsoid HTML.

Ok, seeing errors now, and filing tickets: https://logstash.wikimedia.org/goto/8cf77667ebb17ba5a1ea8190d48f27f1

Thu, Apr 11, 10:02 AM · Patch-For-Review, MW-1.42-notes (1.42.0-wmf.25; 2024-04-02), Content-Transform-Team, Essential-Work, MediaWiki-REST-API, MediaWiki-Engineering, DiscussionTools, Parsoid, VisualEditor
daniel created T362312: VE triggers internal warning: "ParserOutput does not specify a language".
Thu, Apr 11, 9:52 AM · Content-Transform-Team-WIP, Essential-Work, MW-Interfaces-Team, VisualEditor

Wed, Apr 10

daniel created P60273 Contributions to ResadingLists.
Wed, Apr 10, 4:55 PM
daniel added a comment to T356157: Unable to fetch Parsoid HTML.

Are we sure entries in this channel would be logged in production? I thought new channels have to be added here first: https://gerrit.wikimedia.org/g/operations/mediawiki-config/+/4536766ecc16f0950fccc417bf749b7d485d0708/wmf-config/InitialiseSettings.php#2076

Wed, Apr 10, 3:53 PM · Patch-For-Review, MW-1.42-notes (1.42.0-wmf.25; 2024-04-02), Content-Transform-Team, Essential-Work, MediaWiki-REST-API, MediaWiki-Engineering, DiscussionTools, Parsoid, VisualEditor
daniel added a comment to T360158: 1.42.0-wmf.26 deployment blockers.
  1. Risky Patch! 🚂🔥
Wed, Apr 10, 2:52 PM · Patch-For-Review, Release-Engineering-Team (Priority Backlog 📥), Release, Train Deployments
daniel updated the task description for T354216: Create a base class to use in all web entry points.
Wed, Apr 10, 2:17 PM · MW-Interfaces-Team, MediaWiki-Platform-Team (Radar), MediaWiki-ResourceLoader, MW-1.42-notes (1.42.0-wmf.23; 2024-03-19), Patch-For-Review, MediaWiki-General
daniel triaged T312568: Provide a way to obtain the URL of a REST endpoint on another wiki as Low priority.
Wed, Apr 10, 2:11 PM · Campaign-Tools, MW-Interfaces-Team, Patch-For-Review, MediaWiki-Site-system, MediaWiki-Configuration, API Platform, Platform Engineering, MediaWiki-REST-API

Tue, Apr 9

daniel added a comment to T362187: REST HTML endpoint returning 500 for the first 3 - 5 calls for several pages.

I replied on the other ticket, see T335512#9701882

Tue, Apr 9, 6:08 PM · Wikimedia Enterprise, Parsoid (Tracking), RESTBase Sunsetting
daniel added a comment to T335512: Transition Enterprise MediaWiki from RESTBase to core page HTML endpoints.

Cross-linking for reference: T362187: REST HTML endpoint returning 500 for the first 3 - 5 calls for several pages

Tue, Apr 9, 6:07 PM · Wikimedia Enterprise, Parsoid (Tracking), RESTBase Sunsetting
daniel added a comment to T335512: Transition Enterprise MediaWiki from RESTBase to core page HTML endpoints.

The pages you list are all from projects with relatively little edits and traffic, which makes it more likely to encounter uncached pages.

Tue, Apr 9, 5:04 PM · Wikimedia Enterprise, Parsoid (Tracking), RESTBase Sunsetting
daniel added a comment to T335512: Transition Enterprise MediaWiki from RESTBase to core page HTML endpoints.

The new endpoint has a different cache regime. It is relying on MediaWiki's internal parser cache, which only contins pages that have been updated (directly or indirectly) in the last three weeks. Accessing uncached pages can be fairly slow. Typically, large and complex pages are also updated a lot. But of course, that is not always the case.

Tue, Apr 9, 5:03 PM · Wikimedia Enterprise, Parsoid (Tracking), RESTBase Sunsetting
daniel added a comment to T335512: Transition Enterprise MediaWiki from RESTBase to core page HTML endpoints.

I am not able to reproduce these errors. When I put the URLs from the error messages into my browser, they seem to work fine (if somewhat slow).

Tue, Apr 9, 4:59 PM · Wikimedia Enterprise, Parsoid (Tracking), RESTBase Sunsetting
daniel added a comment to T334238: Create deprecation plan for public parsoid endpoints.

Quick note: the task description is somewhat outdated, update to come

Tue, Apr 9, 3:57 PM · Parsoid (Tracking), Content-Transform-Team-WIP, RESTBase Sunsetting
daniel updated the task description for T361840: Create a generic redirect handler for the REST API.
Tue, Apr 9, 3:52 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), MediaWiki-REST-API, Patch-For-Review, MW-Interfaces-Team
daniel updated the task description for T361840: Create a generic redirect handler for the REST API.
Tue, Apr 9, 12:59 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), MediaWiki-REST-API, Patch-For-Review, MW-Interfaces-Team

Mon, Apr 8

daniel created T362108: Implement JSON schema validation in ArrayDef.
Mon, Apr 8, 7:46 PM · MW-Interfaces-Team, MediaWiki-REST-API
daniel added a comment to T357532: Create a system to support developers while upgrading configuration schemas.

...my main question is how would the schema converter do the conversion between schemas. I was thinking about having an upgrade/downgrade callable somewhere and call it from the converter, but I'm unsure on what that somewhere is. Do you have any thoughts on that, please?

Mon, Apr 8, 7:23 PM · Growth-Team (Sprint 12 (Growth Team)), MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Patch-For-Review, CommunityConfiguration
daniel added a comment to T312568: Provide a way to obtain the URL of a REST endpoint on another wiki.

Quick summary of my thoughts after talking to @Daimona just now:

  • It would be nice to have a narrow interface for getting endpoint URLs for other wikis. There are several use cases for this, e.g. redirecting to file pages on commons or listing interwiki links.
  • A basic (wmf centric) implementation of such a mechanism would not be very hard, perhaps a week of work between the two of us.
  • Making this work "right" gets us back to T113034: RFC: Overhaul Interwiki map, unify with Sites and WikiMap, wich we have been procrastinating on since 2015.
Mon, Apr 8, 12:01 PM · Campaign-Tools, MW-Interfaces-Team, Patch-For-Review, MediaWiki-Site-system, MediaWiki-Configuration, API Platform, Platform Engineering, MediaWiki-REST-API
daniel added a project to T312568: Provide a way to obtain the URL of a REST endpoint on another wiki: MW-Interfaces-Team.
Mon, Apr 8, 11:54 AM · Campaign-Tools, MW-Interfaces-Team, Patch-For-Review, MediaWiki-Site-system, MediaWiki-Configuration, API Platform, Platform Engineering, MediaWiki-REST-API
daniel added a comment to T357532: Create a system to support developers while upgrading configuration schemas.

Some thoughts on the topic of schema migration (without having looked at the code structure):

  • The JSON should contain a version marker in a meta-field - we could include a full schema URI in "$schema", or use something like "$config-version".
  • The provider interface gets a getSchemaConverter() method that takes a source version and target version.
  • The provider interface gets a loadSchema() method that takes an optional version parameter.
  • The schema class defined a constant that specified the version (and/or schema URI).
Mon, Apr 8, 8:44 AM · Growth-Team (Sprint 12 (Growth Team)), MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Patch-For-Review, CommunityConfiguration

Sat, Apr 6

daniel added a parent task for T323786: REST framework: Add support for outputting an OpenAPI (swagger) spec : T362006: Provide a Swagger-UI for exploring the core REST API.
Sat, Apr 6, 3:57 PM · MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), API Platform, MediaWiki-REST-API, RESTBase Sunsetting, Platform Team Workboards (MW Expedition), Epic, Foundational Technology Requests, Code-Health
daniel added a subtask for T362006: Provide a Swagger-UI for exploring the core REST API: T323786: REST framework: Add support for outputting an OpenAPI (swagger) spec .
Sat, Apr 6, 3:57 PM · Patch-For-Review, MediaWiki-REST-API, MW-Interfaces-Team, Documentation, API Platform (RESTBase Deprecation Roadmap), Code-Health
daniel created T362006: Provide a Swagger-UI for exploring the core REST API.
Sat, Apr 6, 3:57 PM · Patch-For-Review, MediaWiki-REST-API, MW-Interfaces-Team, Documentation, API Platform (RESTBase Deprecation Roadmap), Code-Health
daniel updated the task description for T361995: Remove usage of JsonBodyValidator from extensions.
Sat, Apr 6, 10:00 AM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Patch-For-Review, MW-Interfaces-Team, MediaWiki-REST-API
daniel updated the task description for T361995: Remove usage of JsonBodyValidator from extensions.
Sat, Apr 6, 9:59 AM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Patch-For-Review, MW-Interfaces-Team, MediaWiki-REST-API
daniel created T361995: Remove usage of JsonBodyValidator from extensions.
Sat, Apr 6, 9:52 AM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Patch-For-Review, MW-Interfaces-Team, MediaWiki-REST-API

Fri, Apr 5

daniel added a project to T175146: JobQueue: Unify JobRunner entry points: Security.

Quick brainstorming:

Fri, Apr 5, 11:28 AM · Patch-For-Review, Security, MW-Interfaces-Team, Platform Team Workboards (Initiatives), WMF-JobQueue, TechCom-RFC (TechCom-RFC-Closed), MediaWiki-Core-JobQueue, MediaWiki-Configuration
daniel placed T175146: JobQueue: Unify JobRunner entry points up for grabs.
Fri, Apr 5, 11:27 AM · Patch-For-Review, Security, MW-Interfaces-Team, Platform Team Workboards (Initiatives), WMF-JobQueue, TechCom-RFC (TechCom-RFC-Closed), MediaWiki-Core-JobQueue, MediaWiki-Configuration

Thu, Apr 4

daniel renamed T361840: Create a generic redirect handler for the REST API from Greate a generic redirect handler for the REST API to Create a generic redirect handler for the REST API.
Thu, Apr 4, 8:02 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), MediaWiki-REST-API, Patch-For-Review, MW-Interfaces-Team
daniel added a comment to T361840: Create a generic redirect handler for the REST API.

This might be obvious but just noting it here so it's part of these notes "Path parameters are preserved when generating redirects." includes both param value and order i.e

Thu, Apr 4, 4:24 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), MediaWiki-REST-API, Patch-For-Review, MW-Interfaces-Team
daniel closed T360434: REST: request body validation should fail if unexpected fields are present, a subtask of T305973: JsonBodyValidator does not validate the parameter types, as Resolved.
Thu, Apr 4, 3:24 PM · MW-Interfaces-Team, MW-1.41-notes (1.41.0-wmf.25; 2023-09-05), API Platform, MediaWiki-REST-API