nodezoo / nodezoo-web

nodezoo.com front end
MIT License
12 stars 61 forks source link

Implement flag to force updating module information on /info/module service #107

Closed mirceaalexandru closed 8 years ago

mirceaalexandru commented 8 years ago

We should have support for this:

info/module?update=true this will force updating the module, even if data is in cache.

Beside web, info module should be changed, to be sure that the update commands sent to github/nmp/travis modules contains the flag:

https://github.com/nodezoo/nodezoo-info/blob/master/info.js#L31

and then check if everything is ok in those three modules:

https://github.com/nodezoo/nodezoo-npm/blob/master/lib/npm.js#L43 https://github.com/nodezoo/nodezoo-github/blob/master/lib/github.js#L41 https://github.com/nodezoo/nodezoo-travis/blob/master/lib/travis.js#L36

If flag is set true then the data should be updated regardles if it is or not present in cache.