* This reverts commit 8de8b4d4b4.
* Add note about itests not being executed with junit 5.12.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Fix#4778
Things and items are now sorted in output only when all elements are requested.
If the API is requested only for a subset of elements (things or items), the output respects the input order of elements.
DSL generator for things and items is also fixed to avoid a crash when called with 0 element.
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
* This restores functionality we had before we migrated the PR builds
to GitHub Actions.
* Implement rebuild in ci_build workflow to make PR validation pass
* Remove label rebuild at the end of the workflow
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This fix two scenarios:
- When the new model is missing `version:` key but the old model had one, the file is considered invalid, but the previously loaded elements didn't get removed
- When the new model has a valid `version:` key, but the entire element type, e.g. `thing:` is removed, the previously loaded elements (e.g. things) didn't get removed.
Additionally, log a warning when an unknown element type is encountered.
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
* Make `expire` fully configurable through metadata configuration map
* raise an error when setting is specified in both value and config map
* support days and ISO8601
* unknown config raises an error
* throws an exception on negative duration
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
* Sort SemanticTags.csv and group children under their parent tag
* sort xsd tag entries alphabetically
* sort DefaultSemanticTagProvider.java
* change the order to Location, Point, Property, Equipment
* remove duplicate tilt property
* revert DefaultSemanticTagProvider sorting
* add back Tilt Property, remove Tilt Point instead
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
* Fix proposal for #4656 : listeners are set too late on GenericItems because restoring persisted value from persisted layer delay the loop
Signed-off-by: Laurent ARNAL <laurent@clae.net>
Each YAML element provider can now define which YAML file versions it is applicable to and whether it is deprecated or not.
Related to #3666
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
* Allow multiple default values to contain an escaped comma
An comma character can be a part of the value when escaped with a backslash.
The backslash will be removed, i.e. `\,` -> `,`
To have an actual backslash and comma, add an extra backslash, i.e. `\\,` -> `\,`
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
* Introduce YAML configuration version 2
Version 2 uses map to store elements while version 1 uses table.
Version 1 is still supported.
Unit tests have been extended to cover version 1 and 2.
Related to #3666
Signed-off-by: Laurent Garnier <lg.hc@free.fr>