-
Notifications
You must be signed in to change notification settings - Fork 90
extend autocast feature to control each attribute #1037
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
Comments
As follow up of this issue, the current autocast feature in IOTA-UL (IOTA_AUTOCAST env var and associated config.js setting) should be removed. It makes no sense to keep both system at the same time, it can be confusing for users. |
@AlvaroVega I am interested to work in this issue. |
autocast should be done in base of proposed "autocastType" field and "autocast" flag of each attribute, possible in castJsonNativeAttributes or in another new function |
@Sunny-NEC thanks for your willingness to work on this issue! Please go ahead and create the pull request with your contribution, so we can evaluate and provide feedback. |
autocast feature is performed by
iotagent-node-lib/lib/services/ngsi/ngsiUtils.js
Lines 98 to 134 in 9557e75
It was introduced by dcalvoalonso#7 in 2.7.0 release of iota-node-lib
Currently is performing casting based on some attribute types (Boolean, Number, None) which is not the best.
But instead of that (which is not a best approach) control cast per attribute is proposed:
as was suggested in #1020 (comment)
(autocast feature is used by iotagent-ul, but not used by iotagent-json)
The text was updated successfully, but these errors were encountered: