gesinn-it-pub / SemanticDependencyUpdater

Semantic Dependency Updater (SDU) is a MediaWiki extension that monitors pages for changes in their semantic data.
https://www.mediawiki.org/wiki/Extension:SemanticDependencyUpdater
MIT License
6 stars 2 forks source link

Fixjobqueue #7

Closed gesinn-it-evl closed 1 year ago

gesinn-it-evl commented 1 year ago

This PR fixes the whole SDU execution:

  1. The job, now works (adopted to new jobs interface + etc.)
  2. Logic now triggers a SMW rebuildData, and a null-edit via PageUpdater instead of the WikiPage nulledit + doPurge. =>The doPurgewas removed, since it caused some unknown race-condition, that lead to missing Semantic attributes in pages!!
  3. JobQueue variant is default now, since it's the only one that works. We also use 2 Different jobs for RebuildData (which handles all pages at a time) and the PageUpdate (null-edit, one job per page).
codecov[bot] commented 1 year ago

Codecov Report

Merging #7 (58f17be) into master (e8a483d) will not change coverage. The diff coverage is 0.00%.

@@           Coverage Diff            @@
##             master      #7   +/-   ##
========================================
  Coverage      0.00%   0.00%           
  Complexity       24      24           
========================================
  Files             2       3    +1     
  Lines           113     140   +27     
========================================
- Misses          113     140   +27     
Files Changed Coverage Δ
src/Hooks.php 0.00% <0.00%> (ø)
src/PageUpdaterJob.php 0.00% <0.00%> (ø)
src/RebuildDataJob.php 0.00% <0.00%> (ø)