-
Notifications
You must be signed in to change notification settings - Fork 780
Transformation services extensions #286
Transformation services extensions #286
Conversation
Hi @clinique, thanks a lot for porting this code! I assume that it has been already reviewed in openHAB 1, so I won't have to go into too many details? |
Hi @kaikreuzer , |
Squashed my commits |
This is still missing, right? |
Port Scale transformation service to ESH * enhanced scale definition capacity Factorization of Cache system from Map transformation with Scale transformation in superclass (AbstractFileTransformationService) * enabled cache system to operate properly on suddirectories * ported file definition localization as exists in OH1 Small warning supression in existing tests Added tests for Scale, Map and JSonPath Signed-off-by: Gaël L'hopital <glhopital@gmail.com> Add OSGI description files for Scale and JSonPath transformation services Signed-off-by: Gaël L'hopital <glhopital@gmail.com> Improved Scaletransform to move scale file interpretation on load instead of transform Signed-off-by: Gaël L'hopital <glhopital@gmail.com> Personal code review Signed-off-by: Gaël L'hopital <glhopital@gmail.com> Modify about.html to reflect licenses of uderpinned libraries. Moved to last version of json-path and json-smart Signed-off-by: Gaël L'hopital <glhopital@gmail.com>
Done |
Sorry @clinique for not yet further processing this. As mentioned in #340, I would actually suggest to refactor this into separate bundles, so that users do not have to include all transform dependencies, but only the ones that they want to use. Let's first wait until #340 is merged and then it would be great if you could refactor this contribution accordingly - sorry for the inconvenience, but it is all for keeping a clean architecture on the long run :-) |
@kaikreuzer , no problem, there is no hurry and keeping the project clean is key |
/** | ||
* @author Gaël L'hopital | ||
*/ | ||
public class JSonPathTransformationServiceTest extends AbstractTransformationServiceTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to see here a failure test which produces a TransformationException as well.
Maybe you can copy it from my PR: https://github.com/sja/smarthome/commit/003f7218739ec1912bf4151dfe15f8c937a8d12a
Ok, I'll fork it as you suggested. As far as I saw, the changes of #340 have to be adopted as well, which I can (have to) do as well. :-) |
Yes, I guess it will lengthen a bit the merging process, but from the ground it's a good point. |
Fyi: #340 has just been merged! |
Ok, I will close this PR and make two distinct integrating #340 : one for Localizable file along with Scale transformation service and another with JSonPath transformation service |
=> Ported Scale transformation service to ESH
=> Factorization of Cache system from Map transformation with Scale transformation in superclass (AbstractFileTransformationService)
=> Ported JSonPath transformation service to ESH
=> Small warning supression in existing tests
=> Added JUnit tests for Scale, Map and JSonPath