Page MenuHomePhabricator

make change notifications and usage tracking work for redirects
Open, HighPublic

Description

We have to work out how to do change notifications and usage tracking when data is requested via a redirect.

We could:

  1. resolve redirects before recording usage. That makes puring easy, but when the redirect changes (or is undone), we'd need to find and update all tracking records that use the redirect. For this, we have to put the requested and the effective entity ID into the tracking table. Needs a schema change on all clients.
  2. do a reverse lookup for redirects when processing change notifications. That adds some overhead, but should not be horrible.

We have the same problem again with managing subscriptions; we should probably resolve and subscribe to the redirect as well as the target. When the redirect is undone, the client would remain subscribed to the original target, but that should not cause any issues.


Version: master
Severity: normal
Whiteboard: u=dev c=backend p=0

Details

Reference
bz65595

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:11 AM
bzimport set Reference to bz65595.
bzimport added a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
daniel set Security to None.

This task seems related to comments in the class ChangeNotifier: https://github.com/wikimedia/Wikibase/blob/47a89782af39f09cdd2936ee5973eda8926a07bf/repo/includes/Notifications/ChangeNotifier.php#L77

They may represent part of what this task wants to achieve or maybe a different approach to it.