lakiw / cripts

CRIPTs - Collaborative Research Into Password Threats
MIT License
2 stars 0 forks source link

Update "counts" more dynamically #7

Closed lakiw closed 8 years ago

lakiw commented 8 years ago

Currently the "counts" fields are updated via an external call to python manage.py mapreduces. Hidden in some old CRITs documentation is a mention that a cronjob be added to run this periodically but I don't see that anymore in the current bootstrap script or in the CRITS_SERVICES git repo.

It may make sense to do away with this logic altogether and dynamically update the counts as they are modified. Aka increment the number of e-mail addresses when a new one is added. A background job could then periodically run to sync things up if they start to get out of wack.

lakiw commented 8 years ago

Looks like the individual TLO delete options are no longer in use. Everything is run through the cripts.core.handlers jtable_ajax_delete function now.

lakiw commented 8 years ago

Added commit b698fecae5dc06585c6a9c91015f95c5ef8f6f7b that should keep things fairly up to date. May still want to run mapreduces on a conjob though just in case things get out of sync.