-
Notifications
You must be signed in to change notification settings - Fork 91
Update NGSI support to use ES6 syntax. #850
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
Update NGSI support to use ES6 syntax. #850
Conversation
Once PR #848 has been merged, I have change the base of this PR to feature/842_ngsi_ld Please upgrade jason-fox:feature-ngsi-ld-es6 with telefonicaid:feature/842_ngsi_ld so this PR gets ready to merge (note a couple of files are conflicting). |
…ngsi-ld-es6 # Conflicts: # lib/services/ngsi/ngsiService.js # lib/services/northBound/contextServerUtils.js
Merged, updated and removed |
text = fs.readFileSync(name, 'UTF8'); | ||
} catch (e) { | ||
/* eslint-disable no-console */ | ||
console.error(JSON.stringify(e)); |
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.
Should this one also be removed? Or is pre-existing to your work on NGSI-LD?
(Maybe a grep for console.
in all the code base could help to find additional cases)
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.
Nope - that is a deliberate console output - see the previous line. It was part of the output of #832
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
Similar to #841 (comment)
This is a limited PR updates the files within
/services/devices/
,services/ngsi/
andservices\northBound
to properly uselet
andconst
. When processed it would reduce the scope of #831It only contains automated code updates at the moment. The PR could also be amended to correctly rename the
northBound
subdirectory tonorthPort
see: #645The assumption here is that since none of the other outstanding PRs are amending the NGSI interactions, this would be an opportunity to modernize at least part of the code base.