-
Notifications
You must be signed in to change notification settings - Fork 265
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
JEXL expressions in custom notifications #4511
Conversation
Trying to install pyjexl in my local (Debian) environment:
Virtual env is ok for Docker CI, but in regular Docker probably we should install in the system. So, let's try with
No luck so far... Edit: I have posted a question at SOF about this: https://stackoverflow.com/questions/77986950/better-way-of-installing-pyjexl-python-package-in-debian-systems-without-using |
At commit ae3d83b the fails happening in 2560_custom_notification_json (8) and 4085_custom_notifications_ngsi_payload (16) are due to slight differences in the JSON rendering like this ones: This is due to the usage of With regards to the changes in this ftest they are due to the change in behaviour when a given attribute doesn't exist in the |
test/functionalTest/cases/4004_jexl_expressions_in_subs/jexl_null_values_all_cases.test
Show resolved
Hide resolved
test/functionalTest/cases/4004_jexl_expressions_in_subs/jexl_transformation_full.test
Outdated
Show resolved
Hide resolved
…ransformation_full.test
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.
LGTM
Co-authored-by: mapedraza <40356341+mapedraza@users.noreply.github.com>
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.
LGTM
@fisuda this PR does some modifications in the .md of the English documentation. It would be great if you could do a PR with the corresponding Japanese modifications. Thanks in advance! |
I sent the PR #4559. Thanks. |
Issue #4004
When this PR is created (at commit 9dfdccc) this PR has been locally tested with the following test cases (which are the ones that are more focused in macro replacement):
What's pending
GET /version
?TextUnrestricted
should not be needed when JEXL expression is used inngsi
element - 2cc2424Test thread safeness model and memory profile(it's ok with cjexl)Sem management(not needed with cjexl)Time waiting at sem(no sems at the end)c|patata
) - jexl_transformation_unknown.testc[0|fun
,c|fun1('foo)|fun2
,c|fun1('foo'|fun2)
- jexl_syntax_errors.teststr()
to allow it re-calleable are working properly) - jexl_transformation_in_id_and_type.test (id
andtype
) and jexl_several_expressions.test (sum
andmul
)(maybe use pipx?)( + _legacy.test)(+ _legacy.test)-
or:
(with basic replacement they work, but with JEXL no, see test/functionalTest/cases/4004_jexl_expressions_in_subs/jexl_expr_attrs_weird_syntax.test) - 9e04d8c