ProfessionalWiki / AutomatedValues

Wikibase extension that allows defining rules to automatically set labels or aliases based on Statement values
https://wikibase.consulting/automating-values-in-wikibase
GNU General Public License v2.0
6 stars 3 forks source link

Labels are not set in a timely manner #29

Closed mzeinstra closed 1 year ago

mzeinstra commented 1 year ago

We experience labels sometimes take over an hour to be set in Wiki. Which hook is used to execute the change.

In our use case we make a change that triggers the change for two out of the three languages for our labels. The last label (so far always english) takes a long time to be set by the exertions.

Is there anything that we can check why this takes a while?

mzeinstra commented 1 year ago

Interestingly it seems that is not update in the language of the interface. When I switch to the French as the interface language the english label appears. When I switch back to english it disappears..

JeroenDeDauw commented 1 year ago

Automated Values sets the labels immediately as part of the revision created by the edit. So there is definitely no delay in the part that Automated Values plays.

(Hook: https://github.com/ProfessionalWiki/AutomatedValues/blob/master/src/Hooks.php#L18-L36)

What you are seeing is presumably something that will always happen for label updates on your wiki, regardless if they come from Automated Values or not. My guess is that the "term indexing" is taking some time because it has some "deferred" jobs. You might be able to fix that by running runJobs.php or some other maintenance script more often. A general Wikibase question that could go onto the Telegram.

mzeinstra commented 1 year ago

Thank you, make sense. Good to have this documented (in this ticket) if others experience the same.