Skip to content

Fix SemanticDependency - part 2#190

Merged
hcooper merged 1 commit intomasterfrom
date-fix2
Apr 17, 2026
Merged

Fix SemanticDependency - part 2#190
hcooper merged 1 commit intomasterfrom
date-fix2

Conversation

@hcooper
Copy link
Copy Markdown
Contributor

@hcooper hcooper commented Apr 16, 2026

This is a followup to #187

The first PR did work, however it had a race condition, which meant when creating a new condition report the "has condition date" property wasn't being updated (page didn't exist before the refresh) - however when editing an existing one it would. For ease of testing I was just editing condition reports, and didn't pick up on this nuance until afterwards.

This PR switch the extension to use the mediawiki job queue to asynchronously schedule the refresh. The work done is same, it's just executed a few moments later rather than by the extension itself.

Tested in dev, and also in prod (as I thought the race condition might only be in the production environment).

The start delay of 5s is just a little extra guarantee of ordering.

@hcooper hcooper merged commit b263f0d into master Apr 17, 2026
1 of 2 checks passed
@hcooper hcooper deleted the date-fix2 branch April 17, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants