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:phoenixoverr...@gmail.com]
Sent: Wednesday, June 19, 2019 5:05 PM
To: Evans, Richard K. (GRC-H000) <richard.k.ev...@nasa.gov>; MediaWiki 
announcements and site admin list <mediawiki-l@lists.wikimedia.org>
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://urldefense.proofpoint.com/v2/url?u=https-3A__lists.wikimedia.org_mailman_listinfo_mediawiki-2Dl&d=DwMFaQ&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=9NM-9omoRra7fL56CWslBkAVE25KY5Ff9rp6kNpFDRw&m=yUDdhDhor_BkWTiJ3VRe40asyXmSLzvtg0DuReA673c&s=zqoLIdmf_FIvVP62OSYrT8MgR4PA99OsuKBGG9BHo2w&e=>
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to