Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[js-transform] Inline java script support #11473

Merged
merged 3 commits into from
Dec 12, 2021

Conversation

paulianttila
Copy link
Contributor

Signed-off-by: Pauli Anttila pauli.anttila@gmail.com

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
@paulianttila paulianttila requested a review from a team as a code owner October 30, 2021 08:05
@paulianttila
Copy link
Contributor Author

Recently written lot of java script transformation rules and file based broach is not very handy for simple script where input is just e.g. dived by 100. This introduce inline possibility where script can be directly given without writing dedicated java script file.

Some earlier discussion eclipse-archived/smarthome#4318

@wborn wborn added the enhancement An enhancement or new feature for an existing add-on label Nov 27, 2021
Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
@paulianttila
Copy link
Contributor Author

@openhab/add-ons-maintainers as this is rather simple PR and no comments so far, so is there some kind of hesitation to accept this PR?

@fwolter
Copy link
Member

fwolter commented Dec 12, 2021

I've never been in touch with JavaScript and OH. That's why I didn't approve it. Maybe @wborn can take a look.

Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm and it is imho indeed a nice feature for simple use cases. Thanks!

@kaikreuzer kaikreuzer added this to the 3.2 milestone Dec 12, 2021
@kaikreuzer kaikreuzer merged commit 4572989 into openhab:main Dec 12, 2021
@kaikreuzer kaikreuzer changed the title [js-transform] inline java script support [js-transform] Inline java script support Dec 12, 2021
NickWaterton pushed a commit to NickWaterton/openhab-addons that referenced this pull request Dec 30, 2021
* [js-transform] inline java script support

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
Signed-off-by: Nick Waterton <n.waterton@outlook.com>
mischmidt83 pushed a commit to mischmidt83/openhab-addons that referenced this pull request Jan 9, 2022
* [js-transform] inline java script support

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
Signed-off-by: Michael Schmidt <mi.schmidt.83@gmail.com>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Jan 28, 2022
* [js-transform] inline java script support

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
* [js-transform] inline java script support

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
* [js-transform] inline java script support

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
* [js-transform] inline java script support

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants