ukwa / w3act

w3act is an annotation and curation tool for building web archive collections
Apache License 2.0
19 stars 6 forks source link

Log/monitor when Targets get Watched #677

Closed anjackson closed 1 year ago

anjackson commented 2 years ago

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.