Hi!
I'd suggest to create a patch for Extension:ApprovedRevs that runs
$updates = $wikipage->getContent()->getSecondaryDataUpdates( $title );
DataUpdate::runUpdates( $updates );
within `ApprovedRevs::setApprovedRevID` [1]. Actually something similar
seems to be done already [2].
The ApprovedRevs status is part of SESP anyways (`_APPROVEDSTATUS`,
[3]).
[1]
https://github.com/wikimedia/mediawiki-extensions-ApprovedRevs/blob
/master/includes/ApprovedRevs_body.php#L479
[2]
https://github.com/wikimedia/mediawiki-extensions-ApprovedRevs/blob
/master/includes/ApprovedRevs_body.php#L489-L490
[3]
https://github.com/SemanticMediaWiki/SemanticExtraSpecialProperties
/blob/master/docs/configuration.md
--
Robert
Am Donnerstag, den 20.06.2019, 01:03 +0000 schrieb Evans, Richard K.
(GRC-H000) via MediaWiki-l:
Job queue is always clear. Semantic Properties for AR
via SESP only
update *after* an edit. Simply approving a revision does not update
the SESP AR properties in SMW.
I’m actually looking to copy what has been done in
“SemanticDependencyUpdater” at:
https://github.com/gesinn-it/Semantic
DependencyUpdater/blob/master/includes/DummyEditJob.php
The necessary code seems to be:
$page = WikiPage::newFromID( $this->title->getArticleId() );
if ( $page ) {
$content = $page->getContent( Revision::RAW );
$text = ContentHandler::getContentText( $content );
$page->doEditContent( ContentHandler::makeContent( $text, $page-
getTitle() ), "[SemanticDependencyUpdater]
Null edit." );
$page->doPurge(); // required since SMW 2.5.1
}
/Rich
From: John [mailto:phoenixoverride@gmail.com]
Sent: Wednesday, June 19, 2019 8:53 PM
To: Evans, Richard K. (GRC-H000) <richard.k.evans(a)nasa.gov>
Cc: MediaWiki announcements and site admin list <mediawiki-l(a)lists.wi
kimedia.org>
Subject: Re: [EXTERNAL] Re: [MediaWiki-l] using the
"PageUpdater::saveRevision" method
Two suggestions, 1) check your job queue 2) look at the API’s purge
module, it has a method to force link updates too.
On Wed, Jun 19, 2019 at 8:49 PM Evans, Richard K. (GRC-H000) <richard
.k.evans@nasa.gov<mailto:richard.k.evans@nasa.gov>> wrote:
Hi John,
I'm troubleshooting a problem in the combined use of SMW, SESP, and
ApprovedRevs.
The desired behavior is to have the "approval status" of the page
available to the wiki as a semantic property of the page via SESP.
Everything works well except that the SESP AR values don't update
until the page is edited.
It's not clear to me which of the 3 extension (SMW, AR, SESP) is not
addressing this scenario properly, but as a quick fix, I can imagine
AR being updated to perform a null-edit in the background after each
time the page is either 'approved' or 'unapproved'. Is this a
reasonable way to fix the situation? Yaron said this approach to
solving the problem could work. Now I’m seeking guidance on how to do
it.
/Rich
From: John [mailto:phoenixoverride@gmail.com<mailto:phoenixoverride@g
mail.com>]
Sent: Wednesday, June 19, 2019 5:05 PM
To: Evans, Richard K. (GRC-H000) <richard.k.evans@nasa.gov<mailto:ric
hard.k.evans(a)nasa.gov>>t;>; MediaWiki announcements and site admin list
<mediawiki-l@lists.wikimedia.org<mailto:mediawiki-l@lists.wikimedia.o
rg>>
Subject: [EXTERNAL] Re: [MediaWiki-l] using the
"PageUpdater::saveRevision" method
What are you trying to achieve with your null edit?
On Wed, Jun 19, 2019 at 5:02 PM Evans, Richard K. (GRC-H000) via
MediaWiki-l <mediawiki-l@lists.wikimedia.org<mailto:mediawiki-l@lists
.wikimedia.org>> wrote:
I'm trying to update an extension so that it performs a "null-edit"
on the page it is already operating on.
I've discovered the "PageUpdater::saveRevision" documentation and am
hoping someone can help me with an example of how this method could
be called within the typical framework of an extension? .. assuming
the extension has a specific page defined as "$article" how would I
write a line of code in the extension that performs a "null-edit" of
"$article" using the "PageUpdater::saveRevision" method?
- Rich
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l<https://urld
efense.proofpoint.com/v2/url?u=https-
3A__lists.wikimedia.org_mailman_listinfo_mediawiki-
2Dl&d=DwMFaQ&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=9NM-
9omoRra7fL56CWslBkAVE25KY5Ff9rp6kNpFDRw&m=yUDdhDhor_BkWTiJ3VRe40asyXm
SLzvtg0DuReA673c&s=zqoLIdmf_FIvVP62OSYrT8MgR4PA99OsuKBGG9BHo2w&e=>;
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--
Robert Vogel
Teamlead Produkt- & Softwareentwicklung
Hallo Welt! GmbH
Postfach 11 02 09
93015 Regensburg
Germany
Telefon: +49 (0) 941 - 660 80-0
Fax: +49 (0) 941 - 660 80-189
hallowelt.com
vogel(a)hallowelt.com
Sitz: Regensburg
Amtsgericht: Regensburg
Handelsregister: HRB 10467
E.USt.Nr.: DE 253050833
Geschäftsführer: Anja Ebersbach, Markus Glaser, Dr. Richard Heigl
Besuchen Sie unsere aktuellen BlueSpice-Webinare:
https://de.bluespice.com/webinar