Page MenuHomePhabricator

Make it possible to use DispatchingServiceFactory as a watcher for entity change events
Closed, ResolvedPublic

Description

Repo uses entity revision lookups and entity meta data accessors as watchers for entity changes to purge cache when entity is changed or deleted.

The structure proposed for dispatching services proposed in T148141 should take this into account.

DispatchingServiceFactory could implement EntityStoreWatcher interface, so its instances can be registered as watchers.
Entity change events should then be delegated to the service configured for the repo the entity in question belongs to. The service could then update its cache, so in the end dispatching lookup service would not use outdated cache.

Related Objects

StatusSubtypeAssignedTask
Declineddchen
OpenNone
OpenNone
DuplicateNone
OpenFeatureNone
OpenFeatureNone
DuplicateNone
ResolvedNone
ResolvedNone
ResolvedNone
OpenNone
OpenNone
StalledNone
ResolvedLydia_Pintscher
ResolvedLydia_Pintscher
ResolvedLydia_Pintscher
ResolvedLydia_Pintscher
ResolvedWMDE-leszek
ResolvedWMDE-leszek

Event Timeline

Change 332771 had a related patch set (by WMDE-leszek) published:
Make DispatchingServiceFactory implement EntityStoreWatcher

https://gerrit.wikimedia.org/r/332771

Change 332771 merged by jenkins-bot:
Account for entity change events in DispatchingServiceFactory and RepositoryServiceContainer

https://gerrit.wikimedia.org/r/332771