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.

Details

Related Objects

StatusAssignedTask
Declineddchen
OpenNone
OpenNone
DuplicateNone
OpenNone
ResolvedAbit
DuplicateNone
OpenNone
OpenNone
OpenNone
OpenNone
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

WMDE-leszek closed this task as Resolved.Jan 31 2017, 7:41 AM