Skip to content

Conversation

jason-fox
Copy link
Contributor

Similar to #841 (comment)

This is a limited PR updates the files within /services/devices/, services/ngsi/ and services\northBound to properly use let and const. When processed it would reduce the scope of #831

It only contains automated code updates at the moment. The PR could also be amended to correctly rename the northBound subdirectory to northPort see: #645

The 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.

@jason-fox jason-fox mentioned this pull request Mar 4, 2020
@fgalan fgalan changed the base branch from master to feature/842_ngsi_ld March 10, 2020 16:51
@fgalan
Copy link
Member

fgalan commented Mar 10, 2020

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
@jason-fox
Copy link
Contributor Author

Merged, updated and removed console.error() debug - see #847 (comment)

text = fs.readFileSync(name, 'UTF8');
} catch (e) {
/* eslint-disable no-console */
console.error(JSON.stringify(e));
Copy link
Member

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)

Copy link
Contributor Author

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

Copy link
Member

@fgalan fgalan left a comment

Choose a reason for hiding this comment

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

LGTM

@fgalan fgalan merged commit 5c8a2df into telefonicaid:feature/842_ngsi_ld Mar 11, 2020
@fgalan fgalan mentioned this pull request Mar 11, 2020
@jason-fox jason-fox deleted the feature-ngsi-ld-es6 branch March 11, 2020 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants