Automatic versionnumber for an application
Posted: 2020-02-06 18:27
Hi,
I suggest that an internal counter changes, when some change is made to the datastructure (or some settings).
This value should be saved somewhere, so that it can be used from us developers easily.
Example:
a) Always let the user override the automatic setting.
b) Ask the user for a start of the version number. Let's say 1
c) when a table is created / deleted, raise a sub-number 1. This would now result in 1.1
d) If a field in a table is created / deleted, raise a sub-number 1. This would now result in 1.1.1
e) if a setting of a field is changed, a table icon changed, some language or "Apptitle"-setting changed, raise a sub-number 1. This would now result in 1.1.1.1
These are of course only suggestions, but, if written to some file (version.php?) or the database (I would think a new table is needed for this), it would be so easy to generate a nice version number where one (i.e. the customer) sees progress in development.
As the versionnumber should be able to be changed by the developer (as changes to hooks for example can not be tracked automatically), the version number needs to be accessible somehow from the AppGini UI.
Olaf
I suggest that an internal counter changes, when some change is made to the datastructure (or some settings).
This value should be saved somewhere, so that it can be used from us developers easily.
Example:
a) Always let the user override the automatic setting.
b) Ask the user for a start of the version number. Let's say 1
c) when a table is created / deleted, raise a sub-number 1. This would now result in 1.1
d) If a field in a table is created / deleted, raise a sub-number 1. This would now result in 1.1.1
e) if a setting of a field is changed, a table icon changed, some language or "Apptitle"-setting changed, raise a sub-number 1. This would now result in 1.1.1.1
These are of course only suggestions, but, if written to some file (version.php?) or the database (I would think a new table is needed for this), it would be so easy to generate a nice version number where one (i.e. the customer) sees progress in development.
As the versionnumber should be able to be changed by the developer (as changes to hooks for example can not be tracked automatically), the version number needs to be accessible somehow from the AppGini UI.
Olaf