Hi Everyone,
It's time for Wikimedia Tech Talks 2019 Episode 9! This talk will take
place 23, October, 2019 at 6PM UTC.
*Title:* ResourceLoader trips and tricks
*Speaker:* Roan Kattouw
*Summary:*
Did you know that you could require() files in JavaScript? That you could
make your own icon modules with 10 lines of code? That there's a new way to
export configuration variables to JavaScript?
Learn about new ResourceLoader features introduced this year, and how you
can use them to improve your code.
We'll start with a quick introduction to ResourceLoader, then dive into
some of the advanced features like require(), config var bundling,
generated JSON files and icon modules.
The link to the Youtube Livestream can be found here:
https://www.youtube.com/watch?v=AGiDYvcroWE
During the live talk, you are invited to join the discussion on IRC at
#wikimedia-office
You can watch past Tech Talks here:
https://www.mediawiki.org/wiki/Tech_talks
If you are interested in giving your own tech talk, you can learn more
here:
https://www.mediawiki.org/wiki/Project:Calendar/How_to_schedule_an_event#Te…
Note: Please feel free to distribute this email to any lists that you feel
are appropriate!
Hope to see you there!
Kindly,
Sarah R. Rodlund
Technical Writer, Developer Advocacy
<https://meta.wikimedia.org/wiki/Developer_Advocacy>
srodlund(a)wikimedia.org
Hi,
for HTML version see
https://www.mediawiki.org/wiki/Scrum_of_scrums/2019-10-23
Željko
--
= 2019-10-23 =
== Callouts ==
* SRE DBAs needed someone (CPT?) to pick this [[phab:T234450]] as it will
help mitigating some on-going heavy requests. Multiple people already
stepped up. Thanks
* Infrastructure foundations Blocked by CPT on service-runner PR,
requesting follow-up https://github.com/wikimedia/service-runner/pull/221
== Product ==
=== Community Tech ===
* Updates:
** 2020 Wishlist Survey started on Monday, October 21. Proposals accepted
until November 11. Voting begins November 20.
** Who Wrote That browser extension is available in beta for Firefox.
Chrome extension coming soon. A gadget version is also possible.
** Initial work on Watchlist Expiry beginning
=== Anti-Harassment Tools ===
* Updates:
** Pushing bug fixes for Blocks refactoring
** Initial work on CheckUser to begin soon
=== Editing ===
* Updates:
** Use consistent tag style when constructing nodes
** identifyLeadParagraph: Ignore invisible nodes, slugs and whitespace
(task [[phab:T235222]])
** Use plugin to ensure all message keys are documented (task
[[phab:T235502]])
** mobile.init/editor: Fix transition of collapse icon after icon changes
(task [[phab:T235692]])
** Improve message for the infamous "HTTP 404" error
** Fix media embeds which don't link to the file page (task
[[phab:T235707]])
** Don't retry when etag is undefined because the page doesn't exist (task
[[phab:T233320]])
** Detect mangled etags from RESTBase and retry via MediaWiki API (task
[[phab:T233320]])
** ApiVisualEditor: Always return 'etag' with 'content' (task
[[phab:T233320]])
** resources: Allow loading Moment.js like a module
** Don't apply styling for Special:Contributions on other pages (task
[[phab:T235137]])
=== Growth ===
* Updates:
** Add RemoteSearchTaskSuggester (task [[phab:T234426]])
** Newcomer tasks: "No results" card widget (task [[phab:T235044]])
** Suggested edits 1.0 styles (task [[phab:T232423]])
** Newcomer tasks: "No more suggestions" card widget (task [[phab:T235043]])
** Growth tasks API: Update query limit to 200 (task [[phab:T232423]])
(task [[phab:T234426]])
** Make EchoSeenTime cache entries expire after 1 year (task
[[phab:T222851]])
** Make EchoSeenTime cache type configurable (task [[phab:T222851]])
** Add faux SearchResult and SearchResultSet
=== iOS native app ===
* Updates:
** 6.5 in active development - [[phab:project/view/4245]]
***Bug fixes
****3D touch in article view
*** History & diffs feature
**** User testing next week
**** Core Platform working on Rest APIs for this
=== Android native app ===
* Updates:
** Continuing to make enhancements to EditTasks extension to support new
API requirements.
** Preparing updates for upcoming in-app fundraising.
=== Readers Web ===
* Blocked by:
** Performance: MachineVision performance review [[phab:T230813]]
=== Product Infrastructure ===
* Blocking:
** Structured Data: Security & performance review for MachineVision:
[[phab:T227349]]
* Updates:
* BUOD
** Reviewing sentry-js for client-side error logging [[phab:T235189]]
** Implementing MEP stream configuration continues [[phab:T233634]]
* MachineVision
** Avoid duplicate depicts [[phab:T234457]]
** Show labels in the appropriate language [[phab:T235556]]
** Support Wikidata Id blacklist [[phab:T231914]]
* Maps
** Deployed new version of kartotherian
=== Structured Data ===
* Blocked by:
** Product Infrastructure: Security & performance review for MachineVision:
[[phab:T227349]]
* Blocking:
** Search: RecentChange support for SDC: [[phab:T230862]] - patch in CR
** Search: Data dumps for SDC: [[phab:T221917]]
* Updates:
** MachineVision progressing
** Preparing to implement support for additional datatypes in MediaInfo
** Lua support for MediaInfo items coming soon (thanks WMDE!)
=== Inuka ===
* Updates:
** KaiOS app: Building the backlog
** KaiOS app: Working on the instrumentation plan
** KaiOS app: Working on the reading experience ([[phab:T234435]]
[[phab:T234436]])
== Technology ==
=== Analytics ===
* Blocking:
** Search Platform: [[phab:T229882]]
=== Fundraising Tech ===
* Updates:
** CentralNotice: Campaign fallback is rolling out on the train this week
** CentralNotice: Investigating new SameSite cookie attribute for Chrome
[[phab:T235204]]
** CentralNotice data pipeline: Debugging discrepancy in landing page views
from initial run [[phab:T235284]]
** CiviCRM: Investigating null values in financial table rows for S. Amer /
India payment processor [[phab:T235212]]
** CiviCRM: Fix merge for two contacts where neither has a contribution
[[phab:T235890]]
** CiviCRM: Reviewing Replay-on-write database extension to use primary /
replica DBs.
** Payments-wiki: Set banner-hide cookies earlier when asking donors to add
a monthly donation [[phab:T235209]]
=== Core Platform ===
* Blocking:
** SRE on service-runner PR, requesting follow-up
https://github.com/wikimedia/service-runner/pull/221
** SRE DBAs needed someone (CPT?) to pick this [[phab:T234450]] as it will
help mitigating some on-going heavy requests. Multiple people already
stepped up. Thanks
* Updates:
** Rollout of Kask for sessions to Group 1 wikis
** Rollout of Kask for echo notification timestamps to Group 0
** Last endpoints for history API for iOS [[phab:T231338]]
** Planning next sprint for "minimal client' REST API [[phab:T229662]]
* Thanks
** Traffic for unblocking routing of REST requests
** @halfak for fixing my notes
=== Engineering Productivity ===
==== Performance ====
* Blocked by:
** SRE/ServiceOps: PHP7 fatal errors not reported in Logstash
[[phab:T234283]]
* Blocking:
** SRE: Navtiming on Prometheus [[gerrit:534771]]
** Readers Web: MachineVision performance review [[phab:T230813]]
==== Release Engineering ====
* Blocked:
** Site Reliability Engineering: logstash-beta.wmflabs.org does not receive
any mediawiki events [[phab:T233134]]
* Updates:
** v3 of CI arch document for new CI wants review and feedback
[[User:LarsWirzenius/NewCI]]
** Gerrit is now on a newer (larger) server
*** There was some problem with rollout (patches looking unmerged that were
actually merged)
*** Resolved now
*** All gory details on [[phab:T236114]]
** Train Health
*** Last week: 1.35.0-wmf.2 - [[phab:T233850]]
*** This week: 1.35.0-wmf.3 - [[phab:T233851]]
*** Next week: 1.35.0-wmf.4 - [[phab:T233852]]
=== Scoring Platform ===
* Updates:
** Jade
*** Continuing work on Jade designs. Attending design review.
[[phab:T212370]]
*** Unblocked on Jade API review. We got what we need in the short term.
(Thanks Brad & Will) [[phab:T199834]]
**** We have a weird gerrit bug. Not sure what to think of it. Looks like
it was fixed!
** New models
*** Merged changes euwiki article quality features -- rebuilding the model
next [[phab:T223788]]
*** Released revscoring 2.6.0 with support for Basque Language features
https://pypi.org/project/revscoring/2.6.0/
** Etc.
*** Fixed ordering issue in model_info. [[phab:T229445]]
** Qs for the group:
*** Any experience with Andrew NG's AI courses on coursera? Kevin (new
engineer) working through some material now.
*** Re. UI dev, we're hearing a lot of "just use OOUIJS"
=== Search Platform ===
* Blocked by:
** Analytics: [[phab:T229882]]
** Structured Data: RecentChange support for SDC: [[phab:T230862]] - patch
in CR
** Structured Data: Data dumps for SDC: [[phab:T221917]]
* Updates:
** Started work on deploying airflow for analytics workflows
[[phab:T236180]]
=== Site Reliability Engineering ===
* Blocked by:
** No team in particular anymore, multiple people responded already: SRE
DBAs needed someone. to pick this [[phab:T234450]] as it will help
mitigating some on-going heavy requests
** CPT on service-runner PR, requesting follow-up
https://github.com/wikimedia/service-runner/pull/221
** Performance: Navtiming on Prometheus [[gerrit:534771]]
* Blocking:
** Performance on PHP7 fatal errors not reported in Logstash
[[phab:T234283]]
** Release Engineering: logstash-beta.wmflabs.org does not receive any
mediawiki events [[phab:T233134]]
Hello,
As part of the Gerrit migration to a new server, some repositories can
have stalled / outdated changes. In the Gerrit UI you might find a
change suddenly open or some recent patchsets to no more be present.
Do not panic.
Some (not all) changes are stall in the past to roughly October 1st. So
for example if the affected change got merged after that date and before
the migration, it can now show as open again, or a change might no more
show patchsets made before the migration.
The reason is some metadata have not been properly transferred to the
new server. The good news is that the changes metadata are still on the
the older server and we have to sync them to the new server.
We already fixed a few trivial use cases. We are now looking at
checking every repositories and transferring the missing metadata.
Known affected repositories:
- mediawiki/extensions/MachineVision
- mediawiki/extensions/MobileFrontend
Some changes in mediawiki/core
And there are definitely more repositories affected, but we have a
script to find them all.
The task is: https://phabricator.wikimedia.org/T236114
--
Antoine "hashar" Musso
Hello all,
We would like to announce that we are going to upgrade both hardware and OS of the production Gerrit server.
We will be doing the maintenance on October 21th, 2019 at 12pm PST time (7pm UTC time, 8pm UK time) [1].
This brings increased resources such as CPU and RAM. We will also be doing a dist upgrade from jessie to buster.
We have outgrown our current server (cobalt) so you may notice improvements due to increased resources.
The jessie server "cobalt" will be replaced by "gerrit1001" on buster, skipping stretch.
For more details or to report issues please see the ticket [2] and topic branch gerrit1001 [3].
[1] https://wikitech.wikimedia.org/w/index.php?title=Deployments&type=revision&…
[2] https://phabricator.wikimedia.org/T222391
[3] https://gerrit.wikimedia.org/r/q/topic:%22gerrit1001%22+(status:open%20OR%2…
On behalf of Patrick, Daniel and Tyler.
(Re-send to wikitech-l, first attampt had wrong address.)
The 1.35.0-wmf.3 version of MediaWiki is blocked[0].
The new version is not deployed anywhere[1], and can proceed no
further until these issues are resolved:
* scap sync failed, database error - https://phabricator.wikimedia.org/T236166
Once these issues are resolved train can resume. If these issues are
resolved on a Friday the train will resume Monday.
Thank you for your help resolving these issues!
-- Your humble train toiler
[0]. <https://phabricator.wikimedia.org/T233851>
[1]. <https://tools.wmflabs.org/versions/>
The 1.35.0-wmf.2 version of MediaWiki is no longer blocked[0]!
Thanks to Krinkle, Mobrovac, Nikerabbit, and everyone else who worked on
unblocking the train.
We plan to deploy the new version to group2 today.
-- Your humble train toiler
[0]. <https://phabricator.wikimedia.org/T233850>
--
Jeena Huneidi
Software Engineer, Release Engineering
Wikimedia Foundation
Hey,
Today I made some phabricator helpers, I thought these might be useful for
others.
The first is a web page that gives you an overview of changes in any sprint
board in the past N days (default value of N is seven). This is useful when
you want to have a quick look of things that has been done to show them off
in SoS, weekly updates, etc. Here's an example with performance team board:
[1], The default boards are Wikidata sprint boards (like [2]) let me know
if encounter any issues, have any suggestions or if you want to add your
board to the default list. It's based on a CLI tool my colleague made a
while ago. Of course it's easily doable to query them directly in
phabricator but this combines several queires (things that are picked up,
things that are waiting for review, etc.) into one small place, the output
is slightly shorter and cleaner.
If you know what Herald [3] is, you can skip this paragraph. Herald is set
of rules in phabricator that gets automatically applied on tasks, patches,
or anything. For example, if you add a ticket and add one of sprint boards
of wikidata but you forget to add the umbrella project (#Wikidata [4]), it
happily adds the umbrella project to the ticket. If you want to add some
Herald rules to improve your workflow, let me know.
Herald, albeit being very powerful, has one limitation, it doesn't move
tasks to another column, this means if a task is being worked on (like it's
part of a sprint) Herald can't move it to "In progress" column in the
umbrella project.
You probably know my bot "Maintaince bot", It continuously spams you,
Today, I made it to handle column moving as well. So it's going to spam you
even more (sorry) for tasks being moved around. You can disable
notification for column moves in your settings in phabricator or set a
filter for archiving maintenance bot emails. But if you want to add more
rules to it (if you have been moving tasks around manually, you probably
know it's a very tedious work). Let me know the rules and the column moves,
and I add it to my bot as well.
[1]
https://tools.wmflabs.org/phabricator-reporter/sprint.php?project=&other=pe…
[2]:
https://tools.wmflabs.org/phabricator-reporter/sprint.php?project=RL+Module…
[3]: https://phabricator.wikimedia.org/herald/
[4]: https://phabricator.wikimedia.org/tag/wikidata/
Best
--
Amir Sarabadani (he/him)
Software engineer
Wikimedia Deutschland e. V. | Tempelhofer Ufer 23-24 | 10963 Berlin
Tel. (030) 219 158 26-0
https://wikimedia.de
Unsere Vision ist eine Welt, in der alle Menschen am Wissen der Menschheit
teilhaben, es nutzen und mehren können. Helfen Sie uns dabei!
https://spenden.wikimedia.de
Wikimedia Deutschland — Gesellschaft zur Förderung Freien Wissens e. V.
Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter
der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für
Körperschaften I Berlin, Steuernummer 27/029/42207.
Hello,
I have released a new version of Quibble - version 0.0.39.
It enables the MediaWiki REST API entry point (/rest.php), a feature
required for an API testing tool.
Thank you Clara Andrew-Wani for the patch.
The CI job for mediawiki/tools/api-testing has been updated, other jobs
will be progressively be updated next week.
https://doc.wikimedia.org/quibble/changelog.html
CI Docker images:
docker-registry.discovery.wmnet/releng/quibble-coverage:0.0.39
docker-registry.discovery.wmnet/releng/quibble-fresnel:0.0.39
docker-registry.discovery.wmnet/releng/quibble-stretch:0.0.39
docker-registry.discovery.wmnet/releng/quibble-stretch-bundle:0.0.39
docker-registry.discovery.wmnet/releng/quibble-stretch-php70:0.0.39
docker-registry.discovery.wmnet/releng/quibble-stretch-php71:0.0.39
docker-registry.discovery.wmnet/releng/quibble-stretch-php72:0.0.39
docker-registry.discovery.wmnet/releng/quibble-stretch-php73:0.0.39
cheers,
--
Antoine Musso
Hello,
end of last week saw releases of OOUI v0.35.0 and minor follow-up v0.35.1,
they have rolled-out on normal train this week.
The highlights were
- Using `px` where applicable over `em`s.
For most box sizing properties (min-width, min-height, margin, border,
border-radius, padding, box-shadow, outline) `px` unit is sufficient to
still provide accessible user font preference overrides to scale the text.
Additionally, this change is simplifying and speeding up building
interfaces for designers and developers. See
https://phabricator.wikimedia.org/T220671 for further details. This change
doesn't affect any current interfaces, it should result in no rendering
differences at normal environment settings.
- `infuse-by-id` feature got removed, it has been deprecated since v0.29.7
and has, to our knowledge, only been used internally any more. Use an
HTMLElement or jQuery collection instead. Please verify that you are not
using the feature any more.
You can find details on additional new features, code-level, styling and
interaction design amendments, and all
improvements since v0.34.0 in the full changelog[0].
If you have any further queries or need help dealing with breaking
changes, please let me know.
As always, interactive demos[1] and library documentation is available
on mediawiki.org[2], there is comprehensive generated code-level
documentation and interactive demos and tutorials hosted on
doc.wikimedia.org[3].
OOUI version: 0.35.0
MediaWiki version: 1.35.0-wmf.2
Date of deployment to production: Regular train, starting Tuesday 15 October
[0]-
https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md
<https://doc.wikimedia.org/oojs-ui/master/demos/#widgets-mediawiki-vector-ltr>
[1]-
https://doc.wikimedia.org/oojs-ui/master/demos/#widgets-mediawiki-vector-ltr
[2] - https://www.mediawiki.org/wiki/OOUI
[3] - https://doc.wikimedia.org/oojs-ui/master/
Best,
Volker
--
Senior UX Engineer
Wikimedia Foundation
volker.e(a)wikimedia.org | @Volker_E