Where in modulus codebase to stop SNAPSHOT version modules from being uploaded?

Trying to work on issue MOD-8.

Here’s the description of the problem: Our current module repository allows you to upload SNAPSHOT versions of code. This should not be permitted. The module repository is for releases – if someone wants to push out a ‘not-quite-finished’ module they should make a proper release and label it ALPHA or BETA etc. TODO: if the user uploads a module that has “snapshot” anywhere in its version number, fail, with an appropriate error message. Dev notes Note that this refers to https://github.com/openmrs/openmrs-contrib-modulus and not the openmrs application.

I am having trouble locating which file to make modification. Help would really be appreciated. Thanks!

@maywu, sorry for the slow reply; most of us are pretty unfamiliar with the Modulus codebase. Also, the #dev category has a lot more people following it. (I have moved this topic there.)

I think you’d want to make the fix near here: https://github.com/openmrs/openmrs-contrib-modulus/blob/master/grails-app/controllers/org/openmrs/modulus/ReleaseController.groovy#L60