One possible explanation for #621 is that one user is making Targets as Watched, but the Targets actually belong to a different user, who ends up surprised at their list of Watched Targets.
Targets going from not-Watched to Watched should happen here:
This needs at least some logging, so we can track which user is doing it, and when it happens. Optionally, add some Prometheus hook and track+label these events.
One possible explanation for #621 is that one user is making Targets as Watched, but the Targets actually belong to a different user, who ends up surprised at their list of Watched Targets.
Targets going from not-Watched to Watched should happen here:
https://github.com/ukwa/w3act/blob/6ad35fff95854edd847c279904534938ff73295d/app/controllers/TargetController.java#L1730
This needs at least some logging, so we can track which user is doing it, and when it happens. Optionally, add some Prometheus hook and track+label these events.