mozilla / ssh_scan_api

An API for ssh_scan (https://github.com/mozilla/ssh_scan) and the backend API service for the Mozilla SSH Observatory (https://observatory.mozilla.org/)
31 stars 12 forks source link

scan state transitions inline of single DB table/collection #58

Closed claudijd closed 7 years ago

claudijd commented 7 years ago

@rishabhs95 @royalharsh this is an attempt an trying to mock up how state transitions can be managed in the DB

Consider this an alternative direction for #2 / #49

claudijd commented 7 years ago

Note that this PoC is only at the mongodb level, I still need to update interfaces at the generic DB level and the API level, but I think this basic concept will work better and require only one table. It will also make running statistics much easier when the time comes.

claudijd commented 7 years ago

Fixes #56

hvardhanx commented 7 years ago

Cool! I was trying to add and update scan from the api and didn't touch the job queue. Finally understood I was doing something wrong.