Hi there,

From the Release Note for MW 1.33:
(https://www.mediawiki.org/wiki/Release_notes/1.33)

> LinksDeletionUpdate is now a subclass of LinksUpdate. As a consequence,
> the following hooks will now be triggered upon page deletion in addition 
> to page
> updates: LinksUpdateConstructed, LinksUpdate, LinksUpdateComplete.

I have an extension that uses the LinksUpdate hook to re-parse the article 
in order to extract meta-data that it then stores in the DB for use 
elsewhere in the extension.

I use LinksUpdate, rather than ArticleSaveComplete, as I also need to 
re-parse the article when any of its templates changes.  This hook captures 
all changes that affect the page (by my understanding) except - up until 
1.33 - deletions.

I therefore also use the ArticleDeleteComplete hook to remove the article 
from the extension's meta-data tables when the article is deleted.

In the light of the above change to the LinksUpdate hook, what changes do I 
need to make to my extension?  Shall I simply drop the ArticleDeleteComplete 
hook and update LinksUpdate to check whether an article is deleted or not 
(how?) to decide which action is required?  Or is there more to it.

On a separate note, I also reparse the page when the ArticleUndelete hook is 
called.  Is this necessary, or is LinksUpdate also being called for 
undeletes?

Finally, I do a similar thing in the TitleMoveComplete hook - I reparse both 
the old article and the new article.  Is this also redundant due to 
LinksUpdate calls, or not?

Kind regards,

- Mark Clements (HappyDog)




_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to