Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup utility #5

Open
frisi opened this issue Apr 26, 2017 · 0 comments
Open

Cleanup utility #5

frisi opened this issue Apr 26, 2017 · 0 comments

Comments

@frisi
Copy link
Member

frisi commented Apr 26, 2017

if plone objects get deleted, we still have records for those in the mustread database.
currently these are simply logged with a warning (e.g. in what_to_read())

it might be a good thing to keep an audit log of all mustread actions over the time, no matter if the objects maked as read/not read have been deleted in the meantime.
but having a cleanup utility might be a good thing to have too.

cleanup procedure

  • check for all mustreadrecors having path beginning with plonesite path
  • group by uid
  • api.content.get(UID=uid) if None, remove all records for this uid

i don't have a bloody need for this atm, just adding it as an enhancement idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant