Hi,
The Approved Revs extension no longer seems to work with Semantic MediaWiki
1.9 - someone pointed that out on the mailing list a few months ago, and I
finally tested it out and confirmed the problem. Basically, when an
administrator, using AR, approves some revision of a page, the AR code
calls LinksUpdate::doUpdate() on that old revision of the page. This
updates the category information for that page, and it is also is meant to
be used by SMW and other extensions to update their own information for the
page. You can see the relevant code in lines 230-236, here:
http://git.wikimedia.org/blob/mediawiki%2Fextensions%2FApprovedRevs/3ff2bdc1f9b26a2d886f0d2e69b547b69c7d3748/ApprovedRevs_body.php
This worked fine for SMW versions before 1.9; and in version 1.9 the SMW
code still responds to the LinksUpdate::doUpdate() call, but it doesn't
seem to do the right thing - it deletes the existing semantic information
for the page, which is good, but it then doesn't store any new semantic
information.
I looked through the SMW code, and I can see the chain of functions called,
but I can't really understand what it's doing, or where the problem lies.
My guess is that SMW now requires something else to be called besides just
LinksUpdate::doUpdate(), either before or afterwards - something that's
called during a normal page save, but isn't being called by Approved Revs.
That's just a guess, though.
Hopefully there's an easy fix, whether it involves changing the SMW or AR
code (or both).
Can anyone help? I'm happy to answer any questions related to this.
Thanks,
Yaron
--
WikiWorks · MediaWiki Consulting · http://wikiworks.com
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel