callawaycloud / generator-ccc

Yeoman Generator for Callaway Cloud Salesforce Projects
19 stars 8 forks source link

Help People Stay on the Latest Version #26

Open ralphcallaway opened 4 years ago

ralphcallaway commented 4 years ago

If the person setting this up is different than the person working day to day on the project it's easy for upgrades to get missed.

One approach could be to add a version check to the push hook that happens on a monthly interval. If a new version is available the push gets rejected with an informative message. Since it would only happen once a month, if upgrading at that time isn't desired the push can just be repeated. This seems like a fairly small decrease in ergonomics for keeping people upto date. Likely to be other solutions.

ChuckJonas commented 4 years ago

one challenge is there isn't a "ccc project version". The generator itself has a version, but what version was last run on the project isn't tracked anywhere (also users might they might not even have generator-ccc install).

If you're going to run a version check monthly, I guess you'd need some persistent "storage" somewhere for that as well. Could just throw it in a file...

ralphcallaway commented 4 years ago

Yep was thinking a dot file would do it

On Tue, Apr 14, 2020, 5:58 PM Charlie Jonas notifications@github.com wrote:

one challenge is there isn't a "ccc project version". The generator itself has a version, but what version was last run on the project isn't tracked anywhere (also users might they might not even have generator-ccc install).

If you're going to run a version check monthly, I guess you'd need some persistent "storage" somewhere for that as well. Could just throw it in a file...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ChuckJonas/generator-ccc/issues/26#issuecomment-613738804, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGNKPLTJM4ARF3OIUHDRWLRMT2A5ANCNFSM4MIELS3A .

ChuckJonas commented 4 years ago

i guess you would need to:

You could run it more often, but just log to stdout. Only problem is people probably miss it if they are using source-tree/vscode to push

ralphcallaway commented 4 years ago

good idea about std out, realizing this is duplicate of #14, that's too bad the yeoman-updater didn't pan out