Page MenuHomePhabricator

Bundle TextExtracts with MediaWiki
Closed, ResolvedPublic

Description

Extension:TextExtracts is an incredibly useful API module that provides limited (safe) html (or plaintext) extracts from an article - https://www.mediawiki.org/wiki/Extension:TextExtracts

As we move towards expanding our reach and create tools to share knowledge through external tools and gadget, we should make sure wikis have this capability so they can be queried.

  • Passed security review or already Wikimedia deployed
  • Voting CI structure tests
  • Runs MediaWiki-CodeSniffer
  • Runs phan
  • Supports MySQL, SQLite, and Postgres (sqlite doesn't support regex, so that option is hidden)
  • GPL v2 or later compatible license
  • Extension's default configuration provides optimal experience
  • Tested with web installer

Event Timeline

Mooeypoo created this task.Jul 26 2019, 4:09 PM
CCicalese_WMF triaged this task as Normal priority.Fri, Sep 13, 4:48 PM

@Jdforrester-WMF, could you please help assess this extension for bundling?

@Jdforrester-WMF, could you please help assess this extension for bundling?

It seems like a good idea to me, but I don't ever use the Web installer so I don't know how to assess it meaningfully.

Anomie added a subscriber: Anomie.Wed, Sep 18, 5:40 PM

Supports MySQL, SQLite, and Postgres (sqlite doesn't support regex, so that option is hidden)

I don't see any schema changes in this extension. Also it seems to work for me locally with PostgreSQL.

For that matter, I don't see any direct database access in the extension at all. It fetches content via MW abstractions like WikiPage.

Great! Thank you, @Anomie.

This should be ok to bundle.

Change 537708 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/tools/release@master] make-release: Include PageImages and TextExtracts in 1.34+

https://gerrit.wikimedia.org/r/537708

Change 537708 merged by jenkins-bot:
[mediawiki/tools/release@master] make-release: Include PageImages and TextExtracts in 1.34+

https://gerrit.wikimedia.org/r/537708

Jdforrester-WMF closed this task as Resolved.Wed, Sep 18, 5:48 PM
Jdforrester-WMF claimed this task.