WPS
WPS copied to clipboard
Support R script versions
Implement a feature to support different versions of a script. The feature has to be enabled in an annotation wps.versioned: true
, then the versions are based on the script filenames with the pattern scriptname-versionstring.R
, where versionstring
can be parsed with Java Semver (https://github.com/zafarkhaja/jsemver)
There already is a version attribute - this should override the filename based version if both are present, see https://github.com/52North/WPS/blob/master/52n-wps-webapp/src/main/webapp/R/scripts/demo_uniform-table.R
Currently under development in https://github.com/nuest/WPS/tree/wps4r/feature/script-versions
An easier version of versioning: automatically support versions, ignore filenames completely, simply use the highest process version. Support only single integers as process versions.
- [ ] latest version is returned on calling DescribeProcedure
- [ ] latest version is run when executing the process
Later semantic versioning might be supported for versions, but this is not crucial.
Branch linked above merged into wps4r/wps-4.0
, so far only tests and test files.