iron-bound-designs / exchange-addon-licensing

iThemes Exchange Licensing Add-on
GNU Affero General Public License v3.0
6 stars 2 forks source link

Prevent activating or creating a release with a lower version number #33

Closed TimothyBJacobs closed 9 years ago

TimothyBJacobs commented 9 years ago

When a customer goes to create a release, we display the current version number next to the text input. There is currently nothing preventing the user from creating a release with a version number less than the current one. We should validate the version number in javascript as the version number is inputted.

Users can draft releases. This makes it possible for a user to draft a release, r1, with version 1.1. Then create another release, r2, with version 1.2. If the user then activates r2, we need to prevent the user from releasing r1 because its version number is now outdated. To accomplish this, we should display a warning message on top of the outdated release and prevent the user from toggling the status to Active.

TimothyBJacobs commented 9 years ago

Validating the new release number is implemented.

TimothyBJacobs commented 9 years ago

Implemented for draft as releases. Needs to be implemented for paused releases as well.

TimothyBJacobs commented 9 years ago

Implemented for paused releases as well.