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 ]
Fri, Apr 26
How will this be kept in sync with tables.json in MW core and extensions? Would it be possible to periodically scan for disrepancies?
Thu, Apr 25
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.
Wed, Apr 24
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.
Tue, Apr 23
Notes to self:
- Why do we need rpc/RunSingleJob.php, if EventBus already has a REST handler for RunSingleJob?
- rpc/RunSingleJob.php uses the "database" field in the body to pick the wiki. Why are we not using the Host header, like we do for all other entry points?
- @akosiaris sais the host header should be present, per https://github.com/wikimedia/mediawiki-services-change-propagation/blob/master/config.jobqueue.wikimedia.yaml#L51
- @Jgiannelos found the job runner deployment charts: https://codesearch.wmcloud.org/search/?q=jobrunner_uri&files=&excludeFiles=&repos=
Fri, Apr 19
Thu, Apr 18
I wrote a proposal for an alternative to deprecating "post" parameters: T362850: REST: clarify the relationship between "post" and "body" parameters
Wed, Apr 17
This may not have been such a good idea afterall. I'll think about it some more before re-submitting.
@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?
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...
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.
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.
Tue, Apr 16
Mon, Apr 15
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.
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.
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.
Sun, Apr 14
Fri, Apr 12
Thu, Apr 11
Ok, seeing errors now, and filing tickets: https://logstash.wikimedia.org/goto/8cf77667ebb17ba5a1ea8190d48f27f1
Wed, Apr 10
- Risky Patch! 🚂🔥
Tue, Apr 9
I replied on the other ticket, see T335512#9701882
Cross-linking for reference: T362187: REST HTML endpoint returning 500 for the first 3 - 5 calls for several pages
The pages you list are all from projects with relatively little edits and traffic, which makes it more likely to encounter uncached pages.
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.
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).
Quick note: the task description is somewhat outdated, update to come
Mon, Apr 8
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.
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).
Sat, Apr 6
Fri, Apr 5
Quick brainstorming: